Skip to main content
Glama

Git Repo Browser MCP

git_search_code

Search for specific patterns in Git repository code using regex or string matches. Filter results by file types and adjust case sensitivity or context lines for precise results.

Instructions

Search for patterns in repository code.

Input Schema

NameRequiredDescriptionDefault
case_sensitiveNoWhether the search is case sensitive
context_linesNoNumber of context lines to include
file_patternsNoOptional file patterns to filter (e.g., "*.js")
patternYesSearch pattern (regex or string)
repo_urlYesThe URL of the Git repository

Input Schema (JSON Schema)

{ "properties": { "case_sensitive": { "default": false, "description": "Whether the search is case sensitive", "type": "boolean" }, "context_lines": { "default": 2, "description": "Number of context lines to include", "type": "integer" }, "file_patterns": { "description": "Optional file patterns to filter (e.g., \"*.js\")", "items": { "type": "string" }, "type": "array" }, "pattern": { "description": "Search pattern (regex or string)", "type": "string" }, "repo_url": { "description": "The URL of the Git repository", "type": "string" } }, "required": [ "repo_url", "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/bsreeram08/git-commands-mcp'

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