
Mort Mcp
io.github.0xmortuex由 GitHub 帳號 0xmortuex 發布v0.1.0更新於 Oct 27, 2026
Write, type-check and run Mort code, with language spec and stdlib lookup.
概覽
讓助理撰寫、型別檢查、執行並格式化 Mort 這門靜態型別系統語言,並可查閱語言規格與標準函式庫。
- 可以做什麼
- 對 Mort 原始碼文字或檔案做型別檢查,回傳 file:line:col 形式的診斷
- 編譯並執行程式,支援 stdin、參數與逾時,並回報輸出與結束碼
- 檢視產生的 C 程式碼,包括 freestanding 核心模式輸出
- 使用官方格式化工具排版程式碼
- 列出標準函式庫模組,或檢視某模組的完整簽章、結構欄位與文件註解
- 檢索語言規格與參考文件,並列出或讀取範例程式
- 適用情境
- 適合需要助理撰寫或除錯 Mort 程式碼的情況——這門語言很可能不在模型訓練資料中,助理容易誤寫成類似 Rust 的語法。也適合查詢編譯器與語言版本或標準函式庫簽章。
- 執行需求
- 以 PyPI 套件 mort-mcp 透過 stdio 在本機執行。需要 Mort 編譯器:可用 MORT_HOME 環境變數指向 Mort 儲存庫的檢出目錄,或在 PATH 上有 mortc。ziglang 套件為執行程式提供免安裝的 C 後端;文件與範例工具需要檢出目錄。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mort Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mort-mcp
Let an AI agent write a language it has never seen.
Mort is a statically typed systems language that compiles to C. It's the language MORT OS is written in. No model has Mort in its training data, so an agent asked to write it will guess Rust-like syntax and get it wrong.
mort-mcp gives the agent what a human newcomer would use: a fast type checker with precise errors, a way to run programs, the language spec to search, and the exact signatures of the standard library.
Install
You need the Mort compiler. The simplest setup is a checkout, which also brings the docs and examples:
Without MORT_HOME, mort-mcp uses a mortc on your PATH
(pip install git+https://github.com/0xmortuex/Mort). Checking, running and std
lookup all work that way. mort_docs and mort_examples need the checkout.
Tools
Every tool calls mortc through its command-line interface, and reads std signatures
and docs from the installed compiler. Answers therefore match the version you're
running, even as the language changes.
Tests
Without MORT_HOME, only the unit tests and the MCP handshake test run. CI checks
out the latest Mort and also runs every night, so a change to the compiler's CLI or
docs layout shows up as a failing build.
License
MIT
來源:README.md,提交 4eb9965
工具
0版本歷史
1- v0.1.0最新Oct 11, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分