
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 分