Soma

io.github.medianemi-beep由 GitHub 帳號 medianemi-beep 發布v0.1.0更新於 Nov 3, 2026

Execution-verified code generation and verification with signed, offline-checkable certificates.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

Soma 在沙箱中執行候選程式碼並跑測試,回傳 PASS/FAIL 結論與可離線驗證的簽章憑證,也能產生經驗證的程式碼。

可以做什麼
  • 在隔離沙箱中執行程式碼與測試,回傳結論與通過數量
  • 取得含公鑰與簽章演算法的 Ed25519 簽章憑證,可離線驗證
  • 針對任務產生程式碼,並在回傳前以推導出的測試實際執行
  • 支援 Python、JavaScript/TypeScript、Go、C/C++、Java、Rust、Ruby、PHP、Bash 等 15 種以上語言
  • 可選用函式模式(輸入/期望值加進入點函式)或 stdio 模式(標準輸入與期望輸出)
適用情境
當助理撰寫程式碼、而你需要獨立證據證明它確實通過測試時使用;也適合需要產生程式碼並已用推導測試執行過的場合。最適合帶有具體輸入輸出範例、可自動驗證的任務。
執行需求
透過 npm 套件 soma-verify-mcp 以 stdio 在本機執行,需要 Node.js 18+。需在 SOMA_API_KEY 提供 Soma API 金鑰(內建限速的公開示範金鑰,也可聯絡提供者取得免費預覽金鑰)。可選 SOMA_BASE_URL 與 SOMA_TIMEOUT_MS,並需能連線到託管的 Soma 端點。
安裝前請注意
程式碼、測試與提示詞會傳送到所設定的遠端 Soma 服務,請勿送出專有或敏感原始碼。README 將 SOMA_API_KEY 標為必填,而清單稱其為選填並內建示範金鑰;憑證僅證明所列測試在產生時的沙箱中通過,並不保證適用性,上線前請自行審查輸出。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Soma MCP Server

Give your AI agent the one thing it can't do for itself: actually run code against tests and prove it passed.

Soma is an execution-verified code service. This MCP server exposes two tools:

  • soma_verify_code — run candidate code against tests inside an isolated sandbox; get a PASS/FAIL verdict plus a signed, offline-checkable certificate (Ed25519). Use it to independently confirm code works before trusting it.
  • soma_generate_verified_code — ask Soma to write code for a task; when the task is verifiable, the returned code has already been executed against derived tests, with a certificate attached.

15+ languages are supported for verification (Python, JavaScript/TypeScript, Go, C/C++, Java, Rust, Ruby, PHP, Bash, and more).

Install

Requires Node.js 18+. Runs over stdio.

Add to your MCP client config (Claude Desktop, Cursor, etc.):

json
{  "mcpServers": {    "soma": {      "command": "npx",      "args": ["-y", "soma-verify-mcp"],      "env": {        "SOMA_API_KEY": "YOUR_SOMA_KEY"      }    }  }}
  • Claude Desktop: Settings → Developer → Edit Config, add the block above, restart.
  • Cursor: Settings → MCP → Add, or drop the same block in ~/.cursor/mcp.json.

Configuration

Env varRequiredDefaultPurpose
SOMA_API_KEYyes—Your Soma API key.
SOMA_BASE_URLnohttps://170-9-236-56.sslip.ioSoma API base URL.
SOMA_TIMEOUT_MSno300000Per-request timeout.

Get a free preview key: contact [email protected] (free tier during the preview).

Tools

soma_verify_code

Run code against tests and return a signed verdict.

  • language (string) — e.g. python, javascript, go, rust.
  • code (string) — the complete source to verify.
  • tests (array) — one of:
    • function mode (default): [{ "input": [arg1, arg2], "expected": value }] plus entrypoint (the function name).
    • stdio mode: set mode: "stdio" and [{ "stdin": "...", "expected_stdout": "..." }]; no entrypoint.
  • entrypoint (string, optional) — function name for function mode.
  • mode ("function" | "stdio", optional).

Returns: verdict, tests_passed, tests_total, and a signature / public_key / sig_alg you can check offline.

soma_generate_verified_code

Get code for a task, executed against derived tests before it's returned.

  • prompt (string) — the coding task. Include concrete input/output examples (e.g. >>> f(2) == 4) so the result is verifiable rather than best-effort.
  • max_tokens (int, optional, default 1500).

Returns: the code, certified (bool), and a certificate (verdict, tests_passed, tests_total) when verification passed. If a task isn't verifiable, output is returned uncertified and clearly labeled — never a false "verified".

What the certificate means

A certificate attests that the listed tests passed inside an isolated sandbox at generation time. It is signed (Ed25519) and checkable offline against the returned public key. It is not a warranty of fitness for any purpose — review output before production use.

Privacy

No training on your prompts. See the Soma Privacy & Data Policy at ${SOMA_BASE_URL}/privacy.

License

MIT.

來源:README.md,提交 bc14927

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。