Repository-aware MCP server providing source-linked context for coding agents
rag-rat, by Cq27 Dev, is an MCP server and local repository intelligence index for AI coding agents. It supplies agents with source-anchored rationale that links code snippets to context, history, and potential impact so they can make informed analysis and change decisions. Includes semantic retrieval, a persistent memory graph, git-aware indexing, and provenance for results, keeping agent context aligned with local repository state. Built for developers and AI engineers embedding coding assistants into private repo workflows who need durable, source-linked context.
What tasks can you actually use the tool for?
The tool supplies AI coding agents with repository-aware context to support targeted code lookup, dependency inspection, and change assessment. It maps symbol relationships and runs an impact-surface preflight so agents can evaluate consequences before editing. For debugging and trace-based research, it returns structured links to callers, callees, and tests so an agent can locate related call chains and verification points during reasoning.
How accurate are results and how traceable is the reasoning?
Provenance is attached to every result, explicitly recording callers, callees, and tests, which provides a verifiable trail for agent answers. The tool also integrates git and GitHub papertrails so retrieved context references commit history and issue context rather than isolated text matches. These provenance signals make candidate snippets inspectable, allowing users to follow a result back into the repository and its historical decisions for validation.
What file formats and environments does it require?
The tool runs as a Model Context Protocol server and requires a local runtime, typically Node.js or a Rust build. It writes index data to a local SQLite database while keeping source files read-only. Deployment notes include the following:
- MCP host compatibility: works with any MCP host, for example Claude Desktop.
- Runtime: Node.js or Rust environment required.
Does it fit into a developer workflow without major friction?
The tool offers a zero-installation VS Code Lens demo for immediate exploration and a background file watcher enabled by default so the index reflects uncommitted edits and branch switches. It is open-source under the MIT License, which supports audit and self-hosting. For teams handling private code, local SQLite storage and the read-only source policy preserve repository control while enabling agent-assisted queries within existing workflows.
Practical judgment: suited for repo-centric agent workflows
The tool is a pragmatic option for developers and AI engineers who require traceable, repository-grounded context for coding agents; its provenance-first approach and local index support verifiable agent outputs. Expect an initial setup tied to a local MCP host and a Node.js or Rust runtime, which increases deployment steps. Teams prioritizing private control and auditable agent reasoning gain the most, while those needing instant cloud-hosted search may look elsewhere.





