lsp-mcp

lsp-mcp

32

The LSP MCP Server bridges LLMs with LSP servers, allowing for advanced code suggestions and features like diagnostics and completion. It includes logging, a CLI, and supports extensions for language-specific capabilities.

What is the purpose of the LSP MCP Server?

The LSP MCP Server acts as a bridge between LSP interfaces and LLMs, allowing LLMs to query LSP Hover and Completion providers for more accurate code suggestions.

What are the prerequisites for using the LSP MCP Server?

You need Node.js (v16 or later) and npm. For the demo server, GHC (8.10 or later) and Cabal (3.0 or later) are required.

How do I start the LSP server?

You must explicitly start the LSP server by calling the start_lsp tool before using any LSP functionality.

How can I change the logging level?

Use the set_log_level tool to change the server's logging verbosity level at runtime.

What should I do if the server fails to start?

Ensure the path to the LSP executable is correct and check the log file for detailed error messages.