Skip to main content
Glama

LSP Tools MCP Server

by rajnaveen344

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

local-only server

The server can only run on the client's local machine because it depends on local resources.

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

  1. 特徴
    1. インストール
      1. 使用法
        1. 発達
          1. テストの実行
          2. リンティング
        2. ツールドキュメント
          1. 正規表現の位置を見つける
          2. 許可されたディレクトリの一覧
        3. ライセンス

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.
            Last updated -
            1
            8
            7
            JavaScript
            Apache 2.0
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.
            Last updated -
            12
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
            Last updated -
            1
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A server implementation that exposes grep functionality through the Model Context Protocol, allowing MCP-compatible clients to search for patterns in files using regular expressions.
            Last updated -
            1
            Python
            GPL 3.0

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

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