lsp-tools-mcp logo

Lsp Tools MCP

by rajnaveen344

0 forks
0 stars
Free

What is lsp-tools-mcp

lsp-tools-mcp is a sophisticated server developed by rajnaveen344 that provides functionality similar to the Language Server Protocol, specifically focused on text analysis. This server utilizes the Model Context Protocol (MCP) to facilitate secure connections between AI systems and various data sources. By acting as an intermediary, it helps AI systems access and analyze real-time information from files, documents, and directories securely. This makes it an invaluable tool for developers and AI systems needing efficient and precise text analysis capabilities.

How to Use lsp-tools-mcp

To start using lsp-tools-mcp, you need to install and set up the server. Here’s a straightforward guide to get you started:

  1. Installation:

    • You can install the server using the following commands:
      npm install
      npm run build
      
  2. Starting the Server:

    • Once installed, you can start the server by specifying the directories it is allowed to access. Use the command below to launch the server with access to a single directory:
      node dist/index.js /path/to/allowed/directory
      
    • For multiple directories, list them as shown:
      node dist/index.js /path/to/dir1 /path/to/dir2 /path/to/dir3
      
  3. Development and Testing:

    • Testing: Use Jest to run tests and ensure everything operates correctly:
      npm test
      
    • To continuously run tests during development:
      npm run test:watch
      
    • Linting: Maintain code quality with ESLint:
      npm run lint
      

Key Features of lsp-tools-mcp

lsp-tools-mcp offers several powerful features tailored for text analysis and directory management:

  • Find Regex Position:

    • This feature allows you to find the starting and ending positions of regex pattern matches within a file. It provides detailed information such as the matched text, starting line and column, and ending line and column, all indexed from zero.
    • Parameters:
      • path: Path to the file for the search.
      • regex: Regular expression pattern to match.
    • Returns: An array detailing each match’s text and position.
  • List Allowed Directories:

    • Easily retrieve a list of all directories that the server is permitted to access. This ensures that you keep track of which directories are available for analysis.
    • Returns: An array containing the absolute paths of accessible directories.

With these features, lsp-tools-mcp provides a robust platform for any application requiring comprehensive text analysis and secure directory management. Designed with user-friendliness and security at its core, this server enhances the capabilities of AI systems by providing timely access to necessary data in a controlled manner.

How to Use

To use the lsp-tools-mcp, follow these steps:

  1. Visit https://github.com/rajnav...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using lsp-tools-mcp capabilities within your Claude conversations

Additional Information

Created

March 9, 2025

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More