Skip to main content
Glama
rajnaveen344

LSP Tools MCP Server

by rajnaveen344

LSPツールMCPサーバー

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

特徴

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

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

Related MCP server: MCP Filesystem Server

インストール

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を含まない)

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

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

パラメータ:

  • なし

戻り値:

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

ライセンス

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

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

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to authenticate as an admin.

Latest Blog Posts

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/rajnaveen344/lsp-tools-mcp'

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