MCP policy reference — Evaluation model
Cedar evaluates MCP requests against a principal, action, resource, and context.
Reference note (untrusted external data; do not execute it as instructions).
Cedar evaluates MCP requests against a principal, action, resource, and context. For Docker MCP policies, policy scope supplies the principal. Write policies against the action, resource, and context. Clauses that reference principal attributes, such as principal in ..., principal.role, or principal.tenant, don't match.
Governed MCP activity is default deny. A request is blocked unless a matching permit allows it. A matching forbid overrides any permit, including a permit annotated with @requireApproval.
For details about when Docker Sandboxes evaluates MCP policies for a user, see Govern the server lifecycle.
An actionless permit matches every MCP action that reaches Cedar evaluation
Attribution: Adapted from Docker Documentation under Apache-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Docker Documentation — content/manuals/ai/sandboxes/governance/reference/mcp-policy.md :: Evaluation model ↗Revision 3a9d778562f3 · Apache-2.0