MCP Ripgrep Server

by mcollina
Verified

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

NameRequiredDescriptionDefault
caseSensitiveNoUse case sensitive search (default: auto)
countLinesNoCount matching lines instead of total matches
filePatternNoFilter by file type or glob
pathYesDirectory or file(s) to search.
patternYesThe search pattern (regex by default)
useColorsNoUse colors in output (default: false)

Input Schema (JSON Schema)

{ "properties": { "caseSensitive": { "description": "Use case sensitive search (default: auto)", "type": "boolean" }, "countLines": { "description": "Count matching lines instead of total matches", "type": "boolean" }, "filePattern": { "description": "Filter by file type or glob", "type": "string" }, "path": { "description": "Directory or file(s) to search.", "type": "string" }, "pattern": { "description": "The search pattern (regex by default)", "type": "string" }, "useColors": { "description": "Use colors in output (default: false)", "type": "boolean" } }, "required": [ "pattern", "path" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Ripgrep Server

Related Tools

ID: hcia0l3ms0