Overview
Features
get_info_on_location
Gets hover information at a specific location in a file and returns MCP-friendly data.
get_completions
Gets code completion suggestions at a given location in a file.
get_code_actions
Retrieves code actions for a specified range in a file.
open_document
Opens a file in the LSP server for analysis and diagnostics.
close_document
Closes a file in the LSP server to free resources.
get_diagnostics
Retrieves diagnostic messages (errors/warnings) for open files, optionally scoped to a file.
start_lsp
Starts the LSP server with a specified root directory.
restart_lsp_server
Restarts the LSP server process without restarting the MCP server.
Who Is This For?
- LLM developers:Integrate LSP hover and completion data into LLM prompts and responses via MCP tools and resources.
- AI copilots / code assistants:Access real-time or on-demand LSP data to improve code suggestions and analyses.
- LSP-powered tooling developers:Build language-specific extensions and resource handlers to extend MCP capabilities.




