CodePanel
list_connections

list_connections

The CodePanel MCP tool that lists the MCP servers agent app runs may call, with each approved tool's pinned hash and read-only mark.

On this page›

list_connections reads the account's MCP connections: the servers an agent app run may call, and the tools of each that the account approved. It needs the read scope.

When to call it

  • Before granting a run a tool, to see what is approved and pinned.
  • When a run reports a tool as changed, to see what was approved before reviewing the new definition with codepanel connections add.
  • To undo add_connection or remove_connection: the values here are what either takes.

Inputs

Input Type Required Description
detail boolean no Add each tool's pinned hash, stdio args and timestamps; compact without it
limit integer, at most 50 no Items per page, default 20
cursor string no nextCursor from the previous page

It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.

What it returns

{ connections }, each with id, name, transport (http or stdio), url or command and args, environment (dev, staging or production), agentIds (null grants it to every coding agent's runs) and tools, the allow-list: each tool's name, hash (its definition when it was approved) and readOnly.

A run is offered a tool only while the server's definition still hashes to the pin, and on a production connection only when it is marked readOnly. A run reads its tools as mcp__<connection>__<tool>.

The same step without MCP

Surface Form
HTTP API GET /autopilot/connections with the read scope
CLI codepanel connections

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to see which MCP servers and tools agent app runs may call, or to find a name for remove_connection. The account's connections, by name. Compact by default: id, name, transport (http|stdio), url or command, environment (dev|staging|production), agentIds (null: granted to every coding agent's runs), addedIn (dashboard|token: the runner starts a stdio connection only when dashboard), and tools: the allow-list, each with name and readOnly. detail: true adds each tool's hash (its pinned definition), the stdio args and timestamps. A run is offered only these tools, only while the server's definition still matches the hash, and on production only the read-only ones. Paged: limit (default 20, at most 50) and cursor (nextCursor from the page before); total counts every connection.

Last updated