Skip to main content
Glama

language-server-mcp

by alexwohletz

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 を取ります

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "language-server-mcp": { "command": "/path/to/language-server-mcp/build/index.js" } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

ホバー情報、コード補完、診断などの機能を提供することでコード編集エクスペリエンスを強化するように設計された TypeScript ベースの MCP サーバーです。

  1. 特徴
    1. 言語サポート
    2. MCP統合
    3. ツール
  2. 発達
    1. インストール
      1. デバッグ

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      A 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 -
      2
      1,012
      4
      JavaScript
    • -
      security
      F
      license
      -
      quality
      A 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,667
      JavaScript
      • Apple
    • -
      security
      F
      license
      -
      quality
      A TypeScript-based server project that can be integrated with Cursor IDE as an MCP (Model Control Protocol) server, enabling enhanced development capabilities.
      Last updated -
      4
      TypeScript
    • -
      security
      A
      license
      -
      quality
      A TypeScript framework for building MCP servers with client session management capabilities, supporting tools definition, authentication, image content, logging, and error handling.
      Last updated -
      6,371
      TypeScript
      MIT License

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexwohletz/language-server-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server