ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Say what an MCP proxy is and what an admin sets up on it
  • Write the scope string for a proxy handle and an action
  • Say where scopes are stored and which gateway policies enforce them
  • Explain what happens to a tool that no scope covers

Before you start

On this page

An agent that uses tools needs a way to find and call them. is the standard way. A tool server can offer many , and you may want one agent to use some of them and not others. Agent Manager solves that with an and scopes.

The admin’s side

  1. Read the tool list

    The admin gives AMS the address of an MCP server. AMS checks the address against its guard for unsafe targets, then speaks MCP to the server and asks what it offers: tools, and also prompts and resources. The reply lists the tools the admin can later tie to scopes.

  2. Create the proxy

    The proxy handle is a kebab-case name. Each environment the proxy serves gets an endpoint with its own security choice, either an API key or agent identity. AMS saves the proxy and then deploys it to the gateway mapped to each environment.

  3. Define a scope that maps to tools

    A scope is a named permission, such as read, that unlocks certain tools. Like wristbands at a festival, each colour opens different doors. In a token the scope reads <proxy handle>:<action>, for example docs-search:read.

  4. The scope is stored in AMS's own database

    The scope lives in the table mcp_proxy_scopes in AMS’s database. It is not stored in the identity provider. The gateway rules and the scope lists that agents later receive are both read back from this table.

  5. The proxy is registered as a resource server

    In the background, AMS tells the ThunderID of each environment where the proxy uses agent identity that the proxy exists as a and which scopes it offers. Its identifier is the proxy’s public URL. Roles that grant these scopes to agents are created separately.

  6. AMS writes the gateway rules

    For each environment that uses agent identity, AMS builds the deployment and adds the policy mcp-auth, and also mcp-authz once at least one tool is covered by a scope. mcp-auth names the key manager for ThunderID tokens and advertises the scopes a client should ask for. mcp-authz gets one rule per tool, listing the scopes that cover that tool.

Component

MCP proxy and scopes

Shared or other Other BOTH

An MCP proxy is Agent Manager's managed front door for an upstream MCP server. It is deployed to the API Platform Gateway, and agents call the proxy instead of the upstream server. Each proxy can define scopes, named permissions of the form <proxy-handle>:<action>, and each scope lists the proxy's tools it allows.

How the gateway gets the rules

The gateway controller dialled out to AMS earlier and holds a WebSocket open. It receives an mcpproxy.deployed event on that line, fetches the proxy from AMS’s internal API, and stores it. Then the router and the policy engine, which keep xDS connections open to the controller, receive the new routes and policy chains. The router listens for proxy traffic on port 22893 and serves the MCP route at /mcp.

Flow

MCP proxy and tool scopes

F10 11 steps ON-PREM

An admin puts an MCP server behind a gateway proxy and defines scopes that map to its tools. The gateway then only lets an agent call a tool when the agent holds a token from its environment's identity provider that carries the right scope.

The call

The agent attaches Authorization: Bearer <token> to each MCP request. It calls the proxy’s public gateway address, ending in /mcp, and not the address inside the cluster, because that public address doubles as the OAuth resource identifier. The gateway fetches the identity provider’s public keys, checks the token, and then looks at the tool being called.

Your turn

Under Try it, play flow F10 and stop at the step where AMS turns scopes into gateway rules. Write down which policies appear and what each one gets. Then open Who can call what and search for mcp-proxies: these are the routes that manage MCP proxies, and each needs an amp: permission. The per tool scopes of a proxy, such as docs-search:read, are a different catalog, and that lens does not simulate them. Finish with the matcher.

Recap

  • An MCP proxy is the managed front door of an MCP server, deployed to the gateway.
  • A scope is <proxy handle>:<action> and lists the tools it allows. It is stored in mcp_proxy_scopes in AMS’s own database.
  • AMS registers the proxy as a resource server in the ThunderID of each environment that uses agent identity, and writes the gateway policies mcp-auth and mcp-authz.
  • The agent sends its token to the proxy’s public gateway address.
  • A tool that no scope covers gets no rule, so nothing restricts it beyond the token check.

Try it

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Who can call what

What to do: choose a role and an API route, then see whether the call is allowed.

Loading the simulator...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)