MCP.so
登录

language-server-mcp MCP Server

@alexwohletz

基本信息

分类

其他

传输方式

stdio

作者

alexwohletz

关于 language-server-mcp MCP Server

暂无概览

language-server-mcp MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

language-server-mcp MCP Server 工具

3

Get hover information for a position in a document

Get completion suggestions for a position in a document

Get diagnostic information for a document

概览

What is language-server-mcp?

language-server-mcp is a TypeScript-based Model Context Protocol (MCP) server that provides language support features for code editing, including hover information, code completion suggestions, and diagnostic reporting. It is designed for developers using MCP-compatible clients like Claude Desktop, and has been tested with TypeScript while theoretically supporting Python.

How to use language-server-mcp?

Install dependencies with npm install, build with npm run build, and add the server configuration to your MCP client (e.g., Claude Desktop's claude_desktop_config.json). Use the exposed tools — get_hover, get_completions, and get_diagnostics — by providing the required parameters (languageId, filePath, content, line, character where applicable).

Key features of language-server-mcp

  • Provides hover information for symbols in code
  • Offers code completion suggestions
  • Reports diagnostic information (errors, warnings)
  • Integrates with the Model Context Protocol
  • Exposes language features as MCP tools
  • Debuggable using the MCP Inspector

Use cases of language-server-mcp

  • Getting hover information for a symbol at a specific position
  • Obtaining code completion suggestions at a cursor location
  • Retrieving diagnostic information (errors/warnings) for a document

常见问题

1

What languages does language-server-mcp support?

It has been tested with TypeScript and theoretically supports Python.

2

What MCP tools does language-server-mcp provide?

Three tools: `get_hover` (parameters: languageId, filePath, content, line, character), `get_completions` (same parameters), and `get_diagnostics` (parameters: languageId, filePath, content).

3

How can I debug language-server-mcp?

Use the MCP Inspector, available via `npm run inspector`, which provides a URL to access debugging tools.

4

How do I install language-server-mcp with Claude Desktop?

Add the server config to `claude_desktop_config.json` — on MacOS at `~/Library/Application Support/Claude/claude_desktop_config.json`, on Windows at `%APPDATA%/Claude/claude_desktop_config.json` — with the command pointing to the built `index.js`.

5

What are the build requirements for language-server-mcp?

Run `npm install` to install dependencies, then `npm run build` to compile the TypeScript server.

评论

其他 分类下的更多 MCP 服务器