Skip to main content
Glama

Code MCP Server

by block

search_code

Search for patterns in code using queries or regex. Specify a directory and file pattern to locate specific matches within your codebase. Ideal for precise code analysis and debugging.

Instructions

Search for patterns in code

Input Schema

NameRequiredDescriptionDefault
file_patternNoFile pattern (e.g., *.py, *.js)
pathYesDirectory to search in
queryYesSearch query or regex
regexNoUse regex search

Input Schema (JSON Schema)

{ "properties": { "file_pattern": { "description": "File pattern (e.g., *.py, *.js)", "type": "string" }, "path": { "description": "Directory to search in", "type": "string" }, "query": { "description": "Search query or regex", "type": "string" }, "regex": { "description": "Use regex search", "type": "boolean" } }, "required": [ "query", "path" ], "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/block/vscode-mcp'

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