Component ยท Shared or other
MCP proxy and scopes
BOTH Concept Other
What it is
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.
It is a hotel reception for a conference centre. Guests (agents) never walk to the rooms (tools) themselves. Reception checks their badge and hands out keys only for the rooms their badge allows.
Why it exists
Agents should reach tools only through a gateway that checks identity and per-tool permission. Scopes let one agent use some tools of a server and not others.
How it works
- POST /orgs/{org}/mcp-proxies (permission amp:mcp-server:create) creates a proxy. Its handle must be kebab-case, because it becomes the handle of a resource server in ThunderID.
- A proxy has endpoints, and an endpoint deploys to one or more environments. Within a proxy, an environment maps to at most one endpoint.
- Scopes are stored in the mcp_proxy_scopes table and managed under /mcp-proxies/{proxyId}/scopes (permissions amp:scope:*).
- In each environment, the proxy gets a resource server in that environment's ThunderID, and roles can grant its scopes to agents.
- When an agent is connected to a proxy, its AgentID scope list is built from the proxy's scopes, and changing a proxy's scopes refreshes the agents bound to it.
Key facts
- Tables
- mcp_proxies, mcp_proxy_endpoints, mcp_proxy_scopes
- Scope format
- <proxy-handle>:<action>
- Permissions
- amp:mcp-server:*, amp:scope:*
- Handle rule
- kebab-case
- Deployed to
- API Platform Gateway
Talks to (1)
- deploys to API Platform Gateway runtime (APG) McpProxy with mcp-auth and mcp-authzartifact via EventHub
Used by (1)
- needed by AgentID Scope injection DB-sourced