# ASTra MCP: Permanent AST Code Memory

> Set up ASTra, a 100% local AST knowledge graph MCP server, so your agent gets the 5-25 most relevant functions instead of whole files.

ASTra MCP: Permanent AST Code Memory is a paid AI agent skill on Agensi by narra satya sai charan, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [narra satya sai charan](https://www.agensi.io/creators/narra-satya-sai-charan)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 1
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/astra-mcp-permanent-ast-code-memory
- Tags: llm-ops, mcp-server, context-window, python, typescript, ast

## About this skill

Navigating large codebases often forces agents to ingest entire files, leading to massive token waste and lost context. This skill integrates ASTra MCP into your workflow, providing a local AST-based knowledge graph that serves the 25 most relevant functions instead of raw source code.

### What it does
- **Persistent memory** allows your agent to recall relevant symbols across multiple coding sessions.
- **Context retrieval** fetches targeted code signatures for a specific task using vector search and PageRank.
- **Impact analysis** calculates the blast radius and risk score before you refactor shared functions.
- **Cross-repo tracing** follows function calls across different repositories to maintain visibility.
- **Semantic search** finds functions based on their behavior rather than just their names.

### How it works
1. **Initialize** the project by running `astra init` to parse code into a local SQLite knowledge graph.
2. **Configure** the agent using provided JSON templates for Claude Code, Cursor, Windsurf, or VS Code.
3. **Query** the graph using `astra_get_context` to receive a ranked list of relevant symbols for a new task.
4. **Verify** edits by running `astra_impact_analysis` to identify all callers and callees affected by a change.

### Frameworks & tools
Built for Python, JavaScript, TypeScript, Go, Rust, and Java. It uses tree-sitter for parsing and all-MiniLM-L6-v2 for local embeddings.

### Why this beats prompting it yourself
Manual prompting cannot index an entire repository or calculate PageRank for symbol relevance. This skill automates the retrieval of high-signal context, reducing token usage by up to 98% compared to reading full files.

### Use cases
- Adding features to large, unfamiliar repositories without reading every file.
- Performing safe refactors by checking the blast radius of a function change.
- Finding logic bugs in functions where the name does not match the behavior.
- Tracing complex call chains across multiple internal dependencies.

### Known limitations
Supports only Python, JS, TS, Go, Rust, and Java. Requires Python 3.10+ and an initial 80MB download for the embedding model. Absolute paths are required in MCP configurations.

## Requires

- Python 3.10+
- pip
- astra-mcp (pip install astra-mcp)
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ASTra MCP: Permanent AST Code Memory skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help reduce my agent's token consumption?

ASTra MCP uses tree-sitter to build a local knowledge graph of your code, providing agents with targeted function signatures and PageRank-weighted relevance rather than raw, token-heavy source files.

### Which AI agents and IDEs are compatible with ASTra MCP?

It is designed for the Model Context Protocol (MCP) and includes ready-to-use JSON configuration templates for popular IDEs and agents like Claude Code, Cursor, Windsurf, and VS Code.

### How does the impact analysis feature help with refactoring safely?

The impact analysis tool calculates the 'blast radius' of a change by identifying all upstream callers and downstream callees that would be affected by refactoring a specific function.

### Does my source code need to be uploaded to a cloud service for indexing?

Yes, ASTra MCP processes everything locally, using a local SQLite database for the knowledge graph and a local all-MiniLM-L6-v2 model for embeddings, ensuring your code never leaves your machine.

### What are the technical requirements and supported programming languages?

Currently, the skill supports Python, JavaScript, TypeScript, Go, Rust, and Java; you will need Python 3.10+ installed on your system to run the local indexing service.

### What exactly is included in the ASTra MCP package?

Your purchase includes the MCP server package, the Astra CLI tool for project initialization, and a suite of configuration templates to get you started immediately.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
