mcp-language-server
The MCP Language Server is designed to enhance code navigation and analysis by integrating language server protocols for various programming languages into MCP-enabled systems. It provides features like semantic analysis and diagnostics to improve the workflow of developers using LLMs.
MCP Language Server
This project is an MCP server that runs and exposes a language server to LLMs (Large Language Models), enhancing the navigation and analysis of codebases. It provides semantic tools such as get definition, references, rename, diagnostics, and more. Features include support for different languages through their respective servers like gopls
for Go, rust-analyzer
for Rust, pyright
for Python, etc.
Demo
MCP Language Server aids MCP-enabled clients in navigating codebases effectively with tools such as semantic analysis, diagnostic reports, and more.
Setup
- Install Go
- Install or update this server
- Install a language server
- Configure your MCP client
Tools
definition
: Retrieves full symbol definitions from the codebase.references
: Locates the usage of symbols.diagnostics
: Provides file diagnostics.hover
: Displays documentation and type hints.rename_symbol
: Renames symbols project-wide.edit_file
: Facilitates file edits by line numbers.
Contributing
Contributions should be small; substantial changes should be discussed via Issues first. Follow code audit checks, format code, and run tests as outlined in the justfile.