SynaptraDocs

    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:

    Terminal
    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:

    .mcp.json
    {
      "mcpServers": {
        "synaptra": {
          "type": "http",
          "url": "https://synaptra.my/api/mcp",
          "headers": { "Authorization": "Bearer ${SYNAPTRA_TOKEN}" }
        }
      }
    }

    With OAuth (no token).

    Terminal
    claude mcp add --transport http synaptra https://synaptra.my/api/mcp
    1. In Claude Code, run /mcp, choose synaptra and Authenticate.
    2. Your browser opens Synaptra. Sign in with your email code.
    3. Pick the workspace, and Allow.
    #

    Claude.ai (custom connector)

    1. Settings → Connectors → Add custom connector.
    2. Name it Synaptra, with the URL https://synaptra.my/api/mcp. Leave the OAuth fields empty: Claude registers itself.
    3. Connect, sign in with your email code, pick the workspace, and Allow.
    #

    Cursor

    In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

    mcp.json
    {
      "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:

    config.toml
    [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

    1. get_harness: what the harness is, where it stands, the next step.
    2. propose_experiment: a hypothesis and per-tier predictions, before spending anything.
    3. check_gate: may this variant run on this tier now, and what will it cost?
    4. Run it on your infrastructure.
    5. record_runs: the rows, in one call, into the experiment, with an idempotency_key so a retry isn't counted twice.
    6. 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.

    ToolWhat it does
    list_harnessesEvery harness in the workspace: status, tools, current version, highest tier reached, open experiments and spend.
    get_harnessOne harness: base, versions, tools, readiness and the next step. detail=true adds the full spec.
    create_harnessA new harness from the Synaptra base harness, pointed at your metric and bar (templates harness, llm_agent, pipeline, ladder).
    set_harness_statusPark a harness or make it active again. Nothing else changes.
    register_toolRegister an action tool (with its input schema) or an evaluation hook: scorer, dataset or runner. The same name again replaces it.
    remove_toolSoft-remove a tool by its id; earlier versions still show it.
    harness_versionsThe versions, oldest first, each with the experiment and variant it came from, its score and the note.
    export_harnessThe current spec as portable JSON: yours to take anywhere.
    propose_experimentOpen an experiment before spending: title, variant, hypothesis (required), predictions per tier, an optional spending cap.
    check_gateMay this variant run at this tier now, what will it cost, and does it already pass? Costs nothing.
    record_runsRecord result rows (up to 5,000 a call) into an experiment, with an idempotency_key.
    close_experimentAdopt, iterate, reject or kill, with a note. Adopting makes a new harness version.
    list_experimentsA harness's experiments, newest first, with predictions, actuals and decisions; or one in full.
    list_runsRecent run rows, filtered by tier, variant, status or experiment.
    compare_variantsThe paired comparison of two variants on one tier: mean difference with an interval, wins and losses.
    recommendWhat to do next, best first, each with why, cost, expected gain and its chance of paying off.
    hit_rateHow good Synaptra's advice has been, for a harness or the whole workspace.
    lessonsWhat the harnesses have learned; preview exactly what sharing would include, or turn sharing off or on.
    liveLive runs your code logs with the SDK's track: list them, follow one, or ask one to stop (with a reason).
    usageThe workspace's usage against its quotas and the per-minute request limit.
    #

    A first prompt

    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.