# Connecting agents to MCP servers

Give agents governed access to Salesforce Marketing Cloud Engagement tools over MCP, each call decided and recorded. Other MCP servers are setup only today.

Outbound, not inbound

This page covers your agents calling tools on an MCP server someone else runs. For MCP clients reading your workspace, see the [MCP server](https://centerofagentic.com/docs/mcp). Neither opens the other.

A connection is a workspace record of one external system. A workspace admin creates and authorizes it; it is then bound to agents. During a run, the model is offered tools from the agent's bound connections, and each tool call is decided by policy before anything is sent.

## What you can connect today

| Connection | Protocol | State |
| --- | --- | --- |
| Salesforce Marketing Cloud Engagement | MCP over Streamable HTTP | Available to bound agents, subject to policy. |
| Any other MCP server (a generic connection) | MCP over Streamable HTTP, with OAuth | Setup only. Agents cannot call its tools. |
| Jira (Atlassian Cloud) | REST, not MCP | Available to bound agents, subject to policy. Set up under **Settings → Integrations** like Marketing Cloud Engagement and governed in the same way. |

Generic MCP servers

Agents cannot use a generic MCP connection today: its tools are not offered to the model, and any call to it is denied whatever the agent binding or tool policy says. Setup is by endpoint only; the web workspace has no screen for it.

## Connect a Marketing Cloud Engagement server

A workspace admin does this once per business unit. Each business unit needs its own Salesforce managed package for the Marketing Cloud Engagement MCP server: a public app, without a client secret, whose redirect URI is the platform's OAuth callback (path `/api/integrations/mce/callback`). Ask Center of Agentic for the full address through the [contact page](https://centerofagentic.com/contact) before you create the package.

- Open **Settings**, go to **Integrations**, and select **Add connection** on the **Marketing Cloud Engagement** card.

- Enter a name, the region (US or EU), the tenant ID and client ID of the package, and optionally a business unit label. Select **Add connection** to save.

- On the new connection, select **Connect** and approve access at Salesforce; you are returned to Settings.

- Select **Test** to see how many tools the server offers.

## How authorization works

- **Marketing Cloud Engagement** uses the OAuth authorization code flow with PKCE, directly against Marketing Cloud, with the client ID of your installed package, without a client secret or dynamic registration.

- **Generic connections** use the server's own OAuth metadata: the platform reads it, registers as a public client through dynamic client registration, then runs the same PKCE flow for only the scopes the admin listed. A server without that metadata or a registration endpoint is refused with `unsupported_auth_profile`.

- An authorization attempt is single-use and expires after ten minutes.

## What is stored

- The OAuth access token and, if issued, the refresh token, encrypted at rest with AES-256-GCM and decrypted only on the server to make a call. A refresh token lets access renew automatically.

- No API response returns a token; a connection shows only `hasToken`. Deleting a connection removes its stored tokens but does not revoke the approval at the provider.

## Test a connection and list its tools

A test lists the server's tools with the stored token and saves the outcome; it never calls a tool and needs a signed-in workspace admin. An API key can list the tools of a Marketing Cloud Engagement or Jira connection, with their classification:

```bash
# List connections and note the id of the one you want
curl -sS https://centerofagentic.com/api/integrations/mce \
  -H "Authorization: Bearer $COA_API_KEY"

# List that connection's tools and their read or write classification
curl -sS "https://centerofagentic.com/api/tenant/tool-policy?connectionId=7b0e6c1d-4a2f-4c3b-9d8e-2f1a0b9c8d7e" \
  -H "Authorization: Bearer $COA_API_KEY"
```

The second response lists each tool's `name`, its name-based `heuristic` classification, any admin `override` and the `effective` classification. If the connection cannot be reached, `tools` is empty and `toolsError` says why.

## Bind a connection to an agent

In the agent builder, open the **Runtime** step and select connections under **Connected data sources**. API keys cannot edit agents; they can read an agent's `connections`, a list of connection ids (see [Agents](https://centerofagentic.com/docs/api/agents)). An activated agent runs from its active version, so a new binding applies only after a workspace admin activates a version that includes it. When bound connections expose many tools, a run offers the model only the most relevant ones.

Activation also records the state of each bound connection, including its name, status, scopes and tool list, but not its tokens. While a bound connection differs from that record, for example after it was renamed, moved to `error`, or a test returned a different tool list, every run of that version is refused with `409 active_connection_changed`. The refusal comes after the launch ticket is used, so request a new ticket for the next attempt. Runs resume when the connection matches the record again, or after a workspace admin reviews and activates a fresh version.

## How tool calls are governed

- Each tool call is decided on its own before dispatch, against the running agent's authority, data classes, runtime mode and bound connections and the workspace tool policy. A decision record is written first; if that fails, the call is refused.

- A tool is a read only if its name starts with a recognized read verb, such as `get`, `list` or `search`, or an admin classified it as one. Every other tool is a write, which needs write authority and can require approval.

- A synchronous or streaming run cannot wait for approval: such a call is refused with `APPROVAL_REQUIRED`, the run continues, and the response lists the tools in `approvalRequired`. A background job holds the call for a reviewer; see [Run an agent](https://centerofagentic.com/docs/guides/run-an-agent).

- A refused call is never sent; the model receives the reason as the tool result. An agent in `local_only` runtime mode never reaches a cloud connection.

## Tool policy

An admin edits the workspace tool policy on the **Tool policy** card under **Settings → Integrations**. It cannot grant a call: lists, constraints and obligations only refuse or add conditions, and a `classification` only settles whether a tool counts as a read or a write.

- Per tool, keyed `provider:tool`: a `classification` (`read` or `write`), argument `constraints`, and `obligations`: `log`, `approval`, `redact:` plus a data class, and `spend`, which is recorded but not enforced.

- Per connection: `allow` and `deny` lists of tool names. Deny wins; with an allow list, only listed tools run.

- While the stored policy is invalid, every governed tool call is refused.

```json
{
  "tools": {
    "mce:send_example_campaign": {
      "classification": "write",
      "obligations": ["approval", "log"]
    }
  },
  "connections": {
    "7b0e6c1d-4a2f-4c3b-9d8e-2f1a0b9c8d7e": {
      "deny": ["delete_example_asset"]
    }
  }
}
```

## What the run receipt records

A run that used connections stores `connectionsUsed` (the names of the bound connections it reached) and a `toolLog` with one entry per tool call; see [Receipts](https://centerofagentic.com/docs/api/receipts).

| toolLog field | Meaning |
| --- | --- |
| `tool`, `connection` | The tool's name on the server and the connection's name. |
| `ok`, `detail` | Whether the call was sent and succeeded, and up to 400 characters of the response or refusal. |
| `decisionId`, `outcome`, `reasonCode` | The decision record, its outcome (`authorized`, `pending` or `denied`) and the reason. |
| `placement` | `cloud_connector` for a read, `cloud_connector_write` for a write. |

Connection changes, tests, runs with connections and tool policy changes also write audit entries; see [Export evidence for review](https://centerofagentic.com/docs/guides/audit-evidence).

## REST endpoints

Managing connections needs a workspace admin's browser session. An API key gets `403`: `insufficient_scope`, or `admin_session_required` when its scope would otherwise be enough. The [integrations reference](https://centerofagentic.com/docs/api/integrations) lists what a key can call.

| Endpoint | Purpose | Access |
| --- | --- | --- |
| `GET /api/integrations/mce` | List Marketing Cloud Engagement connections. | Any member, or API key with `read`. |
| `POST /api/integrations/mce` | Create a connection. | Admin session. |
| `PATCH /api/integrations/mce/{id}` | Edit a connection. | Admin session. |
| `DELETE /api/integrations/mce/{id}` | Delete a connection. | Admin session. |
| `POST /api/integrations/mce/{id}/authorize` | Start authorization. Returns `authorizeUrl`. | Admin session. |
| `POST /api/integrations/mce/{id}/test` | Test the connection. | Admin session. |
| `/api/integrations/mcp`, with the same operations | Generic connections (`name`, a public HTTPS `endpointUrl`, `scopes`, `intendedPolicy`, optional `resourceUrl`). Setup only. | Admin session, reads included. |
| `GET /api/tenant/tool-policy` | Read the policy and a connection's tools. | Any member, or API key with `read`. |
| `PUT /api/tenant/tool-policy` | Replace the policy. | Admin session. |

## Next steps

- [**Run an agent** Background jobs, which can hold a tool call for approval.](https://centerofagentic.com/docs/guides/run-an-agent)

- [**Integrations and connections** The connection operations an API key can call.](https://centerofagentic.com/docs/api/integrations)

- [**Export evidence for review** Read tool logs and audit entries.](https://centerofagentic.com/docs/guides/audit-evidence)

Source: https://centerofagentic.com/docs/mcp/connections

## Related pages

- [MCP server](https://centerofagentic.com/docs/mcp)
- [contact page](https://centerofagentic.com/contact)
- [Agents](https://centerofagentic.com/docs/api/agents)
- [Run an agent](https://centerofagentic.com/docs/guides/run-an-agent)
- [Receipts](https://centerofagentic.com/docs/api/receipts)
- [Export evidence for review](https://centerofagentic.com/docs/guides/audit-evidence)
- [integrations reference](https://centerofagentic.com/docs/api/integrations)
- [Run an agent Background jobs, which can hold a tool call for approval.](https://centerofagentic.com/docs/guides/run-an-agent)
- [Integrations and connections The connection operations an API key can call.](https://centerofagentic.com/docs/api/integrations)
- [Export evidence for review Read tool logs and audit entries.](https://centerofagentic.com/docs/guides/audit-evidence)
