{"slug": "adaptorch-mcp-documentation", "title": "AdaptOrch MCP documentation", "summary": "AdaptOrch published MCP documentation for its hosted endpoint at https://adaptorch.com/mcp, which supports protocol version 2025-11-25 by default alongside 2024-11-05, 2025-03-26 and 2025-06-18. Developers authenticate with an AdaptOrch API key (sent as an Authorization Bearer token or X-API-Key header) and submit runs against AdaptOrch's hosted WorkBuddy deepseek-v4.1-flash model, with BYOK supported via X-Provider, X-Provider-Model and X-Provider-Key headers. The guide warns that a completed model run is not proof a repository check ran, since shared hosted command verification is disabled by default and code checks require a separately configured execution environment.", "body_md": "§ 01\n\n## What you get from the hosted connection\n\nSubmit runs, retrieve their status and inspect available artifacts through your existing MCP client. The tool list returned by the hosted service is the current capability reference.\n\nA completed model run is not proof that a repository check ran. Inspect execution records and available verification results; shared hosted command verification is disabled by default.\n\nThis MCP guide is available in English and Simplified Chinese. Korean is available on the home page and selected policy pages, not on this guide.\n\nProtocol version 2025-11-25 is the default; 2024-11-05, 2025-03-26, and 2025-06-18 are also supported.\n\n§ 02\n\n## Recommended: connect to the hosted service\n\nUse an HTTP-capable MCP client. Create an AdaptOrch account and key, then configure the endpoint. Do not clone the private core for this path.\n\n1 · Create a key\n\nCreate an account at [/app/signup](https://adaptorch.com/app/signup) and create an API key at [/app/api-keys](https://adaptorch.com/app/api-keys). Use this value as `ADAPTORCH_API_KEY` throughout the direct hosted instructions. Keep actual keys out of committed files.\n\n```\nexport ADAPTORCH_API_KEY=\"ado_...\"\n```\n\n2 · Confirm authentication without running a model\n\nThis read-only tools/list request checks the endpoint and the supplied credentials. It does not submit a run, validate every client configuration, or prove that a code check is available.\n\n```\n: \"${ADAPTORCH_API_KEY:?Set your AdaptOrch API key first}\"\ncurl --fail --silent --show-error https://adaptorch.com/mcp \\\n  -H \"Authorization: Bearer $ADAPTORCH_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Accept: application/json, text/event-stream\" \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'\n```\n\n                  A valid key returns a `result.tools` array\n                  including `adaptorch_run`. Without a key the same\n                  call returns\n                  `{\"code\":-32001,\"message\":\"Missing bearer token\"}`\n                  with HTTP 401 — that response is itself proof the endpoint is\n                  reachable.\n                \n\n**Endpoint:**\n`https://adaptorch.com/mcp` · JSON-RPC over POST.\n                `GET` returns 405 by design — there is no SSE stream\n                to subscribe to. The token may be sent as\n                `Authorization: Bearer` or `X-API-Key`.\n              \n\n## Runs use the hosted model\n\nAn AdaptOrch API key is all you need. Runs use AdaptOrch's hosted model (WorkBuddy deepseek-v4.1-flash), and model usage is included in your plan. To use your own provider account instead (BYOK), add X-Provider, X-Provider-Model and X-Provider-Key headers.\n\nHosted model execution is not a repository test pass. A code check requires a separately configured execution environment. Only count verification when a record shows that the relevant check actually ran.\n\n§ 03\n\n## 3 · Recommended client connection\n\nStart with the complete Claude Code HTTP example below. The other configuration blocks show client-specific authentication syntax; your AdaptOrch API key is the only credential.\n\nClaude Code — one command\n\n```\n: \"${ADAPTORCH_API_KEY:?Set your AdaptOrch API key}\"\nclaude mcp add --transport http adaptorch https://adaptorch.com/mcp \\\n  --header \"Authorization: Bearer ${ADAPTORCH_API_KEY}\"\n```\n\n                  Cursor — `~/.cursor/mcp.json`\n\n```\n{\n  \"mcpServers\": {\n    \"adaptorch\": {\n      \"url\": \"https://adaptorch.com/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer ${ADAPTORCH_API_KEY}\" }\n    }\n  }\n}\n```\n\n                  Codex CLI — `~/.codex/config.toml` (TOML, not JSON)\n                \n\n```\n[mcp_servers.adaptorch]\nurl = \"https://adaptorch.com/mcp\"\nbearer_token_env_var = \"ADAPTORCH_API_KEY\"\n```\n\n                  Gemini CLI — `~/.gemini/settings.json` (key is\n                  `httpUrl`)\n                \n\n```\n{\n  \"mcpServers\": {\n    \"adaptorch\": {\n      \"httpUrl\": \"https://adaptorch.com/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer ${ADAPTORCH_API_KEY}\" }\n    }\n  }\n}\n```\n\n                  VS Code — `.vscode/mcp.json` (top-level\n                  `servers`)\n                \n\n```\n{\n  \"servers\": {\n    \"adaptorch\": {\n      \"type\": \"http\",\n      \"url\": \"https://adaptorch.com/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer ${env:ADAPTORCH_API_KEY}\" }\n    }\n  }\n}\n```\n\n                  Windsurf —\n                  `~/.codeium/windsurf/mcp_config.json` (key is\n                  `serverUrl`)\n                \n\n```\n{\n  \"mcpServers\": {\n    \"adaptorch\": {\n      \"serverUrl\": \"https://adaptorch.com/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer ${ADAPTORCH_API_KEY}\" }\n    }\n  }\n}\n```\n\n**Authentication is not execution.** The direct HTTP instructions use `ADAPTORCH_API_KEY`. Local bridge examples use `ADAPTORCH_CONTROL_PLANE_TOKEN` for the same service credential. Do not confuse either with your model-provider key. Shell commands expand environment values and clients may persist the resulting headers. Keep that configuration private and never commit keys.\n\n## 4 · Submit one bounded run and inspect its record\n\nAsk the connected client to call adaptorch_run once with the single-task payload below. This step can consume your plan allowance and your provider budget. Do not repeatedly submit it while polling.\n\n```\n{\n  \"payload\": {\"subtasks\": [{\"id\": \"ping\", \"description\": \"Reply exactly PONG\", \"estimated_tokens\": 16}]},\n  \"synthesis_mode\": \"paper\",\n  \"budget_policy\": {\"global_timeout_budget_seconds\": 20}\n}\n```\n\nUse the returned run_id with adaptorch_get_run and adaptorch_get_artifacts, or open /app/runs. Confirm the requested model and output. Then check whether any verification command actually ran; SUCCEEDED alone does not establish that.\n\n401: check service authentication. 429: inspect quota/rate limits. Provider billing failures and unsupported verification environments are setup blockers, not successful activation.\n\n§ 04\n\n## Maintainers: local bridge and engine development\n\nThe local Python wrapper delegates to the AdaptOrch engine under proprietary licence terms. Downloading grants no broader licence; review the [terms](https://adaptorch.com/terms) and the licence included with your distribution. This maintainer path requires the engine to be available and is not the hosted customer quickstart.\n\nPublic adaptorch-mcp 0.6.1 installs from PyPI as a remote stdio client with no engine dependency: uvx --from adaptorch-mcp==0.6.1 adaptorch-mcp-client --transport stdio, with the key in ADAPTORCH_CONTROL_PLANE_TOKEN. Versions 0.3.0 to 0.5.2 depended on a private engine package and do not install. Clean Windows x64 setup has not been revalidated. Hosted HTTP above remains the simplest path. The commands below require an existing, licensed maintainer environment with the engine and wrapper already installed.\n\nThese environment assignments use a POSIX shell, not Windows PowerShell. The planned Windows x64 Desktop beta is not an available installer or a verified package setup.\n\n```\nexport ADAPTORCH_CONTROL_PLANE_TOKEN=\"$ADAPTORCH_API_KEY\"\nadaptorch-mcp --transport stdio --base-url https://adaptorch.com\n```\n\nFor the local bridge, set ADAPTORCH_CONTROL_PLANE_TOKEN from your AdaptOrch API key. Runs use the hosted model; ADAPTORCH_MCP_PROVIDER, ADAPTORCH_MCP_PROVIDER_MODEL and ADAPTORCH_MCP_PROVIDER_API_KEY are optional and configure your own provider credentials (BYOK) in that process. Do not send secrets as tool arguments.\n\nRunning a client locally is not self-hosting the control plane. A private runner is separately scoped at [repository-validation PoC](https://adaptorch.com/cek). General customers can use the hosted HTTP instructions above without a private core checkout.\n\n§ 05\n\n## Tool reference\n\nThe hosted tools/list response is authoritative for the available tools. Results and errors follow the returned schemas. A tool-list response is not a model run or a verification result.\n\nThis is an engine tool reference, not a promise that every tool is exposed by your hosted server. Use that server's tools/list response for its available tools, arguments and behavior hints. Cancellation requests do not establish that every child process has stopped.\n\n### `adaptorch_run`\n\nSubmit a task payload to AdaptOrch control-plane and optionally wait.\n\nWRITEnon-destructivenon-idempotentOPEN-WORLD\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `prompt` | string | conditional | — | \n| `context` | string | no | — | \n| `payload` | object | no | — | \n| `connector_name` | string | no | `\"mcp\"` | \n| `synthesis_mode` | string (enum) | no | `\"robust\"` | \n| `model` | string | no | — | \n| `trace` | boolean | no | `false` | \n| `budget_policy` | object | no | — | \n| `wait_for_terminal` | boolean | no | `true` | \n| `timeout_seconds` | number | no | `120.0` | \n| `poll_interval_seconds` | number | no | `1.0` | \n| `verification_commands` | string[] | no | — (gated) | \n| `prefer_ensemble_singleton` | boolean | no | `false` | \n| `output_extractor` | string (enum) | no | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_run\",\n    \"arguments\": { \"prompt\": \"${TASK_PROMPT}\", \"synthesis_mode\": \"robust\",\n                   \"wait_for_terminal\": true, \"timeout_seconds\": 120.0 } } }\n```\n\n### `adaptorch_get_run`\n\nGet run summary by run_id.\n\nREAD-ONLYnon-destructiveIDEMPOTENTOPEN-WORLD\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `run_id` | string | yes | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 2, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_get_run\", \"arguments\": { \"run_id\": \"${RUN_ID}\" } } }\n```\n\n### \n`adaptorch_get_artifacts`\n\nGet run artifacts by run_id.\n\nREAD-ONLYnon-destructiveIDEMPOTENTOPEN-WORLD\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `run_id` | string | yes | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 3, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_get_artifacts\", \"arguments\": { \"run_id\": \"${RUN_ID}\" } } }\n```\n\n### \n`adaptorch_list_runs`\n\nList recent AdaptOrch control-plane runs, newest first.\n\nREAD-ONLYnon-destructivenon-idempotentOPEN-WORLD\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `limit` | integer (1–100) | no | `20` | \n| `status` | string | no | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 4, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_list_runs\", \"arguments\": { \"limit\": 20, \"status\": \"SUCCEEDED\" } } }\n```\n\n### \n`adaptorch_get_traces`\n\nGet execution traces for a run by run_id.\n\nREAD-ONLYnon-destructiveIDEMPOTENTOPEN-WORLD\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `run_id` | string | yes | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 5, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_get_traces\", \"arguments\": { \"run_id\": \"${RUN_ID}\" } } }\n```\n\n### \n`adaptorch_cancel_run`\n\nRequest cancellation of an in-flight run by run_id.\n\nWRITEDESTRUCTIVEnon-idempotentOPEN-WORLD\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `run_id` | string | yes | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 6, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_cancel_run\", \"arguments\": { \"run_id\": \"${RUN_ID}\" } } }\n```\n\n### \n`adaptorch_route_topology`\n\nRecommend an execution topology for a task DAG using the local TopologyRouter (no control-plane call).\n\nREAD-ONLYnon-destructiveIDEMPOTENTclosed-world\n\n| Param | Type | Required | Default | \n|---|---|---|---|\n| `subtasks` | object[] | yes | — | \n| `dependencies` | object[] | no | — | \n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 7, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_route_topology\",\n    \"arguments\": { \"subtasks\": [ { \"id\": \"t1\" }, { \"id\": \"t2\" } ],\n                   \"dependencies\": [ { \"from\": \"t1\", \"to\": \"t2\" } ] } } }\n```\n\n### \n`adaptorch_server_metrics`\n\nReturn redacted MCP tool-call counters and latency percentiles.\n\nREAD-ONLYnon-destructivenon-idempotentclosed-world\n\nNo arguments.\n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 8, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_server_metrics\", \"arguments\": {} } }\n```\n\n### \n`adaptorch_capabilities`\n\nReturn supported synthesis modes, connectors, and server capabilities.\n\nREAD-ONLYnon-destructiveIDEMPOTENTclosed-world\n\nNo arguments.\n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 9, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_capabilities\", \"arguments\": {} } }\n```\n\n### `adaptorch_usage`\n\nRead the authenticated tenant's usage window, quota and remaining allowance. The server resolves the tenant from the configured API key.\n\nREAD-ONLYnon-destructiveIDEMPOTENTOPEN-WORLD\n\nNo arguments.\n\n### \n`adaptorch_plan_catalog`\n\nReturn the current AdaptOrch hosted cloud plan catalog: Pro $39, Team $149.\n\nREAD-ONLYnon-destructiveIDEMPOTENTOPEN-WORLD\n\nNo arguments.\n\n```\n{ \"jsonrpc\": \"2.0\", \"id\": 10, \"method\": \"tools/call\",\n  \"params\": { \"name\": \"adaptorch_plan_catalog\", \"arguments\": {} } }\n```\n\n§ 06\n\n## Authentication\n\nHosted MCP uses POST /mcp with an AdaptOrch bearer token or X-API-Key, not GET/SSE. The separate local adapter supports stdio or HTTP+SSE with its own bearer, origin, protocol and payload settings. The table below applies only to that local adapter, not the hosted endpoint.\n\n| Local adapter settings only |  |  | \n|---|---|---|\n| Environment variable | Default | Purpose | \n|---|---|---|\n| `ADAPTORCH_CONTROL_PLANE_TOKEN` | required | Control-plane bearer token (stdio + http) | \n| `ADAPTORCH_CONTROL_PLANE_BASE_URL` | `http://127.0.0.1:8000` | Control-plane base URL | \n| `ADAPTORCH_MCP_HTTP_AUTH_TOKEN` | falls back to control-plane token | Bearer expected on HTTP requests | \n| `ADAPTORCH_MCP_ALLOWED_ORIGINS` | localhost, 127.0.0.1, ::1 | Allowed Origin header values | \n| `ADAPTORCH_MCP_MAX_PAYLOAD_SIZE_BYTES` | `1048576` | Max HTTP request body (else 413) | \n| `ADAPTORCH_MCP_ALLOW_VERIFICATION_COMMANDS` | off | Gate for verification_commands | \n\n**Local HTTP adapter responses:** 401 for a missing\n                or invalid bearer token, 403 for a disallowed origin, 413 for an\n                oversized payload. The local adapter compares tokens with\n                `hmac.compare_digest`. Keep credentials out of logs\n                and committed configuration. Hosted authentication follows the\n                quickstart above.\n              \n\n§ 07\n\n## Workflows\n\nThree common flows cover most agent integrations.\n\n1 · Run and collect\n\nCall adaptorch_run with wait_for_terminal, then read the result with adaptorch_get_run, adaptorch_get_artifacts, and adaptorch_get_traces.\n\n```\n{ \"name\": \"adaptorch_run\",\n  \"arguments\": { \"prompt\": \"${TASK_PROMPT}\", \"wait_for_terminal\": true } }\n{ \"name\": \"adaptorch_get_artifacts\", \"arguments\": { \"run_id\": \"${RUN_ID}\" } }\n```\n\n2 · Pre-route a DAG\n\nadaptorch_route_topology computes a recommended topology locally — it does not call the control-plane.\n\n```\n{ \"name\": \"adaptorch_route_topology\",\n  \"arguments\": { \"subtasks\": [ { \"id\": \"t1\" }, { \"id\": \"t2\" } ],\n                 \"dependencies\": [ { \"from\": \"t1\", \"to\": \"t2\" } ] } }\n```\n\n3 · Operate\n\nList recent runs with adaptorch_list_runs and request cancellation with adaptorch_cancel_run. A cancellation response does not establish child-process termination; inspect subsequent run evidence. The adaptorch_run_prompt and adaptorch_get_run_prompt prompts wrap these calls for agents.\n\n§ 08\n\n## Troubleshooting\n\n- \n**Local launcher not found:** in an existing\n                    licensed environment, use`adaptorch-mcp` or`scripts/run_adaptorch_mcp.sh` . Hosted HTTP needs\n                    no local launcher.\n- \n**Token missing:** hosted HTTP uses the service\n                    key as a bearer or X-API-Key header. The local bridge uses`ADAPTORCH_CONTROL_PLANE_TOKEN` for a remote`--base-url` .\n- \n**Local stdio framing mismatch:** match`--stdio-framing` (`newline` default\n                    vs`content-length` ). This is not a hosted HTTP setting.\n- \n**HTTP 401 / 403:** check service authentication\n                    for hosted HTTP. For the local HTTP adapter, also check its Origin allowlist.\n- \n**HTTP 413:** reduce the request body to the\n                    server's documented size limit; do not bypass the limit.\n- \n**verification_commands rejected:** shared hosted\n                    command verification is disabled by default. For the local adapter,\n                    an operator must explicitly enable`ADAPTORCH_MCP_ALLOW_VERIFICATION_COMMANDS` with a\n                    truthy value and provide an authorized execution environment.\n                    Control-plane consumers must enforce an allowlist/sandbox.\n                    Setting a client variable or upgrading a plan does not enable hosted checks.\n- \n**Smoke test:** hosted discovery uses the authenticated`POST /mcp` tools/list example above, not SSE.`GET /mcp/health` and`GET /mcp/sse?once=true` are for the local adapter only,\n                    on its configured origin.\n\n§ 09", "url": "https://wpnews.pro/news/adaptorch-mcp-documentation", "canonical_source": "https://adaptorch.com/mcp-docs", "published_at": "2026-11-25 08:34:29+00:00", "updated_at": "2026-11-25 09:12:03.205550+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "large-language-models"], "entities": ["AdaptOrch", "WorkBuddy deepseek-v4.1-flash", "Claude Code", "Cursor", "Codex CLI", "Gemini CLI"], "also_reported_by": [], "takeaway": "AdaptOrch's hosted MCP endpoint accepts JSON-RPC over POST only (GET returns 405) and defaults to protocol version 2025-11-25, with a read-only tools/list call returning a result.tools array including adaptorch_run to confirm credentials before submitting any run.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/adaptorch-mcp-documentation", "markdown": "https://wpnews.pro/news/adaptorch-mcp-documentation.md", "text": "https://wpnews.pro/news/adaptorch-mcp-documentation.txt", "jsonld": "https://wpnews.pro/news/adaptorch-mcp-documentation.jsonld"}}