Skip to main content
Glama

MCP-REPL

by AnEntrypoint

astgrep_search

Search code patterns using AST matching across specified paths for multiple programming languages, with adjustable strictness and context lines, integrated into the MCP-REPL server.

Instructions

Pattern-based code search using ast-grep - find code patterns using AST matching

Input Schema

NameRequiredDescriptionDefault
contextNoNumber of context lines to include
languageNoProgramming language (javascript, typescript, python, etc.)
outputFormatNoOutput format
pathsNoSpecific paths to search (defaults to current directory)
patternYesAST pattern to search for (e.g., 'function $NAME($$$ARGS) { $$$ }')
strictnessNoPattern matching strictness level
workingDirectoryNoOptional working directory for the operation (defaults to server working directory)

Input Schema (JSON Schema)

{ "properties": { "context": { "description": "Number of context lines to include", "type": "number" }, "language": { "description": "Programming language (javascript, typescript, python, etc.)", "type": "string" }, "outputFormat": { "description": "Output format", "enum": [ "compact", "pretty" ], "type": "string" }, "paths": { "description": "Specific paths to search (defaults to current directory)", "items": { "type": "string" }, "type": "array" }, "pattern": { "description": "AST pattern to search for (e.g., 'function $NAME($$$ARGS) { $$$ }')", "type": "string" }, "strictness": { "description": "Pattern matching strictness level", "enum": [ "cst", "smart", "ast", "relaxed" ], "type": "string" }, "workingDirectory": { "description": "Optional working directory for the operation (defaults to server working directory)", "type": "string" } }, "required": [ "pattern" ], "type": "object" }

Other Tools from MCP-REPL

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/AnEntrypoint/mcp-repl'

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