Skip to main content
Glama

Soma MCP Server

AIエージェントに、自分ではできない唯一のことを与えます。実際にコードをテストに対して実行し、合格したことを証明することです。

Somaは実行検証済みコードサービスです。このMCPサーバーは2つのツールを公開します:

  • soma_verify_code — 隔離されたサンドボックス内でテストに対して候補コードを実行し、PASS/FAILの判定と、署名付きでオフライン検証可能な証明書(Ed25519)を取得します。コードを信頼する前に、独立して動作を確認するために使用します。

  • soma_generate_verified_code — タスクのコード作成をSomaに依頼します。タスクが検証可能な場合、返されるコードは導出されたテストに対してすでに実行済みで、証明書が添付されています。

検証でサポートされている言語は15以上です(Python、JavaScript/TypeScript、Go、C/C++、Java、Rust、Ruby、PHP、Bashなど)。

インストール

Node.js 18+が必要です。stdioで動作します。

MCPクライアント設定(Claude Desktop、Cursorなど)に追加します:

{
  "mcpServers": {
    "soma": {
      "command": "npx",
      "args": ["-y", "soma-verify-mcp"],
      "env": {
        "SOMA_API_KEY": "YOUR_SOMA_KEY"
      }
    }
  }
}
  • Claude Desktop: Settings → Developer → Edit Config で上記のブロックを追加し、再起動します。

  • Cursor: Settings → MCP → Add で追加するか、同じブロックを ~/.cursor/mcp.json に配置します。

Related MCP server: OmniBridge MCP Server

設定

環境変数

必須

デフォルト

目的

SOMA_API_KEY

はい

—

あなたのSoma APIキー。

SOMA_BASE_URL

いいえ

https://170-9-236-56.sslip.io

Soma APIのベースURL。

SOMA_TIMEOUT_MS

いいえ

300000

リクエストごとのタイムアウト。

無料プレビューキーを入手するには: centrum.arvind@gmail.com までご連絡ください(プレビュー期間中は無料ティア)。

ツール

soma_verify_code

テストに対してコードを実行し、署名付きの判定を返します。

  • language (文字列) — 例: python、javascript、go、rust。

  • code (文字列) — 検証する完全なソースコード。

  • tests (配列) — 次のいずれか:

    • 関数モード(デフォルト): [{ "input": [arg1, arg2], "expected": value }] に加えて entrypoint(関数名)。

    • stdioモード: mode: "stdio" を設定し、[{ "stdin": "...", "expected_stdout": "..." }] を使用。entrypointは不要。

  • entrypoint (文字列、任意) — 関数モードでの関数名。

  • mode ("function" | "stdio"、任意)。

戻り値: verdict、tests_passed、tests_total、およびオフラインで確認できる signature / public_key / sig_alg。

soma_generate_verified_code

タスクのコードを取得します。返される前に導出されたテストに対して実行済みです。

  • prompt (文字列) — コーディングタスク。具体的な入出力例を含めてください(例: >>> f(2) == 4)。そうすることで、結果がベストエフォートではなく検証可能になります。

  • max_tokens (整数、任意、デフォルト1500)。

戻り値: コード、certified (ブール値)、および検証が成功した場合の certificate (verdict、tests_passed、tests_total)。タスクが検証可能でない場合、出力は未認証として明確にラベル付けされて返されます — 誤った「検証済み」は決して返されません。

証明書の意味

証明書は、記載されたテストが生成時に隔離されたサンドボックス内で合格したことを証明します。Ed25519で署名されており、返された公開鍵に対してオフラインで検証可能です。これはいかなる目的に対する適合性の保証ではありません — 本番環境で使用する前に出力をレビューしてください。

プライバシー

プロンプトの学習には使用されません。Somaのプライバシーおよびデータポリシーは ${SOMA_BASE_URL}/privacy をご覧ください。

ライセンス

MIT。

Available Tools

2 tools
soma_generate_verified_codeGenerate execution-verified codeA
Read-only

Ask Soma to write code for a task. When the task is verifiable, the returned code has been executed against derived tests in an isolated sandbox before it is returned, and a certificate (verdict + tests passed) is attached. Include concrete examples in the prompt (e.g. doctest-style '>>> f(2) == 4') to make the result verifiable rather than best-effort.

Inputs: prompt (required), max_tokens.

soma_verify_codeVerify code against tests (signed certificate)A
Read-onlyIdempotent

Run candidate code against tests inside an isolated sandbox and return a PASS/FAIL verdict with a signed, offline-checkable certificate (Ed25519). Use this to independently confirm that code actually works before trusting it.

Two test shapes:

  • function mode (default): tests = [{"input": [arg1, arg2], "expected": value}] and provide 'entrypoint' (the function name).

  • stdio mode: set mode='stdio' and tests = [{"stdin": "...", "expected_stdout": "..."}]; no entrypoint needed.

Supported languages include python, javascript, typescript, go, c, cpp, java, rust, ruby, php, bash and more.

Inputs: code (required), tests (required), language (required), mode, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one verifies provided code, the other generates code with verification. There is no overlap or confusion between them.

    Naming Consistency5/5

    Both tools follow the identical pattern of 'soma_' prefix plus a verb_noun structure: verify_code and generate_verified_code. Naming is uniform and predictable.

    Tool Count3/5

    With only 2 tools, the server is minimal but focused on a narrow purpose. While the count feels thin for a general toolkit, it is reasonable for a specialized verification service. It sits at the borderline.

    Completeness4/5

    The server covers the core workflows of code verification and generation with verification. Minor gaps exist, such as no ability to fetch or check certificate details after generation, but the primary lifecycle is covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables secure cloud-based execution of code across 14+ programming languages within a sandboxed environment. It supports file management, standard input/output handling, and automatic generation of visual artifacts like plots and charts.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides isolated sandbox environments for AI agents to execute code securely, generating signed receipts for every execution to ensure auditability and trust.
      14 npm
      6
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides an isolated workspace for testing candidate code, runs tests, and returns deterministic pass/fail verdicts. Enables automated grading of software engineering solutions by ensuring reproducible test runs.
      5
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides structured, sandboxed test and lint feedback for coding agents, returning compact typed verdicts with failure fingerprints instead of raw runner output. It enables impact-selected test execution in isolated containers, distinguishing pre-existing failures from regressions.
      4
      17 PyPI
      Apache 2.0