# MCP for agents

> The Run MCP server: how an agent signs in, the tools it gets and the ones that need your approval.

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

For agents: Run MCP server at https://mcp.run.sypnia.com: OAuth with DCR + PKCE (MCP authorization) or PAT with the Sypnia account; tools list_apps, get_app, list_deploys, get_deploy, deploy (approval for production), promote/rollback (approval for production), get_logs, list_env/set_env (secrets never returned; approval on production), add_domain, trigger_job, replay_dlq (approval); pending actions confirmed in console or run approve <id>; calls audited; engine serves /mcp with its API keys.

`https://mcp.run.sypnia.com` is one MCP server for all your apps. An agent signs in with your Sypnia account through OAuth (the MCP authorization flow, with dynamic client registration and PKCE) or a personal access token, and works on the projects your organizations give it.

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

## Tools

| Tool                         | Does                                                           | Needs approval          |
| ---------------------------- | -------------------------------------------------------------- | ----------------------- |
| `list_apps`, `get_app`       | apps of a project, with their environments and current deploys | no                      |
| `list_deploys`, `get_deploy` | deploys and their status, use-case diff and build logs         | no                      |
| `deploy`                     | build and deploy a Git ref to an environment                   | to production           |
| `promote`, `rollback`        | release a deploy                                               | always for production   |
| `get_logs`                   | logs with filters                                              | no                      |
| `list_env`, `set_env`        | variables; secret values are never returned                    | `set_env` on production |
| `add_domain`                 | attach a domain                                                | yes                     |
| `trigger_job`, `replay_dlq`  | operations                                                     | yes                     |

A tool marked «needs approval» returns a pending action that you confirm in the console or with `run approve <id>`; the agent sees the result after you do. Every call is recorded with the agent's client name.

## Self-hosted **\[Engine]**

The engine serves the same tools at `/mcp` on its own address, authorized with its API keys.
