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.

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

概覽

AI 產生的概覽

讓助理撰寫、型別檢查、執行並格式化 Mort 這門靜態型別系統語言,並可查閱語言規格與標準函式庫。

可以做什麼
  • 對 Mort 原始碼文字或檔案做型別檢查,回傳 file:line:col 形式的診斷
  • 編譯並執行程式,支援 stdin、參數與逾時,並回報輸出與結束碼
  • 檢視產生的 C 程式碼,包括 freestanding 核心模式輸出
  • 使用官方格式化工具排版程式碼
  • 列出標準函式庫模組,或檢視某模組的完整簽章、結構欄位與文件註解
  • 檢索語言規格與參考文件,並列出或讀取範例程式
適用情境
適合需要助理撰寫或除錯 Mort 程式碼的情況——這門語言很可能不在模型訓練資料中,助理容易誤寫成類似 Rust 的語法。也適合查詢編譯器與語言版本或標準函式庫簽章。
執行需求
以 PyPI 套件 mort-mcp 透過 stdio 在本機執行。需要 Mort 編譯器:可用 MORT_HOME 環境變數指向 Mort 儲存庫的檢出目錄,或在 PATH 上有 mortc。ziglang 套件為執行程式提供免安裝的 C 後端;文件與範例工具需要檢出目錄。
安裝前請注意
mort_run 會在本機編譯並執行任意 Mort 程式碼,只應執行可信的程式碼。選用的 MORT_HOME 檢出目錄會被讀取以提供文件與範例。未宣告任何身分驗證或 API 金鑰。

安裝

在 SourceWeft 中

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

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.

> mort_checkFAILED:error: <source>:4:1: argument 1 of 'strings.starts_with' expects []const u8, got *u8        if strings.starts_with("mortos", "mort") {
> mort_std strings// First byte offset of `needle` in `text`, or None if it does not occur.pub fn index_of(text: []const u8, needle: []const u8) -> Option<u64>;...
> mort_run[exit 0]1

Install

You need the Mort compiler. The simplest setup is a checkout, which also brings the docs and examples:

bash
git clone https://github.com/0xmortuex/Mortpip install mort-mcp ziglang     # ziglang = zero-install C backend for mort_runclaude mcp add mort --env MORT_HOME=/path/to/Mort -- mort-mcp

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

ToolWhat it does
mort_checkType-check source text or files without building. Fast, and needs no C compiler. Returns diagnostics as file:line:col with the source line.
mort_runCompile and run, with stdin, args and a timeout. Reports output and exit code.
mort_emit_cShow the generated C. freestanding=True shows the kernel-mode output.
mort_formatFormat with the official formatter (mortc fmt).
mort_stdList std modules, or show one module's public API: exact signatures, struct fields and doc comments.
mort_docsSearch the language specification and reference docs, e.g. "resource struct cleanup" or "integer overflow".
mort_examplesList or read the compiler's example programs.
mort_versionCompiler and language version, and where the compiler was found.

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

bash
pip install ".[test]" "ruff==0.16.0" "mypy==2.3.0" ziglangruff check src tests && mypy --strict srcMORT_HOME=/path/to/Mort pytest 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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Oct 11, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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