Skip to main content
Glama

MCP Claude Code

by SDGLBL

grep

Search file contents using regular expressions to locate specific patterns. Filter results by file type and retrieve matching paths sorted by modification time. Ideal for precise codebase searches.

Instructions

Fast content search tool that works with any codebase size. Searches file contents using regular expressions. Supports full regex syntax (eg. "log.Error", "function\s+\w+", etc.). Filter files by pattern with the include parameter (eg. ".js", "*.{ts,tsx}"). Returns matching file paths sorted by modification time. Use this tool when you need to find files containing specific patterns. When you are doing an open ended search that may require multiple rounds of globbing and grepping, use the Agent tool instead.

Input Schema

NameRequiredDescriptionDefault
includeNoFile pattern to include in the search (e.g. "*.js", "*.{ts,tsx}")*
pathNoThe directory to search in. Defaults to the current working directory..
patternYesThe regular expression pattern to search for in file contents

Input Schema (JSON Schema)

{ "properties": { "include": { "default": "*", "description": "File pattern to include in the search (e.g. \"*.js\", \"*.{ts,tsx}\")", "title": "Include", "type": "string" }, "path": { "default": ".", "description": "The directory to search in. Defaults to the current working directory.", "title": "Path", "type": "string" }, "pattern": { "description": "The regular expression pattern to search for in file contents", "minLength": 1, "title": "Pattern", "type": "string" } }, "required": [ "pattern" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SDGLBL/mcp-claude-code'

If you have feedback or need assistance with the MCP directory API, please join our Discord server