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 分