language-server-mcp MCP サーバー
コード編集用の言語サポートを提供するモデル コンテキスト プロトコル (MCP) サーバー。
これはTypeScriptベースのMCPサーバーで、ホバー情報、コード補完、診断機能などの機能を提供することで、コード編集エクスペリエンスを向上させるように設計されています。以下の機能を提供することで、MCPのコアコンセプトを実証しています。
- コード分析と操作のための言語固有のツール
- シームレスな通信のためのモデルコンテキストプロトコルとの統合
特徴
言語サポート
- コード内のシンボルのホバー情報を提供します
- コード補完の提案を提供する
- 診断情報(エラー、警告)を報告します
- TypeScriptでのみテストしていますが、理論的にはPythonもサポートされるはずです。可能であれば、言語サーバーを追加したり、より非依存にしたりしたいと考えています。
MCP統合
- クライアントとの通信にMCPプロトコルを実装します
- 言語機能をMCPツールとして公開する
ツール
get_hover
: ドキュメント内の位置のホバー情報を取得する- 必須パラメータとして languageId、filePath、content、line、character を取ります
get_completions
: 文書内の位置の補完候補を取得する- 必須パラメータとして languageId、filePath、content、line、character を取ります
get_diagnostics
: ドキュメントの診断情報を取得する- 必須パラメータとして languageId、filePath、content を取ります
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
Claude Desktop で使用するには、サーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
ホバー情報、コード補完、診断などの機能を提供することでコード編集エクスペリエンスを強化するように設計された TypeScript ベースの MCP サーバーです。
Related MCP Servers
- AsecurityFlicenseAqualityThis TypeScript-based MCP server enables users to manage and summarize text notes, providing tools for note creation and summarization prompts.Last updated -132910TypeScript
- AsecurityAlicenseAqualityThis TypeScript-based MCP server enables users to manage a simple notes system with capabilities to create and summarize notes through structured prompts and resources.Last updated -51TypeScriptMIT License
- -securityFlicense-qualityThis TypeScript-based MCP server allows users to manage a simple notes system through creating and summarizing text notes using Model Context Protocol (MCP).Last updated -6627TypeScript
- AsecurityAlicenseAqualityThis TypeScript-based MCP server allows users to manage and interact with a note system through Model Context Protocol, enabling note creation and summarization with URIs and metadata.Last updated -1JavaScriptMIT License