Skip to content

Add capability to filesystem reference server #1648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/filesystem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ Node.js server implementing Model Context Protocol (MCP) for filesystem operatio
- Case-insensitive matching
- Returns full paths to matches

- **search_in_files**
- Search inside files for specific text or regex patterns
- Inputs:
- `path` (string): Starting directory
- `searchText` (string): Text or regex pattern to search for within files
- `filePattern` (string, optional, default: '*'): Glob pattern to filter which files to search
- `excludePatterns` (string[], optional, default: []): Glob patterns to exclude from search
- `maxResults` (number, optional, default: 1000): Maximum number of results to return
- `useRegex` (boolean, optional, default: false): Whether to interpret searchText as regular expression
- Returns matching lines with file path, line number, and content context
- Performs grep-like functionality across multiple files

- **get_file_info**
- Get detailed file/directory metadata
- Input: `path` (string)
Expand Down
Loading