LSP Tools MCP Server

Integrations

  • Provides code linting capabilities through ESLint integration, allowing for static code analysis according to configurable rules

  • Integrates with Jest for running and managing tests, enabling test execution and monitoring during development

  • Uses npm for package management, installation of dependencies, and running build and development scripts

LSPツールMCPサーバー

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

特徴

  • 正規表現の位置を検索: ファイル内の正規表現パターンに一致する 0 から始まる行と列の位置を検索します。
  • 許可されたディレクトリの一覧: サーバーがアクセスを許可されているディレクトリの一覧を取得します

インストール

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

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

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

パラメータ:

  • なし

戻り値:

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

ライセンス

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

-
security - not tested
A
license - permissive license
-
quality - not tested

ファイル内の正規表現パターンの位置を検索し、許可されたディレクトリを一覧表示するツールを提供し、LSP のような機能によるテキスト分析を可能にするモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Installation
      1. Usage
        1. Development
          1. Running Tests
          2. Linting
        2. Tool Documentation
          1. find_regex_position
          2. list_allowed_directories
        3. License
          ID: 5glvyppuss