rajnaveen344/lsp-tools-mcp
If you are the rightful owner of lsp-tools-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server providing Language Server Protocol-like functionality for text analysis.
The LSP Tools MCP Server is designed to offer functionalities similar to the Language Server Protocol, specifically tailored for text analysis tasks. It allows users to perform operations such as finding regex pattern matches within files and managing directory access permissions. The server is built using Node.js and can be easily installed and run on various systems. It supports multiple directories, making it versatile for different project structures. The server also includes development tools like Jest for testing and ESLint for code linting, ensuring a robust and maintainable codebase.
Features
- Find Regex Position: Find the 0-indexed line and column positions of regex pattern matches in a file.
- List Allowed Directories: Get a list of directories the server is allowed to access.
Usages
usage with local integration stdio
python mcp.run(transport='stdio') # Tools defined via @mcp.tool() decorator
usage with local integration ide plugin
{ "mcpServers": { "lsp-tools": { "command": "node", "args": ["dist/index.js", "/path/to/allowed/directory"] } } }
usage with remote integration sse
python mcp.run(transport='sse', host="0.0.0.0", port=8000) # Specify SSE endpoint
usage with remote integration streamable http
yaml paths: /mcp: post: x-ms-agentic-protocol: mcp-streamable-1.0 # Copilot Studio integration
usage with platform ecosystem integration ai toolchains
{"command": "docker", "args": ["run", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]}
usage with platform ecosystem integration enterprise saas
{ "mcpServers": { "lsp-tools": { "command": "node", "args": ["dist/index.js", "/path/to/allowed/directory"] } } }
Tools
find_regex_position
Finds the 0-indexed line and column positions of regex pattern matches in a file.
list_allowed_directories
Lists all directories that this server is allowed to access.