Skip to main content
Glama
LSP Tools MCP Server

LSP Tools MCP Server

by rajnaveen344

LSPツールMCPサーバー

テキスト分析用の言語サーバー プロトコルのような機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • 正規表現の位置を検索: ファイル内の正規表現パターンに一致する 0 から始まる行と列の位置を検索します。

  • 許可されたディレクトリの一覧: サーバーがアクセスを許可されているディレクトリの一覧を取得します

Related MCP server: TokenScope

インストール

npm install
npm run build

使用法

# Start the server allowing access to a specific directory
node dist/index.js /path/to/allowed/directory

# Start the server with multiple allowed directories
node dist/index.js /path/to/dir1 /path/to/dir2 /path/to/dir3

発達

テストの実行

このプロジェクトではテストにJestを使用しています。以下のコマンドでテストを実行します。

npm test

開発中にウォッチモードでテストを実行するには:

npm run test:watch

リンティング

ESLint を使用してコードをリントします。

npm run lint

ツールドキュメント

正規表現の位置を見つける

このツールは、ファイル内の正規表現パターンに一致する 0 インデックスの行と列の位置を見つけます。

パラメータ:

  • path : 検索するファイルへのパス

  • regex : 検索する正規表現パターン

戻り値:

  • 次のプロパティを持つ一致の配列:

    • match : 一致したテキスト

    • line : 開始行(0から始まる)

    • column : 開始列(0から始まるインデックス)

    • endLine : 終了行(0から始まる)

    • endColumn : 終了列(0から始まる、0を含まない)

許可されたディレクトリの一覧

このツールは、このサーバーがアクセスを許可されているすべてのディレクトリを一覧表示します。

パラメータ:

  • なし

戻り値:

  • 許可されたディレクトリへの絶対パスの配列

ライセンス

マサチューセッツ工科大学

Available Tools

2 tools
find_regex_positionA

Find the positions (line and column) of regex pattern matches in a file. Returns an array of matches with their positions. Line and column numbers are 0-indexed (first line is 0). Each match includes: match (matched text), line (starting line), column (starting column), endLine (ending line), and endColumn (ending column, exclusive). IMPORTANT: The path parameter must be an absolute path. Relative paths are not supported.

Inputs: path (required), regex (required).

list_allowed_directoriesA

Lists all directories that this server is allowed to access. Use this to understand which paths are accessible before trying to access files. Returns an array of absolute paths to allowed directories.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have completely distinct purposes with no overlap. find_regex_position performs a specific text search operation on files, while list_allowed_directories provides metadata about server permissions. An agent would never confuse these tools as they serve fundamentally different functions in the workflow.

    Naming Consistency4/5

    Both tools follow a clear verb_noun naming pattern (find_regex_position, list_allowed_directories) with consistent snake_case formatting. The naming is logical and predictable, though with only two tools it's difficult to assess full consistency across a larger set.

    Tool Count2/5

    With only 2 tools, this server feels severely underpowered for an LSP (Language Server Protocol) context. LSP servers typically handle numerous language operations like diagnostics, completions, definitions, and references. This minimal toolset suggests either an incomplete implementation or a very narrow specialization that doesn't match typical LSP expectations.

    Completeness2/5

    For an LSP server, this toolset is severely incomplete. While the two provided tools are useful (file search and directory listing), they represent only a tiny fraction of expected LSP functionality. Missing are core language features like code completion, hover information, go-to-definition, references, diagnostics, formatting, and other standard LSP capabilities that agents would expect from such a server.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers