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 分