> ## Documentation index
> Fetch the complete documentation index at: https://docs.heurastudios.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an agent

> Make an agent key, then add Heura Studios to Claude Code or any MCP client, or call it over plain HTTP.

Source: https://docs.heurastudios.com/agents/connect/

*Available on Pro and Studio plans.*

**Step 1. Make an agent key**

In the Studio, open **Settings**, then **Account**, then **Agent mode**. Name the key after the agent that will use it (like `claude-code-laptop`) and create it. Copy the key now: it's shown once, and Heura Studios keeps only its hash.

**Step 2. Add Heura Studios to your agent**

**Claude Code**

```bash
claude mcp add --transport http heura-studios https://app.heurastudios.com/mcp \
  --header "Authorization: Bearer hs_agent_..."
```

**Other MCP clients**

```json
{
  "mcpServers": {
    "heura-studios": {
      "url": "https://app.heurastudios.com/mcp",
      "headers": { "Authorization": "Bearer hs_agent_..." }
    }
  }
}
```

**Plain HTTP**

```bash
curl https://app.heurastudios.com/agent/heura_read \
  -H "Authorization: Bearer hs_agent_..." \
  -H "Content-Type: application/json" \
  -d '{"what": "models"}'
```

**Step 3. Give it a task**

Ask in plain language. The agent reads the Studio's instructions when it connects and starts from your list of models:

```text title="Prompt"
List my Heura Studios models and tell me which one has the lowest held-out accuracy.
```

```text title="Prompt"
Add these 30 examples to Quarry, write 8 held-out tests from our real questions, train it, and tell me what the run fixed and broke.
```

## Compatibility

The MCP door speaks Streamable HTTP, stateless JSON-RPC, with protocol versions `2025-11-25`, `2025-06-18` and `2025-03-26`. It works with:

- Claude Code
- The Claude API's MCP connector
- OpenAI's Responses API and Agents SDK
- Cursor
- Gemini CLI
- any other MCP client

Agents without MCP use the same tools over [plain HTTP](https://docs.heurastudios.com/agents/http/).

> **Tip:**
>
> Keep the key in an environment variable (`HEURA_AGENT_KEY`) rather than in a config file you might commit, and make one key per agent and machine so you can revoke one without the others.
