Seshat Mcp

ai.papyruslabsv0.20.2更新於 Oct 2, 2026

Structural code intelligence for AI agents: real call graphs, blast radius, and change history.

已驗證STDIO僅桌面Developer ToolsKnowledge & Memory

概覽

AI 產生的概覽

為編碼助理提供倉庫的編譯符號圖,讓它在修改前能追蹤呼叫端、影響範圍與變更歷史。

功能
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 帳號。
安裝前請注意
原始碼會傳送到 Papyrus Labs 雲端進行分析並快取以提供查詢,因此私有程式碼會離開本機。SESHAT_API_KEY 是機密,不應外洩。首次擷取免費,之後查詢會收費,使用可能產生費用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Seshat Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

npx -y @papyruslabsai/seshat-mcp setup <your-key>

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):

json
{  "mcpServers": {    "seshat": {      "command": "npx",      "args": ["-y", "@papyruslabsai/seshat-mcp"],      "env": { "SESHAT_API_KEY": "your-key" }    }  }}

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 synced
  • list_modules — how the codebase is organized, by layer or module
  • query_entities — find functions, classes, and routes by name, layer, or module
  • find_entry_points — routes, exports, and the public API surface

Investigate a symbol

  • get_entity — signature, callers, callees, data flow, side effects, and tables touched
  • get_dependencies — the real call chain, callers and callees
  • get_blast_radius — everything that breaks if you change it, transitively
  • get_data_flow — what a function reads, returns, and mutates
  • get_optimal_context — the minimal, ranked set of files to read before editing
  • find_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
  1. v0.20.2最新Oct 2, 2026