# athena [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/aaryanrwt/athena  
**GitHub Stars:** 29  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/athena

## Description
Deterministic Git & AST change intelligence engine and Model Context Protocol (MCP) server. Detects breaking changes, maps caller blast radius, identifies doc drift, and drafts evidence-grounded release notes with optional local LLM acceleration.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "athena": {
    "command": "uvx",
    "args": ["athena-mcp"]
  }
}
```

## Documentation

## What athena does

athena examines Git diffs and source trees to identify changes that may affect callers or public interfaces. Its analysis includes removed or modified symbols, possible signature changes, unguarded `None` defaults, unit-shift hints, recursion issues, documentation drift, and the distinction between internal-only and externally visible surfaces.

The tool also builds repository maps and code graphs, predicts tests likely to be affected by a diff, records technical-debt markers, and measures raw versus compacted token usage. It can produce evidence bundles, paged analysis views, SARIF, HTML, and unified diffs. Analysis is local-first and works without cloud APIs or a vector database.

## How it works

A security and redaction layer applies path-jail and secret-redaction controls before analysis. Git inspection and AST processing then combine Python’s built-in AST support with optional Tree-sitter grammars for multiple languages. Supported graph and parsing coverage includes Python, TypeScript and JavaScript, Go, Rust, C and C++, C#, Java, Kotlin, Scala, Swift, Ruby, PHP, CUDA, and TeX.

Repository relationships are stored in `.athena/graph.json`, while compact evidence records use identifiers such as `ev_<sha256>`. Unresolved dynamic calls, including cases involving `getattr` or `eval`, remain explicitly tracked as residual unknowns rather than being treated as proven results. Large outputs can be requested in summary form and inspected later through paged views.

The default analysis is deterministic and offline. Ollama models can be enabled with `--llm`, and hybrid Rust acceleration is available for supported operations.

## Setup and configuration

Clone the repository and install it as an editable Python package:

```bash
git clone https://github.com/aaryanrwt/athena.git
cd athena
pip install -e ".[ast]"
```

The minimal installation can be used with `pip install -e .`, which provides a structural fallback. Athena expects Python 3.13 or newer, Git, and the MCP SDK. The `athena doctor .` command checks the local Python runtime, Git, MCP SDK, Tree-sitter, Rust acceleration, token ledger, evidence store, and repository state.

Start the MCP endpoint with a command such as:

```bash
athena mcp --toolsets git,graph --read-only
```

The server supports stdio and loopback streamable HTTP. `athena init-mcp cursor` generates MCP configuration JSON for Claude Desktop, Cursor, or VS Code.

## Tools and capabilities

- Review staged changes and fail a pre-commit check when public APIs may break.
- Compare Git revisions for breaking changes, affected callers, and documentation drift.
- Build, search, and traverse a multi-language repository graph.
- Export a compact repository map and measure local token savings.
- Plan deterministic fixes and apply patches classified as `safe` or `review_required`.
- Predict affected pytest, Playwright, Swift, Scala, and unit tests.
- Inspect retained evidence, list debt markers, and generate reports.
- Serve 15 MCP tools, five read-only resources or templates, and three guided prompts.

## Limitations and notes

Dynamic calls and oversized files can remain unresolved and are recorded as residual unknowns. Deterministic fixes are not all equally automatic: safe patches can be applied, while shims and migration guides marked `review_required` need approval. Local LLM use is optional rather than part of the default analysis path. The HTTP transport is intended to be loopback-guarded.

_Full upstream README: https://allmcps.com/mcp/athena/readme_

