# MCP for agents

> The AI MCP server and its tools: what an agent can read, try and propose, and what waits for a person.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://ai.docs.sypnia.com/tools/mcp/

For agents: MCP at https://mcp.ai.sypnia.com (self-hosted <gateway>/mcp): OAuth (PKCE, DCR) or PAT; project tokens limit to one project. Tools: list_models(task?), list_tasks, get_routes, usage(group_by, since), search_calls(case?, status?, since?), get_call(id) (no bodies unless the token's person is owner/admin and store is on), try_prompt(task, input, case?) charged within the project MCP try budget (ai.mcp.try_credits_per_day in sypnia.toml), draft_routes(toml) → proposal with diff (stored as draft), estimate(task, input_tokens, output_tokens). Not tools: apply routes, change limits, create keys, provider keys — a person does those (403 person_required for agent tokens on the API). Every call audited.

```bash
claude mcp add --transport http sypnia-ai https://mcp.ai.sypnia.com
```

`https://mcp.ai.sypnia.com` serves every project you can reach; a self-hosted gateway serves the same at `<gateway>/mcp`. An agent signs in with your Sypnia account (OAuth with PKCE and dynamic client registration) or a personal access token; with a project token it works only on that project.

| Tool                       | Does                                                                                                             | Needs a person |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------- | -------------- |
| `list_models`              | the catalog, optionally for one task                                                                             | no             |
| `list_tasks`, `get_routes` | the project's tasks and routes                                                                                   | no             |
| `usage`                    | usage grouped by case, task, key, person or model                                                                | no             |
| `search_calls`, `get_call` | recent calls, their attempts, timings and errors                                                                 | no             |
| `estimate`                 | what a call of a given size would cost                                                                           | no             |
| `try_prompt`               | one call of a task, charged within the project's daily try budget, `ai.mcp.try_credits_per_day` in `sypnia.toml` | no             |
| `draft_routes`             | a proposed `[ai]` table of `sypnia.toml` with its diff, saved as a draft                                         | applying it    |

Applying routes, changing limits, creating keys and adding provider keys are not tools: a person does them in the console, in App or with the CLI. Agent tokens get `403 person_required` if they try through the API.

An agent can answer «why is the allergen answer slow today?» on its own: it reads the calls of `ask-about-a-product`, sees that the first model timed out and the fallback answered, and drafts a route change for you to apply. Every tool call is recorded.
