Skip to content

Agent-scoped credentials

An agent-scoped credential lets one registered AI agent use an approved upstream identity. The credential binding names that agent with an immutable agentSubject, limits where the credential can be used, and keeps the secret outside the MCP client.

Use this mode when the organization needs to answer:

  • Which agent used the upstream credential?
  • Which tools, servers, and environments could it access?
  • Can security revoke that agent without disrupting other agents?

Suppose five AI agents access Salesforce through one MCP server. If every agent uses the same service account, Salesforce sees one upstream identity. The gateway can still apply policy, but the shared credential creates a large revocation boundary and weakens agent-level accountability.

An agent-scoped binding narrows that boundary. The customer registers and approves an agent, then binds a credential reference to that agent. A different agent cannot resolve the binding.

These identities have separate jobs:

IdentityExampleWhat it tells the gateway
HumanAliceWho initiated or delegated the work, when present.
AgentContract Review AgentWhich approved AI agent is acting.
Client surfaceClaude Code, Cursor, or a custom MCP clientWhere the request entered. The client is not automatically the agent.
Upstream identitySalesforce integration identityWhat the upstream service receives.

The signed runtime identity can carry an agent ID, an optional agent instance ID, and an optional human delegator. The gateway keeps these identities distinct in policy and audit.

A customer workflow and MCP client send a request with signed agent identity to the gateway. The gateway verifies policy, resolves a credential from the secret manager, calls the upstream system, and records metadata-only audit. A direct client path to the secret manager is blocked.
The gateway is the credential boundary. The MCP client carries identity and intent, but never receives the upstream secret.
A customer workflow and MCP client send a request with signed agent identity to the gateway. The gateway verifies policy, resolves a credential from the secret manager, calls the upstream system, and records metadata-only audit. A direct client path to the secret manager is blocked.

The gateway is the credential boundary. The MCP client carries identity and intent, but never receives the upstream secret.

  1. Register the agent. Record its owner, purpose, allowed environments, client surfaces, credential mode, and any instance rules.
  2. Approve the agent. Security reviews the operating boundary before the agent becomes eligible for a binding.
  3. Create the credential binding. Select agent_scoped, choose the approved agent, reference the customer secret manager, and select the permitted MCP servers or API operations.
  4. Attach policy. Policy still decides whether this agent may discover and call each tool in the current context.
  5. Activate the binding. Activation produces an approved runtime projection. Data planes do not infer access from an unapproved control-plane draft.

See Create a credential binding for the UI, API, and CLI workflow.

The authorization server signs the runtime identity before the request reaches the data plane. A normal tool call does not require the MCP client to open an interactive login for every invocation.

During the call, the data plane:

  1. Verifies the token signature, issuer, audience, time bounds, and signed actor claims.
  2. Resolves the registered agent and optional agent instance.
  3. Evaluates policy for the agent, human delegator, client surface, environment, server, and tool.
  4. Matches the binding’s agentSubject exactly.
  5. Resolves the referenced upstream credential through the credential broker.
  6. Injects the credential into the approved upstream request.
  7. Returns the tool result and emits metadata-only audit.
Sequence showing an MCP client sending a signed agent request to the data plane. The data plane verifies identity and policy, resolves a credential from the secret manager, calls the upstream system, emits metadata-only audit, and returns the tool result.
Credential resolution happens inside the gateway. The client receives the tool result, not the upstream credential.
Sequence showing an MCP client sending a signed agent request to the data plane. The data plane verifies identity and policy, resolves a credential from the secret manager, calls the upstream system, emits metadata-only audit, and returns the tool result.

Credential resolution happens inside the gateway. The client receives the tool result, not the upstream credential.

Credential modeUpstream identity representsUse it when
service_accountA shared application or integrationAgent-level credential ownership is not required.
user_delegatedThe signed-in personThe upstream action must use the person’s delegated authority.
agent_scopedOne registered agentThe agent needs an independent credential and revocation boundary.
workload_mappedA registered runtime workloadInfrastructure identity, rather than a human or agent, owns access.

An agent can still act for a human. In that case, policy and audit retain both identities. The human delegation does not change ownership of an agent_scoped binding. A person signing in without a signed agent identity uses user_delegated instead.

ConditionResult
Agent is approved and matches agentSubjectContinue to policy and credential resolution.
Agent claim is missingDeny before credential resolution.
Agent is unknown, disabled, or revokedDeny before the upstream call.
Agent is approved for another environmentDeny the binding activation or runtime request.
Required agent instance is missing or not allowedDeny before credential resolution.
Policy denies the tool or surfaceHide the tool from discovery or deny the call.

The gateway fails closed when identity, registry state, policy, or credential resolution is uncertain.

Audit records safe metadata needed for investigation:

  • authenticated human or service principal;
  • agent ID and agent instance ID, when present;
  • human delegator, when present;
  • client surface and OAuth client ID;
  • credential mode and binding ID;
  • policy decision, reason code, server, tool, and upstream outcome.

Audit does not contain the secret, access token, private key, or raw credential material.

If an agent is compromised, security can disable or revoke that agent. If only one upstream credential is affected, security can disable or revoke the binding. After the change reaches the runtime projection, new calls fail before credential resolution while unrelated agents and bindings continue operating.

This gives security a smaller incident boundary than a service account shared by every agent.

A legal team registers contract_review_agent and binds it to a Salesforce credential stored in the customer’s Vault. Policy allows two tools:

  • salesforce_read_account
  • salesforce_create_case

The agent cannot use salesforce_delete_account. Another agent cannot reuse the credential binding. If security revokes contract_review_agent, its next governed call fails while other Salesforce agents continue using their own bindings.

Type set in Geist, Source Serif 4, and Departure Mono.