Skip to main content
Glama

code-index-mcp

search_code_advanced

Perform advanced code searches with external tools like ripgrep, ag, or grep for enhanced performance. Supports case sensitivity, context lines, file patterns, and safe fuzzy matching for precise results.

Instructions

Advanced search using external tools (ripgrep, ag, grep) for better performance. Falls back to basic search if no advanced tools are available. Args: pattern: Search pattern case_sensitive: Case sensitive search context_lines: Number of context lines to show around matches file_pattern: File pattern to include (e.g., "*.py", "*.js") fuzzy: Enable safe fuzzy search patterns: - Adds word boundary matching for better results - Allows partial word matching at word boundaries - Safe alternative to full regex support Returns: Dict containing search results and metadata

Input Schema

NameRequiredDescriptionDefault
case_sensitiveNo
context_linesNo
file_patternNo
fuzzyNo
patternYes

Input Schema (JSON Schema)

{ "properties": { "case_sensitive": { "default": true, "title": "Case Sensitive", "type": "boolean" }, "context_lines": { "default": 0, "title": "Context Lines", "type": "integer" }, "file_pattern": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "File Pattern" }, "fuzzy": { "default": false, "title": "Fuzzy", "type": "boolean" }, "pattern": { "title": "Pattern", "type": "string" } }, "required": [ "pattern" ], "title": "search_code_advancedArguments", "type": "object" }
Install Server

Other Tools from code-index-mcp

Related Tools

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/johnhuang316/code-index-mcp'

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