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

工具文档

find_regex_position

此工具查找文件中正则表达式模式匹配的 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. find\_regex\_position
          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