detect_lsp_servers
Scan a workspace directory to identify languages and find matching LSP server binaries on PATH, then receive a suggested config to set up or verify the MCP server.
Instructions
Scan a workspace directory for source languages and check PATH for the corresponding LSP server binaries. Returns detected workspace languages (ranked by prevalence), installed servers with their paths, and a suggested_config array ready to paste into the agent-lsp MCP server args. Use this to set up agent-lsp for a new project or verify your configuration.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_dir": "<workspace_dir>"
},
"name": "detect_lsp_servers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_dir | Yes |