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 を提供します。
You must be authenticated.
ホバー情報、コード補完、診断などの機能を提供することでコード編集エクスペリエンスを強化するように設計された TypeScript ベースの MCP サーバーです。
Related MCP Servers
- AsecurityFlicenseAqualityA TypeScript-based MCP server designed for experimentation and integration with Calude Desktop and Cursor IDE, offering a modular playground for extending server capabilities.Last updated -21,0124JavaScript
- -securityFlicense-qualityA TypeScript-based MCP server that enables users to manage text notes and generate summaries, showcasing key MCP concepts like resource representation and LLM integration.Last updated -1,667JavaScript
- -securityFlicense-qualityA TypeScript-based server project that can be integrated with Cursor IDE as an MCP (Model Control Protocol) server, enabling enhanced development capabilities.Last updated -4TypeScript
- -securityAlicense-qualityA TypeScript framework for building MCP servers with client session management capabilities, supporting tools definition, authentication, image content, logging, and error handling.Last updated -6,371TypeScriptMIT License