
Alive2
io.github.phongndo由 GitHub 帳號 phongndo 發布v0.1.2更新於 Nov 3, 2026
Prove or refute LLVM IR transformations with Alive2, and read or create alive2.llvm.org links
概覽
Alive2 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Alive2,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
alive2-mcp
An MCP server and CLI for checking LLVM IR transformations with
Alive2. It lets an agent prove or refute that an
optimization is correct, check a patched opt against trunk, and read or create the
alive2.llvm.org/ce/z/... links used in LLVM issues and PRs.
It talks to the public instance at alive2.llvm.org by
default, and to a local alive-tv when you have one. It's a single static Go binary
with no runtime dependencies.
Tools
Verdicts are correct, incorrect, unknown (timeout or approximation) and error.
Inputs take IR as text (src, tgt) or as paths (src_file, tgt_file), so agents
don't have to paste large modules. Results are returned as structured content.
Install
It's also listed in the MCP Registry as
io.github.phongndo/alive2-mcp. Release archives carry build provenance; verify one
with gh attestation verify <archive> --repo phongndo/alive2-mcp.
Use
Claude Code
or in a project's .mcp.json:
Codex
Without installing
The image runs the server over stdio. It can't see your files or your opt, so pass
IR as text and use opt: "upstream":
Flags
CLI
The same binary works from a shell. Exit status is 0 for correct, 1 for anything else
and 2 for errors, so it fits scripts and git bisect run.
How it works
The Alive2 website is a Compiler Explorer
instance running alive-tv as a compiler, so this uses Compiler Explorer's API:
/api/compiler/alive/compile, /shortener and /api/shortlinkinfo/<id>.
The website only compares functions named @src and @tgt. For two modules, each
function they share is merged into one module, renamed, and checked concurrently. The
target's attribute groups and metadata are renumbered so they can't collide with the
source's. A local alive-tv gets both files and pairs functions itself.
Dropped connections, DNS timeouts and gateway errors are retried twice with a short backoff. Other HTTP errors are reported at once.
Limits
Alive2 is bounded and intraprocedural. Loops are unrolled a few times and calls to
other functions are opaque, so correct is strong evidence rather than a proof.
Anything sent to the website is sent to a public server, and create_link stores it
permanently.
Development
CI runs nix flake check on Linux (x86-64 and ARM) and macOS. A weekly job checks the
live alive2.llvm.org API, since a change there is what would break this tool.
To release, set VERSION and push a matching vX.Y.Z tag on main. The Release workflow builds the archives and
images with GoReleaser, attests them, publishes the release with its Homebrew formula
(which phongndo/homebrew-tap picks up), and
lists the version in the MCP Registry. CI runs the same build as a dry run on every push.
License
MIT; see LICENSE.
來源:README.md,提交 dc118ef
工具
0版本歷史
2- v0.1.2最新Nov 3, 2026
- v0.1.0Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分