count-matches
Count specific text or line matches within files or directories using regex patterns. Supports case sensitivity, file type filtering, and customizable output options for efficient search operations.
Instructions
Count matches in files using ripgrep
Input Schema
Name | Required | Description | Default |
---|---|---|---|
caseSensitive | No | Use case sensitive search (default: auto) | |
countLines | No | Count matching lines instead of total matches | |
filePattern | No | Filter by file type or glob | |
path | Yes | Directory or file(s) to search. | |
pattern | Yes | The search pattern (regex by default) | |
useColors | No | Use colors in output (default: false) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from MCP Ripgrep Server
Related Tools
- @mcollina/mcp-ripgrep
- @sylphlab/filesystem-mcp
- @auchenberg/claude-code-mcp
- @Alihkhawaher/everything-search-server
- @qpd-v/mcp-wordcounter