Provides Model Context Protocol functionality for text analysis with features to locate regex pattern positions in files and list accessible directories, enhancing code inspection and directory management.
Unlock the full potential of LSP Tools MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
A Model Context Protocol (MCP) server providing Language Server Protocol-like functionality for text analysis.
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
The project uses Jest for testing. Run the tests with:
npm test
To run tests in watch mode during development:
npm run test:watch
Lint the code with ESLint:
npm run lint
This tool finds the 0-indexed line and column positions of regex pattern matches in a file.
Parameters:
path
: The path to the file to search inregex
: The regular expression pattern to search forReturns:
match
: The matched textline
: The starting line (0-indexed)column
: The starting column (0-indexed)endLine
: The ending line (0-indexed)endColumn
: The ending column (0-indexed, exclusive)This tool lists all directories that this server is allowed to access.
Parameters:
Returns:
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!