Component ยท Data side
Policy mcp-authz v1
BOTH Concept Gateway
What it is
The mcp-authz policy decides which MCP tools a caller may use, based on scopes in the token. Agent Manager builds one rule for each tool, listing the scopes that allow it.
Why it exists
Valid identity is not enough. Different agents should be allowed different tools, and the gateway can enforce that without changing the tool server.
How it works
- Each rule names a tool and a list of scopes. Inside a rule, any one listed scope is enough.
- AMS puts all scopes of a tool into one rule, which keeps the outcome predictable.
- A tool with no matching rule is not blocked, it is allowed once the caller is authenticated.
- Scope names look like <proxyHandle>:<action>.
- Runs after mcp-auth in the policy chain.
Identity and access
It reads the scope claim of the token that ThunderID issued. Thunder filters scopes by the agent's roles, so the agent only holds scopes its roles grant.
Key facts
- Policy
- mcp-authz v1
- Scope format
- <proxyHandle>:<action>
- Runs after
- mcp-auth
- Side
- Data plane (gateway policy)
- Namespace
- gateway
Talks to (1)
- depends on Policy mcp-auth v1 mcp-auth then mcp-authzpolicy chain order