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.
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. |
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 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:
# 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). 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,listorsearch, 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 inapprovalRequired. A background job holds the call for a reviewer; see Run an agent. - A refused call is never sent; the model receives the reason as the tool result. An agent in
local_onlyruntime 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: aclassification(readorwrite), argumentconstraints, andobligations:log,approval,redact:plus a data class, andspend, which is recorded but not enforced. - Per connection:
allowanddenylists 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.
{
"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.
| 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.
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 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
Something missing or unclear? Tell us and we will improve this page.