Connect an agent
Let Claude Code, Cursor or another MCP client look at your apps and deploy them. The agent works through Passive's hosted MCP server, signed in as you, with only the permissions it needs. For how Passive behaves once an agent is connected, see Using Passive from an agent.
Connect with the hosted server
Nothing to install. In Claude Code:
claude mcp add --transport http passive https://mcp.passivedev.com/mcp
Other clients take the same URL, https://mcp.passivedev.com/mcp, as a remote (streamable
HTTP) MCP server.
The first time the agent uses it, your client opens a browser at Passive. Sign in if you are not already, check the name of the app asking and the address it will be sent back to, tick the permissions you allow, and choose Allow. There is no key to create or paste.
What you approve:
- Permissions. The connection can carry only what the tools use:
apps:read,apps:write,db:read,db:write,jobs:readandworkers:read, whatever the client asks for, and only those you tick. The permissions that reveal secrets are never granted this way. - Lifetime. The client gets a token that lasts an hour and renews itself. A connection ends after 30 days unused, and after 90 days at most; then you sign in again.
- Where to see it. The connection appears on the API keys page (account menu → API keys), marked signed in. Disconnect there ends it at once.
The details of the sign-in, for a client author, are in OAuth for MCP clients.
Read-only
To let an agent look but not change anything, use this URL instead:
claude mcp add --transport http passive https://mcp.passivedev.com/mcp/read-only
It offers only the read tools and search_docs. The tools that change things do not exist
there, and signing in to it grants read permissions only.
With an API key instead
If your client cannot open a browser to sign in, give it an API key:
claude mcp add --transport http passive https://mcp.passivedev.com/mcp \
--header "Authorization: Bearer pvk_..."
The server then does whatever that key allows and no more. Choose the Read only or Deploy and manage preset when you create it.
What the agent can do
| Kind | Tools |
|---|---|
| Look | check_connection, list_apps, get_app, get_app_deployments, get_app_events, get_app_logs, get_app_metrics, list_app_domains, list_databases, get_database, get_database_schema, list_jobs, get_job, list_workers, search_docs |
| Change | deploy_from_git, deploy_image, redeploy_app, deploy_latest, change_branch, rollback_app, create_database, attach_database, add_domain, verify_domain |
| Remove | delete_app, delete_database, detach_database, remove_domain |
- Removing tools refuse unless the agent repeats the exact name of what it is removing. Your client may also ask you before running them.
- Publishing a repository for the first time is the same:
deploy_from_gitasks for the repository's full name to be confirmed before it deploys a repository no app in your workspace deploys yet, because deploying puts its code at a public URL. - Retries are safe. Every change is sent with an idempotency key, so a retried call returns the first call's result instead of running twice.
What the agent cannot do
These are not settings. The server is built so that it cannot:
- Use a permission that reveals a secret. No tool calls a route that needs
apps:secretsordb:credentials, and a test fails if one is added. - Read or set an environment variable. There is no tool for it. Set them in the dashboard; the agent sees their names only.
- Run SQL. There is no SQL tool. Use the SQL console in the dashboard.
- Get a database's connection string. Creating a database through the agent does not
return it. The agent attaches the database to an app, and Passive sets
DATABASE_URLitself. - Manage API keys, members or billing. Those need you, signed in to the dashboard.
Values that look like credentials are also removed from what the server returns, log lines included. A secret with no recognisable shape, such as a bare password your app prints to its own logs, can still reach whoever reads those logs, an agent included.
From source
If you have Passive's source, the same server also runs locally over stdio, with an API key:
pip install -r passive_mcp/requirements.txt
claude mcp add passive --env PASSIVE_API_KEY=pvk_... -- python -m passive_mcp
Run both from the repository's root. PASSIVE_COORDINATOR_URL defaults to
https://api.passivedev.com. Set PASSIVE_MCP_READ_ONLY=1 to offer only the read tools. The
MCP server reference lists every tool and the permission it needs.