Documentation Navigation
configure

Language Server Protocol (LSP)

Codey can integrate with local Language Servers (LSP) to analyze code syntax, detect compilation warnings, and format files using your compiler's rules.

#How it Works

When an agent edits a file, it can trigger the local LSP server to check for diagnostics. If syntax or compile errors are found, the agent automatically receives the errors and fixes them before ending the step.

#Enabling LSP

Configure LSP servers for specific extensions:

json
{
  "lsp": {
    "typescript": {
      "command": ["typescript-language-server", "--stdio"],
      "enabled": true
    }
  }
}