Loading...
This MCP server exposes language server protocol (LSP) features like definitions, references, and diagnostics to LLMs, enhancing code navigation and understanding.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server exposes language server protocol (LSP) features like definitions, references, and diagnostics to LLMs, enhancing code navigation and understanding.
This server is relatively safe for read-only operations. However, the ability to execute code indirectly through language server features introduces some risk. Ensure the underlying language server is up-to-date and the workspace is properly secured.
Performance depends heavily on the underlying language server and the size of the codebase. Large codebases may experience slower response times.
This server itself has no direct cost, but the LLM client using it may incur costs based on usage (e.g., token consumption).
{
"mcpServers": {
"language-server": {
"command": "/full/path/to/your/clone/mcp-language-server/mcp-language-server",
"args": [
"--workspace",
"/path/to/workspace",
"--lsp",
"language-server-executable"
],
"env": {
"LOG_LEVEL": "DEBUG"
}
}
}
}UPDATE_SNAPSHOTSdefinitionRetrieves the source code definition of a symbol.
Read-only operation; no side effects.
referencesLocates all usages of a symbol throughout the codebase.
Read-only operation; no side effects.
diagnosticsProvides diagnostic information (warnings, errors) for a file.
Read-only operation; no side effects.
hoverDisplays documentation or type hints for a given location.
Read-only operation; no side effects.
rename_symbolRenames a symbol across a project.
Modifies code structure; potential for breaking changes.
edit_fileApplies multiple text edits to a file based on line numbers.
Modifies file content; potential for introducing errors.
None
hybrid
This server is relatively safe for read-only operations. However, the ability to execute code indirectly through language server features introduces some risk. Ensure the underlying language server is up-to-date and the workspace is properly secured.
Autonomy level depends on the configured MCP client and the specific tools used. Exercise caution when enabling destructive tools like `rename_symbol` and `edit_file`.
Production Tip
Monitor language server logs for errors or performance issues, and ensure the language server is properly configured for the target workspace.
The server supports any language server that communicates over stdio, including gopls, rust-analyzer, pyright, typescript-language-server, and clangd.
The `--workspace` argument specifies the root directory of the codebase.
Set the `LOG_LEVEL` environment variable to `DEBUG`.
Ensure the language server is properly configured for your project and that all dependencies are resolved.
Yes, but you will need to configure a separate instance of the server for each language, pointing to the appropriate language server executable.
The server's security depends on the underlying language server and the configuration of the workspace. Keep your language servers updated and restrict workspace access to trusted code.
Please submit small PRs and open Issues first for anything substantial. AI slop O.K. as long as it is tested, passes checks, and doesn't smell too bad.