gen-system Understand

io.github.hpdkhoa由 GitHub 帳號 hpdkhoa 發布v0.2.0更新於 Nov 2, 2026

Parser facts about a codebase: architecture, call graphs, control flow, effects, beliefs

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

本機唯讀 MCP 伺服器,為助理提供程式碼庫的確定性解析事實:架構、符號、呼叫圖、控制流、副作用與原始碼。

可以做什麼
  • 檢視程式碼庫架構,依搜尋或依檔案列出符號
  • 追蹤常式的呼叫圖與控制流圖
  • 讀取符號與常式的原始碼
  • 查詢解析出的副作用,以及引擎對每個常式所持的信念
  • 在啟用修正選項啟動時,記錄對信念的修正
適用情境
適合需要以解析器事實、而非憑檔案閱讀猜測來回答儲存庫結構與呼叫關係問題的情境,尤其是 Go、含 copybook 的 COBOL、CA Gen、Java、TypeScript 與 Python 程式碼庫。
執行需求
以本機 stdio 程序執行,通常用 npx 啟動並傳入指向儲存庫的根路徑參數。走 npm 套件需要 Node.js/npm,也可用 Go 直接安裝二進位檔。首次執行會從 gen-system 發行頁下載對應平台的二進位檔並驗證 SHA-256,之後可離線使用。選用環境變數 UNDERSTAND_MCP_BINARY 與 UNDERSTAND_MCP_CACHE 分別控制二進位檔路徑與快取資料夾。未宣告驗證。
安裝前請注意
伺服器自稱唯讀且不傳送任何資料到外部,但首次執行會下載並執行來自遠端發行頁的二進位檔,需留意校驗與下載來源。選用的 correct_belief 工具在啟用修正選項後會寫入信念資料,若無修改意圖請勿開啟。請將根路徑參數指向預期的儲存庫。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

gen-understand

gen-system's Understand engine as an MCP server. It gives an AI agent parser facts about a codebase: the architecture, symbols, call graphs, control flow graphs, effects, source and the beliefs gen-system holds about each routine. No model writes these answers; deterministic parsers for Go, COBOL with copybooks, CA Gen, Java, TypeScript and Python do.

The server is read only. It runs locally and sends nothing anywhere.

Use it

Claude Code

bash
claude mcp add gen-understand -- npx -y gen-understand --root /path/to/your-repo

Codex (~/.codex/config.toml)

toml
[mcp_servers.gen-understand]command = "npx"args = ["-y", "gen-understand", "--root", "/path/to/your-repo"]

Cursor (.cursor/mcp.json)

json
{  "mcpServers": {    "gen-understand": {      "command": "npx",      "args": ["-y", "gen-understand", "--root", "."]    }  }}

Tools

architecture, search_symbols, call_graph, control_flow, source, file_symbols, effects and beliefs. With --allow-corrections, also correct_belief. The full list, the flags and the protocol details are in docs/mcp.md.

How this package works

The server is a Go binary. On first run this package downloads the binary for your platform from the gen-system release of the same version, checks its SHA-256 against the release's checksums.txt, and caches it. Later runs start at once and work offline. Builds exist for Linux, macOS and Windows, on x64 and arm64.

VariableUse
UNDERSTAND_MCP_BINARYPath of a local understand-mcp binary. Skips the download, for offline machines
UNDERSTAND_MCP_CACHEFolder for the downloaded binary. Default: the user cache folder

Without npm, install the binary with Go: go install github.com/hpdkhoa/gen-system/generator/cmd/understand-mcp@latest.

License

Apache-2.0.

來源:npm/gen-understand/README.md,提交 a327160

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Oct 12, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分