Skip to content
docs/guides
Get started

Connections and approvals

A connection is an MCP server or a REST API that a project’s agents may use. The controller holds the credentials and makes every downstream request. A tool policy says which of the service’s tools run on their own and which wait for you, and every call is kept with its exact arguments and result.

The usual way is to ask the session:

set up a connection to the orders API so you can rename order 17

The agent calls seed_connection with the endpoint and, for a REST API, the OpenAPI document, and the setup opens as a panel beside its session. On a narrow screen it is a drawer. The same draft is under Settings → Connections, on its own page, if you would rather finish it there.

An MCP server is an HTTP endpoint. A REST API is an OpenAPI 3 document, saved by the agent as a file in its working directory, or fetched from a URL that is public with no sign-in. Each operation in the document becomes a tool.

The agent cannot pass credentials in. It is told not to, and the tools refuse them. You enter them on the Credentials and test tab: a bearer token, an API key header, Basic authentication, or an OAuth sign-in. They are stored on the controller, encrypted at rest, and shared by every session in the project.

An agent asking about the connection afterwards learns that credentials are stored and which kind. It never sees the value.

Test connection sends the credentials to the service and lists its tools. For an MCP server that is the server’s own tool list. For a REST API it is one request to the endpoint plus the operations in the document. The result stays on the tab: whether the endpoint answered, whether the credentials were accepted, and how many tools there are.

The test has to pass before the connection can be activated, and a change to the endpoint, the document, the authentication or the project invalidates it.

The Policy tab opens on the tools that still need a classification. Each tool is a read, a write, or unclassified, and each of those has a default: allow, approve, or deny. A tool can also carry an override. The server’s own hints, such as a read-only flag on an MCP tool or the HTTP method of a REST operation, are suggestions; Use suggestions takes them all at once, and you can still change any of them.

Agents propose policies too. An agent that has looked at the tools calls propose_connection_policy with a file naming the defaults and tools to change. The proposal appears on the Policy tab as a review of what would change, with filtering and paging for a large catalog, and you apply it, dismiss it, or copy it into the editor and save your own version. An agent cannot apply its own proposal.

Tool policy has the full rules.

Activate connection makes it available to the project’s agents. From then on a tool whose policy is allow runs when called, one whose policy is deny is refused, and one whose policy is approve becomes an approval that waits for you.

A held call appears beside the agent’s session and in the Approvals list, with the tool, the connection, the agent’s justification, and the exact arguments it will send. Approve and execute runs those arguments, once. Deny runs nothing. An approval expires after 24 hours.

The agent waits while you decide. Its call holds for up to 20 seconds and returns the result if you approve inside that; otherwise it gets the call’s id back and is told when the call settles, so it does not have to poll.

The phone shows the same approvals. Tap one and you land on it, ready to decide.

Settings → Connections: the connections table, and under it the calls table with one line per call.

Settings → Connections lists every connection and, under them, the approvals and recent calls as a table: when, status, tool, connection, session and justification, with Approve and Deny on any row that is waiting. Click a row and the call opens over the list, at an address you can share, with its policy, a timeline of when it was requested, decided and finished, the exact arguments and the result.

Each connection has a page of its own with its tools and policy, editable in place, and the calls made through it. Both tables filter by text and by chips and page at 25, 50 or 100 rows.

One connection’s page: its endpoint, project, credential and last test, then every tool with its classification, override and effective policy.

An agent cannot edit an active connection. It calls propose_connection_update with the fields to change, a new document as a file, or policy changes, and the dashboard shows what would change: the fields, the tools added, removed and changed, and the policy. Applying it is one step. A change to the endpoint, the kind, the project or the OAuth settings disables the connection until it is tested and activated again; a change of name, document or policy keeps it active.

You can edit any of it yourself on the connection’s page or in its setup. Policy edits keep the connection active and cancel calls still waiting under the old policy.

  • Enter or read a credential.
  • Activate a connection, or apply a policy it proposed.
  • Approve a call, its own or another session’s.
  • Reach a service except through the controller, under the policy you set.
  • Use another project’s connections, unless it is a Supervisor, which may use any project’s in its bucket under the same policies.