
alexwohletz/language-server-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
コード編集のための言語サポートを提供するモデルコンテキストプロトコル(MCP)サーバー.
概要
コード編集のための言語サポートを提供するモデルコンテキストプロトコル(MCP)サーバー。 これは、ホバー情報、コード補完、診断などの機能を提供することで、コード編集体験を向上させるために設計されたTypeScriptベースのMCPサーバーです。 コアMCPのコンセプトを提示します。 - コード分析と操作のための言語固有のツール - シームレスな通信のためのモデルコンテキストプロトコルとの統合 - コード内のシンボルのホバー情報を提供する - コード補完提案 - レポート診断情報(エラー、警告) - 型スクリプトでのみテストされ、理論的にはPythonをサポートする必要があります。 必要に応じて、追加の言語サーバーを追加したり、より認知的になるのが好きです.
概要(AI 翻訳)
コード編集のための言語サポートを提供するモデルコンテキストプロトコル(MCP)サーバー。
これは、ホバー情報、コード補完、診断などの機能を提供することで、コード編集体験を向上させるために設計されたTypeScriptベースのMCPサーバーです。 コアMCPのコンセプトを提示します。
- コード分析と操作のための言語固有のツール
- シームレスな通信のためのモデルコンテキストプロトコルとの統合
##特徴
言語サポート
- コード内のシンボルのホバー情報を提供
- コード補完の提案
- 診断情報(エラー、警告)を報告する
- 型スクリプトでのみテストされ、理論的にはPythonをサポートする必要があります。 必要に応じて、追加の言語サーバーを追加したり、より認知的になるのが好きです。
##MCPの統合
- クライアントとのコミュニケーションのためのMCPプロトコルを実装
- MCPツールとしての言語機能を公開
ツール
- 必須パラメータとして言語ID、ファイルPath、コンテンツ、行、文字を取る
- 必須パラメータとして言語ID、ファイルPath、コンテンツ、行、文字を取る
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
language-server-mcp MCP Server
A Model Context Protocol (MCP) server providing language support for code editing.
This is a TypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics. It demonstrates core MCP concepts by providing:
- Language-specific tools for code analysis and manipulation
- Integration with the Model Context Protocol for seamless communication
Features
Language Support
- Provides hover information for symbols in code
- Offers code completion suggestions
- Reports diagnostic information (errors, warnings)
- Only tested with typescript, theoretically should support Python. Would love to add additional language servers or be more agnostic if possible.
MCP Integration
- 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
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"language-server-mcp": {
"command": "/path/to/language-server-mcp/build/index.js"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"language-server-mcp": {
"command": "/path/to/language-server-mcp/build/index.js"
}
}
}