
Seshat Mcp
ai.papyruslabsv0.20.2更新于 Oct 2, 2026
Structural code intelligence for AI agents: real call graphs, blast radius, and change history.
概览
为编码助手提供仓库的编译符号图,使其在修改前能追踪调用方、影响范围和变更历史。
- 功能
- Seshat 将仓库转换为函数、类、路由和表的类型化符号图,包含真实的依赖边,并通过 MCP 提供给助手。工具包括 sync_project、list_projects、list_modules、query_entities、find_entry_points、get_entity、get_dependencies、get_blast_radius、get_data_flow、get_optimal_context、find_by_constraint、find_dead_code、get_lineage、get_hotspots 和 get_co_change_clusters。答案来自编译图而非文本搜索或嵌入,并会说明其覆盖范围。
- 适用场景
- 适用于助手在仓库中修改代码时,需要了解改动会破坏什么、应先阅读哪些文件,或某函数历史上的变化情况。最适合规模较大或关键的代码库,因为猜测依赖关系容易引入回归。
- 运行要求
- 作为 npm 包通过 stdio 在本地运行,需要 Node.js 和 npx。必须在 SESHAT_API_KEY 环境变量中提供 Seshat API 密钥;setup 命令会写入 MCP 配置并保存密钥。分析在 Papyrus Labs 云端进行,因此需要网络访问,私有仓库还需连接 GitHub 账户。
安装
在 SourceWeft 中
- 打开 控制台中的 Seshat Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Seshat — structural code intelligence for AI agents
Your agent reconstructs your codebase from likelihood. Seshat compiles it.
Seshat turns a repository into a typed symbol graph (every function, class, route, and table, with its real dependency edges, data flow, and constraints) and serves it to your agent over MCP. So before your agent edits a function, it can ask what will actually break instead of guessing.
Backed by a compiled intermediate representation, not text search or embeddings: if Seshat says a function has three callers, it has exactly three.
Why
AI coding agents are fast but structurally blind. When an agent changes one function, it often cannot see everything that depends on it, so it silently breaks callers it never looked at. A large share of AI-introduced regressions come from exactly this. Seshat gives the agent the map.
Try it first (no install, no login)
Paste any public repo at https://seshat.papyruslabs.ai/try and watch it trace what a change would break.
Install
Get a free key at https://seshat.papyruslabs.ai (first extraction is free). The setup command writes your MCP config and stores the key.
Or configure manually (Claude Code, Cursor, or any MCP client):
Tools
Point your agent at a repo with sync_project, then it investigates the way a senior
engineer does: orient, trace, verify.
Orient
list_projects— what is syncedlist_modules— how the codebase is organized, by layer or modulequery_entities— find functions, classes, and routes by name, layer, or modulefind_entry_points— routes, exports, and the public API surface
Investigate a symbol
get_entity— signature, callers, callees, data flow, side effects, and tables touchedget_dependencies— the real call chain, callers and calleesget_blast_radius— everything that breaks if you change it, transitivelyget_data_flow— what a function reads, returns, and mutatesget_optimal_context— the minimal, ranked set of files to read before editingfind_by_constraint— every function that touches a given table (or carries a given trait)find_dead_code— unreachable symbols, safe to delete
Read the history (from the repo's commit record, backfilled on first sync)
get_lineage— how one function has actually changed: each commit typed by what moved (body, calls, data, signature), CI pass/fail and reverts, what changes alongside it, and what last forced a change here. Ask it before touching anything load-bearing.get_hotspots— where development happens and where it fails: the most-changed code, thrash spots where changes keep getting reverted or landing on red CI, and heavily used code nobody has touched (stability pressure)get_co_change_clusters— the hidden modules: code that changes together across files even when no import connects it, so a change to one member usually means the rest
Every answer comes from the compiled graph and discloses the coverage behind it. History is commit-resolution correlation and says so; it never claims causation it can't show.
Cross-cutting audit tools (test coverage, topology, semantic clones) are being hardened and will be added to this list as they land.
Privacy
Analysis runs in the Papyrus Labs cloud, by design: the compiled graph is the product's moat, and keeping extraction server-side is how that stays protected. Public repos are cloned from GitHub; private repos require you to connect your GitHub account. Source is processed to build the graph and cached to serve queries. See the privacy policy at seshat.papyruslabs.ai.
Pricing
First extraction is free. $0.03 per query after a free tier; a typical investigation is 5 to 15 queries. Details at https://seshat.papyruslabs.ai.
MIT licensed server. Named for the goddess who kept the records, built so your agent can read them.
来源:README.md,提交 7e9366f
工具
0版本历史
1- v0.20.2最新Oct 2, 2026

