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 分