advanced-search
Search text across files using regex or literal patterns with options for case sensitivity, file type filtering, context lines, and more using ripgrep on the MCP Ripgrep Server.
Instructions
Advanced search with ripgrep with more options
Input Schema
Name | Required | Description | Default |
---|---|---|---|
caseSensitive | No | Use case sensitive search (default: auto) | |
context | No | Show N lines before and after each match | |
filePattern | No | Filter by file type or glob | |
fileType | No | Filter by file type (e.g., js, py) | |
fixedStrings | No | Treat pattern as a literal string, not a regex | |
followSymlinks | No | Follow symbolic links | |
includeHidden | No | Search in hidden files and directories | |
invertMatch | No | Show lines that don't match the pattern | |
maxResults | No | Limit the number of matching lines | |
path | Yes | Directory or file(s) to search. | |
pattern | Yes | The search pattern (regex by default) | |
showFilenamesOnly | No | Only show filenames of matches, not content | |
showLineNumbers | No | Show line numbers | |
useColors | No | Use colors in output (default: false) | |
wordMatch | No | Only show matches surrounded by word boundaries |