Skip to main content
Glama

Soma MCP Server

Gib deinem KI-Agenten das Eine, das er nicht selbst tun kann: Code tatsächlich gegen Tests auszuführen und zu beweisen, dass er bestanden hat.

Soma ist ein Code-Dienst mit Ausführungsverifizierung. Dieser MCP-Server stellt zwei Werkzeuge bereit:

  • soma_verify_code — führe Kandidatencode gegen Tests in einer isolierten Sandbox aus; erhalte ein PASS/FAIL-Urteil plus ein signiertes, offline prüfbares Zertifikat (Ed25519). Nutze es, um unabhängig zu bestätigen, dass der Code funktioniert, bevor du ihm vertraust.

  • soma_generate_verified_code — bitte Soma, Code für eine Aufgabe zu schreiben; wenn die Aufgabe verifizierbar ist, wurde der zurückgegebene Code bereits gegen abgeleitete Tests ausgeführt und mit einem Zertifikat versehen.

15+ Sprachen werden für die Verifizierung unterstützt (Python, JavaScript/TypeScript, Go, C/C++, Java, Rust, Ruby, PHP, Bash und weitere).

Installation

Erfordert Node.js 18+. Läuft über stdio.

Füge es zu deiner MCP-Client-Konfiguration hinzu (Claude Desktop, Cursor usw.):

{
  "mcpServers": {
    "soma": {
      "command": "npx",
      "args": ["-y", "soma-verify-mcp"],
      "env": {
        "SOMA_API_KEY": "YOUR_SOMA_KEY"
      }
    }
  }
}
  • Claude Desktop: Settings → Developer → Edit Config, füge den obigen Block hinzu und starte neu.

  • Cursor: Settings → MCP → Add, oder füge denselben Block in ~/.cursor/mcp.json ein.

Related MCP server: OmniBridge MCP Server

Konfiguration

Umgebungsvariable

Erforderlich

Standard

Zweck

SOMA_API_KEY

ja

—

Dein Soma-API-Schlüssel.

SOMA_BASE_URL

nein

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

Basis-URL der Soma-API.

SOMA_TIMEOUT_MS

nein

300000

Timeout pro Anfrage.

Erhalte einen kostenlosen Vorschau-Schlüssel: Kontaktiere centrum.arvind@gmail.com (kostenloses Kontingent während der Vorschau).

Werkzeuge

soma_verify_code

Führe Code gegen Tests aus und gib ein signiertes Urteil zurück.

  • language (string) — z. B. python, javascript, go, rust.

  • code (string) — der vollständige Quellcode, der verifiziert werden soll.

  • tests (array) — eines von:

    • Funktionsmodus (Standard): [{ "input": [arg1, arg2], "expected": value }] plus entrypoint (der Funktionsname).

    • Stdio-Modus: setze mode: "stdio" und [{ "stdin": "...", "expected_stdout": "..." }]; kein entrypoint.

  • entrypoint (string, optional) — Funktionsname für den Funktionsmodus.

  • mode ("function" | "stdio", optional).

Gibt zurück: verdict, tests_passed, tests_total sowie eine signature / public_key / sig_alg, die du offline prüfen kannst.

soma_generate_verified_code

Erhalte Code für eine Aufgabe, der vor der Rückgabe gegen abgeleitete Tests ausgeführt wurde.

  • prompt (string) — die Programmieraufgabe. Füge konkrete Eingabe-/Ausgabebeispiele hinzu (z. B. >>> f(2) == 4), damit das Ergebnis verifizierbar ist und nicht nur nach bestem Bemühen.

  • max_tokens (int, optional, Standard 1500).

Gibt zurück: den Code, certified (bool) und ein certificate (verdict, tests_passed, tests_total), wenn die Verifizierung bestanden wurde. Wenn eine Aufgabe nicht verifizierbar ist, wird die Ausgabe ohne Zertifizierung und klar gekennzeichnet zurückgegeben — niemals ein falsches „verified“.

Was das Zertifikat bedeutet

Ein Zertifikat bestätigt, dass die aufgeführten Tests zum Zeitpunkt der Erstellung in einer isolierten Sandbox bestanden wurden. Es ist signiert (Ed25519) und offline anhand des zurückgegebenen öffentlichen Schlüssels prüfbar. Es ist keine Garantie für die Eignung für irgendeinen Zweck — überprüfe die Ausgabe vor dem Produktionseinsatz.

Datenschutz

Kein Training mit deinen Prompts. Siehe die Soma-Datenschutz- und Datenrichtlinie unter ${SOMA_BASE_URL}/privacy.

Lizenz

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