language-server-mcp
If you are the rightful owner of language-server-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server providing language support for code editing.
The language-server-mcp is a TypeScript-based Model Context Protocol (MCP) server designed to enhance the code editing experience by providing essential features such as hover information, code completion, and diagnostics. It is built to demonstrate core MCP concepts by offering language-specific tools for code analysis and manipulation. The server integrates seamlessly with the Model Context Protocol, allowing for efficient communication with clients. While it has been primarily tested with TypeScript, there is potential for supporting other languages like Python, and the server aims to be more language-agnostic in the future.
Features
- Provides hover information for symbols in code
- Offers code completion suggestions
- Reports diagnostic information (errors, warnings)
- Implements the MCP protocol for communication with clients
- Exposes language features as MCP tools
Tools
get_hover
Get hover information for a position in a document. Takes languageId, filePath, content, line, and character as required parameters.
get_completions
Get completion suggestions for a position in a document. Takes languageId, filePath, content, line, and character as required parameters.
get_diagnostics
Get diagnostic information for a document. Takes languageId, filePath, and content as required parameters.