# seshat-mcp

Delivers typed symbol graphs, call traces, and change blast radius to AI coding assistants.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: papyruslabs-ai
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/papyruslabs-ai/seshat-mcp
- Updated: 2026-10-06
- HTML: https://affpapa.org/en/nevibecode/mcp/seshat-mcp

## What it does

The server converts your codebase into a typed symbol graph containing functions, classes, routes, and database tables. Instead of text matching or vector embeddings, it relies on a compiled intermediate representation. Tools like `get_blast_radius` and `get_dependencies` map exact downstream impacts before modifying any target symbol.

It inspects Git history via `get_lineage` and `get_hotspots` to flag fragile areas and unstable commits. For JavaScript, TypeScript, and Python, the `query_call_sites` tool detects unhandled call failures and unawaited promises. Code investigation starts once you point the agent at a repository with `sync_project`.

Code analysis runs strictly inside Papyrus Labs infrastructure, meaning the server cannot query without a valid `SESHAT_API_KEY`. The first repo extraction is free, after which queries cost $0.03 each past the initial tier.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `SESHAT_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add seshat-mcp -e SESHAT_API_KEY=<SESHAT_API_KEY> -- npx -y @papyruslabsai/seshat-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add seshat-mcp --env SESHAT_API_KEY=<SESHAT_API_KEY> -- npx -y @papyruslabsai/seshat-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "seshat-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@papyruslabsai/seshat-mcp"
            ],
            "env": {
                "SESHAT_API_KEY": "<SESHAT_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "seshat-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@papyruslabsai/seshat-mcp"
            ],
            "env": {
                "SESHAT_API_KEY": "<SESHAT_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e SESHAT_API_KEY=<SESHAT_API_KEY> seshat-mcp npx -y @papyruslabsai/seshat-mcp
```
Replace <…> with your own values

## When to use it
- map transitive blast radius before refactoring a critical symbol
- surface unawaited promises and uncaught errors across call sites
- gather a minimal ranked set of context files for upcoming edits
- track historical commit hotspots and co-changing file clusters

## Example prompts
- Check the blast radius for `handleAuthCallback` before altering its signature
- Run `query_call_sites` to find floating promises in the API routes
- Retrieve the lineage and commit churn data for the checkout module

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
