> ## 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 LSP status

> Get LSP server status



## OpenAPI

````yaml /openapi.json get /lsp
openapi: 3.1.1
info:
  title: cognitio
  description: cognitio api
  version: 1.0.0
servers: []
security: []
paths:
  /lsp:
    get:
      summary: Get LSP status
      description: Get LSP server status
      operationId: lsp.status
      parameters:
        - in: query
          name: directory
          schema:
            type: string
        - in: query
          name: workspace
          schema:
            type: string
      responses:
        '200':
          description: LSP server status
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LSPStatus'
      x-codeSamples:
        - lang: js
          source: |-
            import { createCognitioClient } from "@cognitio/sdk

            const client = createCognitioClient()
            await client.lsp.status({
              ...
            })
components:
  schemas:
    LSPStatus:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        root:
          type: string
        status:
          anyOf:
            - type: string
              const: connected
            - type: string
              const: error
      required:
        - id
        - name
        - root
        - status

````

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