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.

Quickstart

This quickstart takes one Agent from nothing to a recorded, governed decision in five steps:

  1. Register your Agent
  2. Connect an MCP server
  3. Set one clear boundary
  4. Try the boundary
  5. Inspect the Action Record

An Agent in Stackduke is the identity your client uses when it calls tools. Agents live on the Graph: select Graph in the rail on the left, and the Agents panel lists every Agent in the workspace. Open an existing Agent, or register the one your client will use.

The Agents panel on the Graph, with New agent and Search agents, and no Agent selected.

  1. On the Graph, select New agent at the top of the Agents panel. In a workspace with no Connections yet, Register agent on the Command Center (the Stackduke mark at the top of the rail) does the same.

  2. Under Choose how this Agent works, select MCP-only, then Continue.

    Register Agent, step 1 Setup type, with MCP-only selected.

  3. On the Client step, under Choose how your agent connects, an MCP-only Agent connects as an MCP-compatible agent. It is the only option and is already selected. Select Continue. No SDK is required.

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

  4. Enter an Agent Name, check the Owner and Workspace, and optionally choose MCP Connections. If you choose your server’s Connection here, you can skip its assignment in step 2. Select Register Agent.

  5. The Agent created dialog shows the two values your client needs: the Stackduke MCP server URL and the Stackduke access key. Copy both, store the key in your secret manager, then select Done.

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

In your MCP-capable agent or client, replace the upstream MCP server address with the Stackduke MCP server URL you copied, 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>

Each Agent has one Stackduke MCP endpoint, whatever the number of Connections it uses. The URL identifies the Agent and isn’t a secret; the access key is the Agent’s scoped credential and is. Copy the URL from the dashboard rather than typing it by hand.

From then on, your agent’s tool calls go to Stackduke first. Stackduke resolves each call through the Agent’s assigned Connections, governs it, and forwards allowed calls to your existing upstream MCP server. When you attach more Connections later, you don’t change anything in your client.

A Connection is the upstream MCP server the Agent is allowed to reach through Stackduke.

  1. If the server isn’t in Stackduke yet, open Connections in the rail and add the MCP server. Then connect its account, select Refresh tools, and review any changes.

  2. On the Graph, select the Agent, then select Connections in the toolbar at the bottom of the map.

  3. Select Attach connection, choose an MCP Connection from this workspace, and select Attach MCP Connection.

You can also assign it from the Connection: open its Agents tab and select Assign Agent.

Attach a published Policy to the Agent. A Policy holds the rules that decide whether each action is allowed, needs approval, or is blocked.

  • For a refund tool, open Policies in the rail and select Create refund policy. Choose the Connection / account, keep Allow through (SGD) at 500 and Require approval through (SGD) at 1,000, then select Save draft and Publish version. Under Assign published policy to Agent, choose your Agent and select Assign published policy. Refunds up to SGD 500 pass, refunds up to SGD 1,000 need approval, and anything above is blocked.
  • For any other tool, build the rule for your Connection and publish a version. See Create and publish a Policy. Then, on the Graph, select the Agent, select Policies in the toolbar, and select Attach Policy.

You can check a boundary without running anything.

  1. On the Graph, select the Agent, then select Tools in the toolbar. Tools that a policy can evaluate show Conditional as their Effective decision.

    The Agent’s Tools section. Issue a refund is covered by the Internal Billing refund controls policy, with the effective decision Conditional.

  2. Select Issue a refund to open it on its Connection, then select Test policy. Stackduke takes you to the Agent on the Graph, which opens on its map. Select Tools in the toolbar to open the Test policy panel. You can also start from the policy: on its Rules tab, choose the Agent under Test policy and select Test policy.

    Enter a safe test Amount, Currency and Target. The decision updates as you type. Evaluation does not execute the action.

    The Test policy panel for Issue a refund. An amount of 750 SGD shows Approval required.

  3. Select Record result (or Request approval, when the decision is Require Approval). Stackduke records the evaluated action.

    After recording, the Test policy panel shows Action recorded, with links to Open Approval Queue and Open Action Record.

To try it for real, make the same call from your agent. Stackduke applies the same Policy to the live call. New Agents default to Observe Mode: the decision is recorded, but the call isn’t blocked or held. Check the Agent’s mode before interpreting the outcome; Enforce applies the policy decision.

Select Open Action Record. The record opens in Activity and shows what Stackduke decided and why.

An Action Record for Issue a refund: Internal Billing Assistant through Internal Billing, policy decision Approval required, human approval Pending, not executed.

Check three things:

  • Summary: the Agent, Connection, Policy decision and Outcome match what you expected. A recorded evaluation that needs approval shows Approval pending; a live allowed call moves through Allowed, awaiting execution and Execution in progress to Execution succeeded. Outcome unknown means the result was lost after the call may have run; it is never reported as failed. See Action outcomes.
  • Governance: the Policy version and matched rule are the ones you meant to apply.
  • Integrity: the record’s link status, based on its metadata. See Action Records.

If the decision was Require Approval, open the request from Open Approval and review it in the Approval Queue.