What are the prerequisites to run LSP MCP Server?
Node.js v16 or later and npm are required. For the demo Haskell server, GHC 8.10+ and Cabal 3.0+ are also needed.
@Tritlo
Basic information
An MCP server that lets you interact with LSP servers
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"lsp-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"tritlo/lsp-mcp",
"<language-id>",
"<path-to-lsp>",
"<lsp-args>"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
It is an MCP (Model Context Protocol) server for interacting with LSP (Language Server Protocol) interface. It acts as a bridge that allows LLMs to query LSP Hover and Completion providers.
Configure the server in your MCP client with npx tritlo/lsp-mcp <language-id> <path-to-lsp> <lsp-args>, then run it via the command line. After starting the MCP server, you must explicitly call the start_lsp tool with a root directory before using any LSP functionality.
Node.js v16 or later and npm are required. For the demo Haskell server, GHC 8.10+ and Cabal 3.0+ are also needed.
You must explicitly call the `start_lsp` tool with a root directory (e.g., `/path/to/your/project`) before using any LSP-related tools.
Yes, you must call the `open_document` tool to open a file in the LSP server before diagnostics or other operations on that file can be accessed.
Yes, diagnostic resources support subscriptions via the MCP `resources/subscribe` endpoint, providing updates when diagnostics change.
Eight severity levels are available: debug, info, notice, warning, error, critical, alert, and emergency. You can change the log level at runtime using the `set_log_level` tool.
🚀 The fast, Pythonic way to build MCP servers and clients.
A curated list of references for MLOps
A search tool helps dev to solve the naming things problem.
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Open-source MCP to use Blender with any LLM
Comments