Skip to main content
Glama

MCP-REPL

by AnEntrypoint

astgrep_analyze

Analyze and debug code structure using AST patterns to identify issues, specify a programming language, and optionally enable detailed query or tree context analysis within a secure sandboxed environment.

Instructions

AST structure analysis and debugging using ast-grep

Input Schema

NameRequiredDescriptionDefault
debugQueryNoEnable debug mode for query analysis
languageNoProgramming language
patternYesAST pattern to analyze
showFullTreeNoShow full AST tree context
workingDirectoryNoOptional working directory for the operation (defaults to server working directory)

Input Schema (JSON Schema)

{ "properties": { "debugQuery": { "description": "Enable debug mode for query analysis", "type": "boolean" }, "language": { "description": "Programming language", "type": "string" }, "pattern": { "description": "AST pattern to analyze", "type": "string" }, "showFullTree": { "description": "Show full AST tree context", "type": "boolean" }, "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