Skip to main content
Every agent has paddock’s built-in MCP server, paddock, with one tool, send. An agent calls it to post a message somewhere outside its session: a Slack thread, an email address, your own endpoint. The message goes through a connector’s outbound side, whose deliver function holds the destination’s credential, so the sandbox never sees it.
The tool answers as soon as the message is committed to the outbox; delivery happens after, retried as often as it takes, always with the same message ID. A refused send is a tool error whose text starts with its code, so the agent can correct the call in the same turn:

Set up the outbound side

Create a connector with an outbound side, set its deliver function, here the slack preset, and the secrets it reads:
The outbound presets are slack (a channel ID, or channel/thread_ts for a thread, as the address), webhook (a signed POST to the param url, with the address in the body), and email-ses (an email address). Write your own with the deliver contract.

Keys and the allow list

A key is the connector’s name, :, and an address, such as slack-acme:C0123ABCD/1763600000.123456. paddock splits it at the first : and never reads the address; the deliver function decides what it means. Keys are compared byte for byte. An agent may send to its session’s reply key and to the keys its allow list permits. A template lists them as patterns in spec.outbox.allow, where * matches any run of characters, : and / included:
An agent may replace its template’s list with its own, at most 50 patterns:
agent.outbox.delete() restores the template’s list. Without a list, an agent sends only to its sessions’ reply keys. Each send is checked against the list as it is then; a message already queued is delivered even if the list changes.

Reply routing

A session has at most one reply key: where its conversation takes place. send without a key goes there, and the reply key needs no pattern, since only your code sets it, never the agent.
  • An inbound route’s replyKey becomes the session’s reply key when the route is delivered; the newest delivered route wins. The slack preset sets the thread of each mention, so the agent answers in the thread it was asked in.
  • agent.sessions.create takes a replyKey for a session your code starts:
A deliver function answers the externalId of what it posted. An inbound route with replyTo set to that ID reaches the session that posted it, so a reply to the agent’s message lands in the conversation that wrote it, even when the agent started the thread on its own. With matchOnly, a route without such a session is recorded unmatched instead of starting a new one: the slack preset routes thread replies this way, so the agent hears replies only in threads it wrote in.

The outbox

Every accepted send is an outbox message, with an obx_... ID:
outbox.list filters by connectorId, sessionId, key, and status, newest first. outbox.retry queues a failed message again with the same ID and its place in its key’s order. What the outbox promises:
  • Durable. A message is committed before the tool answers, and every attempt uses its ID, which a deliver function gives its destination as an idempotency key.
  • Order. Messages of one key are delivered in the order they were sent; a later one never overtakes an earlier one.
  • Retries. Up to 6 attempts, 10 seconds, 40 seconds, 160 seconds, about 11 minutes, and about 43 minutes apart, or later when the destination’s retryAfter asks.
  • Pace. A connector delivers at most rateLimit.perMinute messages a minute, and a retryAfter holds all of its keys until it ends, without using an attempt.
  • Credentials. A permanent error with code auth sets the connector’s outbound.credentialError, which the console shows; the next delivered message, after you rotate the secret, clears it.

Events

Each step is an event in the session’s log, which events.list, the stream, and the client SDK’s events show; none starts a turn:

Attachments

The daemon uploads each file the agent names to object storage before the message is committed, and each attempt gives the deliver function a download link valid one hour in msg.attachments. Files are kept 30 days, so a message retried after that is delivered without them.