LSP Tools MCP Server
by rajnaveen344
The LSP Tools MCP Server provides Language Server Protocol-like functionality for text analysis using the Model Context Protocol. It allows finding regex positions within files and listing allowed directories for access.
Last updated: N/A
What is LSP Tools MCP Server?
The LSP Tools MCP Server is a server that implements a subset of the Language Server Protocol (LSP) using the Model Context Protocol (MCP). It provides tools for analyzing text files, specifically finding regex matches and managing directory access.
How to use LSP Tools MCP Server?
To use the server, first install the dependencies and build the project using npm install
and npm run build
. Then, start the server by providing the allowed directories as command-line arguments: node dist/index.js /path/to/allowed/directory
.
Key features of LSP Tools MCP Server
Find Regex Position
List Allowed Directories
Configurable Allowed Directories
Language Server Protocol-like functionality
Use cases of LSP Tools MCP Server
Text analysis for code editors
Automated code review
Security auditing of file access
Programmatic text processing
FAQ from LSP Tools MCP Server
How do I add more allowed directories?
How do I add more allowed directories?
Pass multiple directory paths as arguments when starting the server, e.g., node dist/index.js /path/to/dir1 /path/to/dir2
.
What is the purpose of the 'find_regex_position' tool?
What is the purpose of the 'find_regex_position' tool?
This tool allows you to locate all occurrences of a specified regular expression within a given file and retrieve their line and column positions.
What does the 'list_allowed_directories' tool do?
What does the 'list_allowed_directories' tool do?
It returns a list of all directories that the server is permitted to access. This is useful for security and access control.
How do I run the tests?
How do I run the tests?
Use the command npm test
to run the Jest tests.
How do I lint the code?
How do I lint the code?
Use the command npm run lint
to lint the code with ESLint.