> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get MCP status

> Get the status of all Model Context Protocol (MCP) servers.



## OpenAPI

````yaml /openapi.json get /mcp
openapi: 3.1.1
info:
  title: cognitio
  description: cognitio api
  version: 1.0.0
servers: []
security: []
paths:
  /mcp:
    get:
      summary: Get MCP status
      description: Get the status of all Model Context Protocol (MCP) servers.
      operationId: mcp.status
      parameters:
        - in: query
          name: directory
          schema:
            type: string
        - in: query
          name: workspace
          schema:
            type: string
      responses:
        '200':
          description: MCP server status
          content:
            application/json:
              schema:
                type: object
                propertyNames:
                  type: string
                additionalProperties:
                  $ref: '#/components/schemas/MCPStatus'
      x-codeSamples:
        - lang: js
          source: |-
            import { createCognitioClient } from "@cognitio/sdk

            const client = createCognitioClient()
            await client.mcp.status({
              ...
            })
components:
  schemas:
    MCPStatus:
      anyOf:
        - $ref: '#/components/schemas/MCPStatusConnected'
        - $ref: '#/components/schemas/MCPStatusDisabled'
        - $ref: '#/components/schemas/MCPStatusFailed'
        - $ref: '#/components/schemas/MCPStatusNeedsAuth'
        - $ref: '#/components/schemas/MCPStatusNeedsClientRegistration'
    MCPStatusConnected:
      type: object
      properties:
        status:
          type: string
          const: connected
      required:
        - status
    MCPStatusDisabled:
      type: object
      properties:
        status:
          type: string
          const: disabled
      required:
        - status
    MCPStatusFailed:
      type: object
      properties:
        status:
          type: string
          const: failed
        error:
          type: string
      required:
        - status
        - error
    MCPStatusNeedsAuth:
      type: object
      properties:
        status:
          type: string
          const: needs_auth
      required:
        - status
    MCPStatusNeedsClientRegistration:
      type: object
      properties:
        status:
          type: string
          const: needs_client_registration
        error:
          type: string
      required:
        - status
        - error

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.