ast-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AST_MCP_ROOT | No | Root path for indexing and serving. Resolved via --root, else AST_MCP_ROOT, else the working directory. | current working directory |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| file_outlineA | Outline one file: definitions, key paths or headings, bodies elided. Use this instead of reading a file to find out what is in it. |
| get_symbolB | Fetch definitions by name, key path, or heading slug. mode: "source" (default) returns the body, "signature" and "doc" omit it. A name matching several different symbols returns candidates rather than guessing. A name matching several definitions of the same thing — many Lua listeners on one event — returns all of them in "symbols". line: pick one definition by the start_line a candidate reported. |
| search_symbolsC | Find definitions, key paths and headings by name across the repository. group is one of core, web, scripting, data, devops, docs. |
| get_docstringsB | Documentation without bodies. Pass exactly one of path or symbols. |
| list_importsC | Dependency edges out of one file, plus exports where the language has them. |
| ast_queryA | Run a raw tree-sitter S-expression query against one file. The escape hatch for anything the five typed tools flatten away. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/matthew-brough/AST_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server