Reference
MCP server
Let Claude Code, Codex, Cursor or a Claude.ai connector drive your harnesses: create one, register its tools, propose experiments, check gates, record the runs you did on your own infrastructure, and close with a decision.
What it is
- Server URL:
https://synaptra.my/api/mcp(Streamable HTTP). - It acts in one workspace: the one your API token was made for, or the one you pick when you connect with OAuth.
- Tool calls count toward the same per-minute limit and quotas as the HTTP API.
- It never runs your code or pays for anything: your agent runs the variants on your infrastructure and records the results.
You can connect with an API token (Connect → API tokens in the app), or with OAuth: the client opens Synaptra in your browser, you sign in with your email code, pick the workspace and allow it. No token to copy.
Claude Code
With an API token. Make a token in the app (Connect → API tokens), then:
claude mcp add --transport http synaptra https://synaptra.my/api/mcp \
--header "Authorization: Bearer $SYNAPTRA_TOKEN"Or, for everyone working in a repository, in its .mcp.json:
{
"mcpServers": {
"synaptra": {
"type": "http",
"url": "https://synaptra.my/api/mcp",
"headers": { "Authorization": "Bearer ${SYNAPTRA_TOKEN}" }
}
}
}With OAuth (no token).
claude mcp add --transport http synaptra https://synaptra.my/api/mcp- In Claude Code, run
/mcp, choose synaptra and Authenticate. - Your browser opens Synaptra. Sign in with your email code.
- Pick the workspace, and Allow.
Claude.ai (custom connector)
- Settings → Connectors → Add custom connector.
- Name it Synaptra, with the URL
https://synaptra.my/api/mcp. Leave the OAuth fields empty: Claude registers itself. - Connect, sign in with your email code, pick the workspace, and Allow.
Cursor
In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"synaptra": {
"url": "https://synaptra.my/api/mcp",
"headers": { "Authorization": "Bearer syn_your_token" }
}
}
}Leave out headers to connect with OAuth: Cursor shows "Needs login" and opens the consent page.
Codex
In ~/.codex/config.toml, with the token in SYNAPTRA_TOKEN:
[mcp_servers.synaptra]
url = "https://synaptra.my/api/mcp"
bearer_token_env_var = "SYNAPTRA_TOKEN"Other clients
Any MCP client that speaks Streamable HTTP can connect: send the token as Authorization: Bearer …. Without one, the server answers 401 with a WWW-Authenticate header pointing at its OAuth metadata, and a client that supports MCP sign-in takes it from there (dynamic client registration, the authorization code flow with PKCE).
The loop
get_harness: what the harness is, where it stands, the next step.propose_experiment: a hypothesis and per-tier predictions, before spending anything.check_gate: may this variant run on this tier now, and what will it cost?- Run it on your infrastructure.
record_runs: the rows, in one call, into the experiment, with anidempotency_keyso a retry isn't counted twice.close_experiment: a decision and a note saying why (the note is required).
Adopting needs the variant to pass its gate, including the held-out test set, even when it only ran the cheaper tiers. If it doesn't, the close is refused with the reasons. The agent can adopt anyway only with a written override reason, which is logged and shown on the version.
Errors come back as tool errors with {code, detail}: QUOTA (a workspace quota is full; limit and used say which), GATE (a gate refused, with the reasons), NOT_FOUND, BAD_REQUEST (fix the arguments), CONFLICT, and RATE_LIMITED (wait retry_after seconds).
Tools
Twenty tools. Lists and reads cost nothing and change nothing.
| Tool | What it does |
|---|---|
list_harnesses | Every harness in the workspace: status, tools, current version, highest tier reached, open experiments and spend. |
get_harness | One harness: base, versions, tools, readiness and the next step. detail=true adds the full spec. |
create_harness | A new harness from the Synaptra base harness, pointed at your metric and bar (templates harness, llm_agent, pipeline, ladder). |
set_harness_status | Park a harness or make it active again. Nothing else changes. |
register_tool | Register an action tool (with its input schema) or an evaluation hook: scorer, dataset or runner. The same name again replaces it. |
remove_tool | Soft-remove a tool by its id; earlier versions still show it. |
harness_versions | The versions, oldest first, each with the experiment and variant it came from, its score and the note. |
export_harness | The current spec as portable JSON: yours to take anywhere. |
propose_experiment | Open an experiment before spending: title, variant, hypothesis (required), predictions per tier, an optional spending cap. |
check_gate | May this variant run at this tier now, what will it cost, and does it already pass? Costs nothing. |
record_runs | Record result rows (up to 5,000 a call) into an experiment, with an idempotency_key. |
close_experiment | Adopt, iterate, reject or kill, with a note. Adopting makes a new harness version. |
list_experiments | A harness's experiments, newest first, with predictions, actuals and decisions; or one in full. |
list_runs | Recent run rows, filtered by tier, variant, status or experiment. |
compare_variants | The paired comparison of two variants on one tier: mean difference with an interval, wins and losses. |
recommend | What to do next, best first, each with why, cost, expected gain and its chance of paying off. |
hit_rate | How good Synaptra's advice has been, for a harness or the whole workspace. |
lessons | What the harnesses have learned; preview exactly what sharing would include, or turn sharing off or on. |
live | Live runs your code logs with the SDK's track: list them, follow one, or ask one to stop (with a reason). |
usage | The workspace's usage against its quotas and the per-minute request limit. |
A first prompt
Use Synaptra. Read harness support-bot, then propose an experiment that
tests a shorter system prompt, with predictions for T0 and T1 before
running anything. Check the gate before each tier, run eval.py with the
variant, record the rows into the experiment, and tell me whether it
passed before closing.- Predictions per tier are written before anything runs.
- The gate is checked before each tier; an expensive tier only follows a pass.
- Paid runs need your OK, and run on your infrastructure.
Security
- An agent sees what a member sees, in that one workspace. It can't manage tokens, your account or other workspaces.
- OAuth access tokens last an hour and refresh on their own; refresh tokens last 30 days, and each works once.
- To stop a connection, disconnect the app in Connect → Connected apps, or revoke its API token in Connect → API tokens. It stops at once.
Something unclear or missing? Email support@synaptra.my.