Skip to content

Early access Governed MCP calls open to beta partners in March 2027. The MCP tracker and scanner are free to use today.

Register an Agent

An Agent is the identity your client uses to call tools through Stackduke. Register one Agent per workload so each has its own key, policies and records.

Decide the Agent’s name, the team that owns it, and the workspace it belongs in. Use a name that describes the job, such as Billing Agent, rather than an implementation detail. You also need:

  • permission to register Agents in the target workspace
  • any MCP Connections you want to attach already created in that workspace
  • a secret manager ready for the one-time access key
  • a published Policy, or a named owner who will add one before governed traffic is trusted
  1. Open Agents and select Register Agent.

  2. Setup type. Choose how the Agent works, then select Continue:

    • MCP-only: the Agent uses MCP tools through Stackduke. Choose this for the MCP-first path.
    • Model-only: the Agent sends model requests through a Model Route.
    • Combined: both a Model Route and MCP Connections.

    Model-only and Combined need a model provider. Direct model routing supports OpenAI only.

  3. Client. Under Choose how your agent connects, choose how your agent reaches Stackduke, then select Continue. No SDK is required.

    • An MCP-only Agent connects as an MCP-compatible agent. It is the only option, already selected.
    • Model-only and Combined Agents can also choose Custom HTTP, which uses the Stackduke model gateway from any language or framework.

    Register Agent, step 2 Client for an MCP-only Agent: Choose how your agent connects, with MCP-compatible agent as the only option, selected.

  4. Configure. Enter the Agent Name, choose the Owner and Workspace, and optionally choose MCP Connections from the same workspace. You can assign Connections later.

    Register Agent, step 3 Configure: Agent Name, Owner, Workspace and an optional MCP Connections picker.

    For a Model-only or Combined Agent, also choose the Model Route (a dedicated route is recommended).

  5. Select Register Agent.

  6. In Agent created, copy the Stackduke MCP server URL and the Stackduke access key, store the key in your secret manager, and select Done.

    The Agent created dialog with an example Stackduke MCP server URL on mcp.stackduke.com and an example Stackduke access key, each with a copy button.

Expected result: the Agent appears in the workspace inventory with its owner and status. Its Overview shows the Agent identity and key fingerprint, while the full key remains only in your secret manager.

Configure your MCP-capable agent with the Agent’s Stackduke MCP server URL, and send the Stackduke access key as a bearer token:

URL: https://mcp.stackduke.com/v1/agents/{agent_id}/mcp
Header: Authorization: Bearer <stackduke_agent_token>

Copy the URL from the dashboard rather than building it by hand. The URL isn’t a secret; the access key is.

Each Agent has one endpoint and one credential, however many Connections it uses. Stackduke identifies the Agent from the key, resolves the call through the Agent’s assigned Connections, discovered tools and effective policy, and forwards allowed calls to the right upstream MCP server. Attaching another Connection later doesn’t change your client configuration.

If the client cannot connect, first confirm that it uses the URL copied from this Agent, sends the current access key as a bearer token, and that the Agent is Active. A Paused, Suspended or Disabled Agent is unavailable for a different reason; use the Agent status definitions before rotating a working credential.

  1. Open the Agent and select Connections.

  2. Select Attach connection, choose an MCP Connection from the same workspace, and select Attach MCP Connection.

The Agent’s Assigned connections table: an OpenAI model route marked Available and two MCP servers marked Held.

The Status column shows each Connection’s execution boundary. Held means the Connection holds changed tools and a change is waiting for review; see Review tool changes. Select Detach to remove a Connection from this Agent.

  1. Open the Agent and select Policies.

  2. Select Attach Policy, choose a published Policy, and select Attach Policy.

The Attach Policy dialog: apply a published policy directly to Billing Agent, with a Policy picker.

The Policies section shows every policy that applies and how it got there: Direct assignment policies you can detach; Organization required policies come from the organization and can’t be detached here.

The Agent’s Policies section: cards for Payments Policy, Data Handling, Model Access and Emergency Controls, each with its status and how it applies, and an Attach Policy card.

The Tools section lists every tool the Agent can reach, the Policies that apply to it, and its Effective decision:

  • Conditional: policy evaluates each call. Select the tool to open it on its Connection, where Test policy checks an exact action without running it.
  • Blocked: policy blocks the tool.
  • Unresolved: Stackduke can’t evaluate the tool yet, for example because the Connection is paused or the tool’s meaning needs review. The reason is shown underneath.

On the Agent’s Overview, Basic controls are designed to apply to every call the Agent makes. Turn a control on or off, then select Save Changes at the top of the page. The settings are saved with the Agent, but they are not enforced until the gateway is connected.

Data protection controls: PII redaction, Payment data redaction and Secrets redaction.

  • PII redaction, Payment data redaction and Secrets redaction mask sensitive values before they leave for a provider or tool.
  • Unknown tool approval is designed to hold untrusted tools for review.
  • The evidence control under Approvals & evidence is designed to ask for a decision and policy snapshot with an HMAC integrity hash for each call. It does not add one yet; see Action Records.

Each Agent has an Enforcement mode. New Agents default to Observe Mode.

  • Observe (the default for new Agents): Stackduke evaluates policy and writes an Action Record for each call, but doesn’t block, hold or modify it.
  • Enforce: Stackduke applies each decision. Block stops the call and Require Approval holds it for a reviewer.

Before relying on Enforce, run representative traffic in Observe and check Activity for would-have-blocked or would-have-required-approval decisions. Confirm that:

  • expected writes are allowed or intentionally held
  • blocked actions really should stop
  • a reviewer covers the Approval Queue during the Agent’s operating hours
  • the workload handles a held or blocked call without unsafe automatic retries
  • the Agent is in Enforce before you depend on Block or Require Approval to prevent execution

See Observe Mode.

A spend budget tracks an Agent’s spend and limits supported cost-bearing execution at the workspace level. It is separate from your plan’s allowance of governed actions.

  1. Open the Agent’s Overview and find Usage & limits.

  2. Set the Agent’s Monthly spend cap and Alert at percentage, then select Save Changes. These values track the Agent and provide a warning threshold; do not rely on the Agent cap alone to stop execution.

  3. Open Settings > Workspace, then find Workspace spend controls.

  4. Set the workspace Monthly spend cap and save the change.

Expected result: the Agent shows its cap, spend and warning threshold, and the workspace shows its saved cap and current spend. When spend reaches the workspace’s enforced ceiling, Stackduke stops the next supported cost-bearing execution before it runs. For selection guidance and diagnostics, see Manage spend and usage.

  • Rotate Key replaces the Agent’s access key. Update your client with the new key.
  • Pause Route makes the Agent’s model and MCP paths unavailable until you select Resume Route.
  • Delete Agent removes it from the workspace and clears its Connection assignments. Its Action Records are kept.

Each of these asks you to type a confirmation phrase, such as ROTATE agent_billing_prod.