Omega Mcp

io.github.aien-dev由 GitHub 账号 aien-dev 发布v0.1.0更新于 Oct 29, 2026

Compile and run Omega (.om) programs in a sandbox, and look up Omega errors and keywords.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

让助手在沙箱中编译并运行 Omega(.om)程序,并查询 Omega 的错误、陷阱与关键字。

可以做什么
  • 编译 Omega 源码,返回二进制大小与哈希,或带行号、错误码、含义与修复建议的结构化编译错误
  • 运行 Omega 程序,可传入标准输入与超时,返回截断的输出以及正常退出、陷阱或触发资源限制的结果
  • 解释 Omega 错误码、编译器错误行、陷阱与退出状态,给出含义、原因、修复方法和最小示例
  • 查询 Omega 关键字与主题,或搜索最多 20 条匹配条目
适用场景
适合助手需要编写、检查或调试 Omega 代码,或回答关于 Omega 语言、编译器诊断与运行时陷阱的问题时使用,无需离开对话。
运行要求
以本地进程方式在用户机器上运行(仅桌面端,stdio 传输)。需从固定提交的 omega-mv 源码检出并用种子编译器构建;服务器拒绝其他编译器,并在启动时再次校验其哈希。主机需具备 bubblewrap 与 prlimit,且可执行文件旁需有参考数据文件。未声明任何账号、密钥或环境变量。
安装前请注意
run 工具会执行任意 Omega 代码,隔离至关重要:依赖 bubblewrap 实现无网络、无主机文件、空环境,并施加 CPU、内存、文件大小与墙钟限制。README 说明隔离证据仅覆盖 Linux arm64 及所测的 bubblewrap 与 util-linux 版本。存在一个关闭隔离的仅测试用参数,绝不应交给代理使用。编译诊断会作为成功结果返回,而非错误。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Omega Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

omega-mcp

[Omega MCP on mcprush]

An MCP server, written in Omega, that lets an agent compile and run Omega (.om) programs with the pinned seeded compiler and look up the language. It speaks MCP (protocol version 2025-06-18) as newline-delimited JSON-RPC 2.0 over stdio.

Pin: omega-mv e5b32567a7aff3ce594e3254a622a846a6cd190b, omc sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. build.sh refuses any other compiler, and the server checks the sha256 of its compiler again at start-up.

Tools

ToolArgumentsResult
compilesourceok, binary size and sha256, or the compile error {line, code, meaning, fix}
runsource, stdin, timeout_ms (1..30000, default 5000)compile result, capped stdout/stderr, and the exit: normal, trap (with its meaning), or the limit that stopped it (cpu_time, file_size, wall_clock, killed)
explain_errorquery: an error code 1..30, an omc: line N: error K line, trap T, or an exit status 101..114meaning, cause, fix, a minimal example and citations into omega-mv@e5b32567
lookupquery: a keyword or topic, or a substringthe entry (form, arity, types, result, example, citations), or up to 20 search hits

A compile diagnostic is a successful tool result (isError: false); isError is true when nothing could be run (sandbox failure, a refused compile stage) or when explain/lookup found no entry. Bad arguments are JSON-RPC errors (-32602).

Isolation

Each compile and run stage gets a fresh /tmp/omega-mcp-<16 hex> directory (mode 0700, removed after the reply) and runs under bwrap --unshare-all --clearenv. The sandbox sees only the compiler or the program (read-only), its in-sandbox reaper and a 16 MiB tmpfs working directory: no network, no host files, an empty environment. prlimit applies the resource limits to the sandbox before it starts, and the server kills the whole sandbox at the wall clock.

StageCPUAddress spaceFile sizeProcessesWall clock
run10 s256 MiB1 MiB5timeout_ms (default 5 s, max 30 s)
compile20 s512 MiB16 MiB420 s

Both stages also get 64 open files and no core dumps. --test-only-no-isolation turns all of this off and exists only so the trust gate can prove it detects an escape; never give it to an agent.

Build and use

sh
OMEGA_SRC=/path/to/omega-mv ./build.sh      # omega-mv checkout at e5b32567 with seed/out/omc builtbuild/omega-mcp                              # reads JSON-RPC on stdin; logs one line per request on stderr

The server loads data/reference.json and data/examples/ from beside its executable. Start-up exit codes: 2 bad arguments, 3 compiler not the pin, 4 data missing, 5 bwrap/prlimit missing. mcp.json is an example client configuration; point its command at your build/omega-mcp.

Gates

sh
python3 gates/smoke.py      # MCP client session; transcript in evidence/smoke-transcript.jsonlpython3 gates/trust.py      # trust boundary: 4 attacks plus negative controls; evidence/trust-gate.jsonpython3 tools/check-reference.py --omega-src $OMEGA_SRC --omc $OMEGA_SRC/seed/out/omc --self-test

trust.py sends, through the run tool, a read of a canary under ~/.local/state, a fork bomb, an infinite loop and a 10 GiB write, and requires each to be refused or killed with no process left behind. A second server started with --test-only-no-isolation runs bounded versions of the same attacks and must see them succeed, so a gate that cannot see an escape fails. check-reference.py re-derives every keyword, error and trap entry from the pinned source, compiles and runs every example with the pinned omc, and runs three negative controls.

These gates are host evidence on Linux arm64 (bubblewrap 0.9.0, util-linux 2.39.3); they say nothing about other kernels or about a sandbox configuration other than the one in src/sandbox.om.

Layout

  • src/*.om: the server (src/UNITS lists the concatenation order; build.sh builds it)
  • vendor/omega-mv/: sha256 and JSON units copied unchanged from omega-mv@e5b32567
  • data/: reference data and example programs, written by tools/gen-reference.py and checked by tools/check-reference.py
  • gates/, evidence/: verification oracles and their recorded results
  • DEPENDENCIES.md: every host tool in the build, runtime and verification paths

License: Apache-2.0 (see LICENSE and NOTICE).

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions. This describes the development method, not a change to runtime autonomy or historical evidence.

For the documented method and a systems-software case study, see Gregory M. Kurtzer (2026), Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering, technical report, v1, Zenodo, https://doi.org/10.5281/zenodo.23682548.

来源:README.md,提交 784e47b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分