Soma MCP Server
Soma MCP Server
Дайте вашему ИИ-агенту то единственное, что он не может сделать сам: реально запускать код на тестах и доказывать, что он прошёл.
Soma — это сервис кода с проверкой исполнением. Этот MCP-сервер предоставляет два инструмента:
soma_verify_code— запускает предлагаемый код на тестах в изолированной песочнице; возвращает вердикт PASS/FAIL и подписанный сертификат, проверяемый офлайн (Ed25519). Используйте его, чтобы независимо подтвердить работоспособность кода, прежде чем доверять ему.soma_generate_verified_code— попросите Soma написать код для задачи; если задача проверяема, возвращённый код уже был выполнен на производных тестах, и к нему приложен сертификат.
Для проверки поддерживается более 15 языков (Python, JavaScript/TypeScript, Go, C/C++, Java, Rust, Ruby, PHP, Bash и другие).
Install
Требуется 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
Configuration
Переменная окружения | Обязательная | По умолчанию | Назначение |
| да | — | Ваш ключ Soma API. |
| нет |
| Базовый URL API Soma. |
| нет |
| Таймаут на запрос. |
Получите бесплатный предварительный ключ: свяжитесь с centrum.arvind@gmail.com (бесплатный тариф на время предварительного доступа).
Tools
soma_verify_code
Запускает код на тестах и возвращает подписанный вердикт.
language(string) — например,python,javascript,go,rust.code(string) — полный исходный код для проверки.tests(array) — один из вариантов:function mode (по умолчанию):
[{ "input": [arg1, arg2], "expected": value }]плюсentrypoint(имя функции).stdio mode: установите
mode: "stdio"и[{ "stdin": "...", "expected_stdout": "..." }];entrypointне требуется.
entrypoint(string, необязательный) — имя функции для function mode.mode("function"|"stdio", необязательный).
Возвращает: verdict, tests_passed, tests_total и signature / public_key / sig_alg, которые можно проверить офлайн.
soma_generate_verified_code
Получите код для задачи, выполненный на производных тестах до его возврата.
prompt(string) — задача по написанию кода. Включите конкретные примеры ввода/вывода (например,>>> f(2) == 4), чтобы результат был проверяемым, а не «как получится».max_tokens(int, необязательный, по умолчанию 1500).
Возвращает: код, certified (bool) и certificate (verdict, tests_passed, tests_total), если проверка пройдена. Если задача не проверяема, результат возвращается без сертификации и с явной пометкой — никогда не выдаётся ложный статус «verified».
What the certificate means
Сертификат подтверждает, что указанные тесты прошли в изолированной песочнице на момент генерации. Он подписан (Ed25519) и может быть проверен офлайн с помощью возвращённого открытого ключа. Он не является гарантией пригодности для каких-либо целей — проверяйте результат перед использованием в производстве.
Privacy
Без обучения на ваших запросах. См. Политику конфиденциальности и обработки данных Soma по адресу ${SOMA_BASE_URL}/privacy.
License
MIT.
Available Tools
2 toolssoma_generate_verified_codeGenerate execution-verified codeARead-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)ARead-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
Scored across 2 tools
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.
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.
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.
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
Related MCP Connectors
Hosted Python sandbox for package runtime verification: pip install and usable-import evidence.
Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.
Execution platform for AI agents on Firecracker microVMs in the EU. Interactive Linux sandboxes with root, templates for Python, Node.js, Go, Rust and a headless browser, public HTTPS URLs. Background jobs that outlive the connection, batches of up to 1,000 jobs with dependencies, hard cost caps reserved up front, execution receipts with SHA-256, log digests that fit the context. IPv4, dual-stack or IPv6-only with its own public address, allowlists or no network. WASI runtime for small tasks. Idle sandboxes sleep and keep their files. Also REST API, Python SDK and LangChain.
Signed sandbox verdicts on any artifact, plus an agent marketplace. No key, no signup, no payment.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityDmaintenanceProvides isolated sandbox environments for AI agents to execute code securely, generating signed receipts for every execution to ensure auditability and trust.14 npm6MIT
- AlicenseAqualityDmaintenanceProvides 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.5MIT
- AlicenseAqualityDmaintenanceProvides 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.417 PyPIApache 2.0