Skip to main content
Glama

CodeCompass MCP

MIT License
1
  • Linux
  • Apple

search_repository

Find specific patterns, text, functions, or classes in a GitHub repository using regex or predefined search types. Filter results by file extensions, exclude paths, and include context for precise code analysis.

Instructions

Search for patterns, text, functions, or classes across the entire repository with advanced filtering options.

Input Schema

NameRequiredDescriptionDefault
optionsNo
queryYesSearch query (supports regex patterns)
search_typeNoType of search to performtext
urlYesGitHub repository URL

Input Schema (JSON Schema)

{ "properties": { "options": { "properties": { "case_sensitive": { "default": false, "description": "Case sensitive search", "type": "boolean" }, "exclude_paths": { "default": [ "node_modules", "dist", "build", ".git" ], "description": "Paths to exclude from search", "items": { "type": "string" }, "type": "array" }, "file_extensions": { "description": "File extensions to search in", "items": { "type": "string" }, "type": "array" }, "include_context": { "default": true, "description": "Include surrounding code context", "type": "boolean" }, "max_results": { "default": 100, "description": "Maximum number of results", "type": "number" } }, "type": "object" }, "query": { "description": "Search query (supports regex patterns)", "type": "string" }, "search_type": { "default": "text", "description": "Type of search to perform", "enum": [ "text", "regex", "function", "class", "variable", "import" ], "type": "string" }, "url": { "description": "GitHub repository URL", "type": "string" } }, "required": [ "url", "query" ], "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/TheAlchemist6/codecompass-mcp'

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