-
Notifications
You must be signed in to change notification settings - Fork 33
Refactor MCP Permissions documentation to Agent Security terminology #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
danyi1212
wants to merge
1
commit into
master
Choose a base branch
from
dan/per-13548-agentsecurity-write-docs-for-agentsecurity
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,53 +1,48 @@ | ||||||
| --- | ||||||
| title: MCP Permissions Architecture | ||||||
| title: Agent Security Architecture | ||||||
| sidebar_label: Architecture | ||||||
| description: A comprehensive guide to MCPermit's architecture, explaining how it delivers permissions-as-a-service for Model Context Protocol servers. | ||||||
| description: A comprehensive guide to Agent Security's architecture, explaining how it delivers permissions-as-a-service for Model Context Protocol servers. | ||||||
| sidebar_position: 2 | ||||||
| --- | ||||||
|
|
||||||
| # MCP Permissions Architecture | ||||||
| # Agent Security Architecture | ||||||
|
|
||||||
| :::info | ||||||
| This pages describes an upcoming product; details are subject to change. | ||||||
| To get early access to MCPermit, contact us via [email](mailto:support@permit.io) or via [Slack](https://io.permit.io/slack). | ||||||
| ::: | ||||||
| ## What is Agent Security? | ||||||
|
|
||||||
| ## What is MCPermit? | ||||||
|
|
||||||
| MCPermit delivers **permissions-as-a-service** for any Model Context Protocol (MCP) server-hosted or self-managed. It acts as a proxy/gateway between AI agents and the resources they invoke, providing: | ||||||
| Agent Security delivers **permissions-as-a-service** for any Model Context Protocol (MCP) server. It acts as a proxy/gateway between AI agents and the resources they invoke, providing: | ||||||
|
|
||||||
| * **Fine-grained ReBAC** (relationship-based access control) powered by Permit.io, OPA, and OPAL | ||||||
| * **Five-stage authentication & authorization** that binds user, agent, MCP server, and downstream service identities | ||||||
| * **Comprehensive auditing and anomaly detection** covering every call, scope, and actor | ||||||
| * **Authentication & authorization** that binds user, agent, MCP server, and downstream service identities | ||||||
| * **Comprehensive auditing** covering every call, scope, and actor | ||||||
| * **Flexible delivery models** that share identical policy semantics | ||||||
|
|
||||||
| A single URL switch yields consistent enforcement, instant visibility, and human-in-the-loop (HITL) approvals-**no code changes** to agents or servers. | ||||||
| A single URL switch yields consistent enforcement, instant visibility, and human-in-the-loop (HITL) approvals — **no code changes** to agents or servers. | ||||||
|
|
||||||
| ## Core Components | ||||||
|
|
||||||
| ```mermaid | ||||||
| graph LR | ||||||
| subgraph Client Side | ||||||
| UA[Originator<br/>User] | ||||||
| AGT[n8n-email-workflow-agent<br/>MCP Client] | ||||||
| AGT[MCP Client<br/>Cursor / Claude / VS Code] | ||||||
| end | ||||||
|
|
||||||
| subgraph MCPermit Gateway / Middleware | ||||||
| GW[MCPermit<br/>Gateway] | ||||||
| subgraph Agent Security Gateway | ||||||
| GW[Gateway] | ||||||
| PDP[Permit.io PDP<br/>OPA + OPAL] | ||||||
| LOGS[Audit Store] | ||||||
| HIL[HITL Approvals] | ||||||
| HIL[HITL Approvals<br/>coming soon] | ||||||
| end | ||||||
|
|
||||||
| subgraph Resource Side | ||||||
| MCP1[Google-Gsuite-MCP] | ||||||
| MCP2[Calendly-MCP-sorter] | ||||||
| MCP2[Calendly-MCP] | ||||||
| SVC1[Google APIs] | ||||||
| SVC2[Calendly API] | ||||||
| end | ||||||
|
|
||||||
| UA -->|OAuth / SSO| GW | ||||||
| AGT -->|identify_self| GW | ||||||
| UA -->|OAuth| GW | ||||||
| AGT -->|MCP Streamable HTTP| GW | ||||||
| GW --> PDP | ||||||
| GW --> LOGS | ||||||
| GW --> HIL | ||||||
|
|
@@ -58,137 +53,144 @@ graph LR | |||||
| ``` | ||||||
|
|
||||||
| Key components: | ||||||
| - **Gateway**: Can be SaaS, self-hosted proxy, or in-process middleware | ||||||
| - **Permit.io PDP**: Runs embedded (WASM) for µ-latency or remotely via OPAL | ||||||
| - **Audit Store**: Feeds live anomaly detection | ||||||
| - **HITL service**: Issues approval links and manages step-up auth | ||||||
| - **Gateway**: Managed proxy at `*.agent.security` | ||||||
| - **Permit.io PDP**: Policy decision point for real-time authorization | ||||||
| - **Audit Store**: Records every authorization decision | ||||||
| - **HITL service** *(coming soon)*: Issues approval links and manages step-up auth | ||||||
|
|
||||||
| ## Integration Patterns | ||||||
|
|
||||||
| MCPermit offers three deployment patterns: | ||||||
| Agent Security currently offers a hosted gateway deployment. Additional patterns are planned: | ||||||
|
|
||||||
| | Pattern | When to Use | How It Works | | ||||||
| | ------------------------- | -------------------------------- | ----------------------------------------------------------------- | | ||||||
| | **Hosted Gateway** | Fastest rollout; SaaS workloads | Point agents/servers to `https://<org>.mcpermit.io` | | ||||||
| | **Side-car / Middleware** | Low-latency, on-prem AI | Drop a lightweight proxy library in front of the MCP server | | ||||||
| | **Hosting Platform** | Building a multi-tenant MCP SaaS | MCPermit baked into ingress; tenants consume via hosted endpoints | | ||||||
| | Pattern | When to Use | How It Works | Status | | ||||||
| | ------------------------- | -------------------------------- | ----------------------------------------------------------------- | ------ | | ||||||
| | **Hosted Gateway** | Fastest rollout; SaaS workloads | Point agents/servers to `https://<host>.agent.security` | Available | | ||||||
| | **Side-car / Middleware** | Low-latency, on-prem AI | Drop a lightweight proxy library in front of the MCP server | *Coming soon* | | ||||||
| | **Hosting Platform** | Building a multi-tenant MCP SaaS | Agent Security baked into ingress; tenants consume via hosted endpoints | *Coming soon* | | ||||||
|
|
||||||
| All patterns share one control plane, policy model, and log format. | ||||||
| All patterns will share one control plane, policy model, and log format. | ||||||
|
|
||||||
| ## Policy Model | ||||||
|
|
||||||
| ### Five-Stages of Access Control | ||||||
| ### Trust-Level Access Control | ||||||
|
|
||||||
| Agent Security provides trust-level-based policy control where each tool is classified by risk: | ||||||
|
|
||||||
| 1. **Low trust** — read-only operations (`get_*`, `list_*`, `read_*`) | ||||||
| 2. **Medium trust** — write operations (`create_*`, `update_*`, `send_*`) | ||||||
| 3. **High trust** — destructive operations (`delete_*`, `remove_*`, `destroy_*`) | ||||||
|
|
||||||
| MCPermit provides five levels of policy control: | ||||||
| Trust levels are hierarchical: higher levels inherit all permissions from lower levels. | ||||||
|
|
||||||
| 1. **Organization Policy** – controls *agent-type ↔ server-type* pairings | ||||||
| 2. **User Policy** – user delegates a concrete agent | ||||||
| 3. **Agent Permission** – coarse scopes (`read_emails`, `create_event`) | ||||||
| 4. **Operation Approval** – per-call HITL step-up | ||||||
| 5. **Org-Wide Constraints** – DLP masks, region pinning, rate limits | ||||||
| ### Planned Policy Enhancements *(coming soon)* | ||||||
|
|
||||||
| - **Organization Policy** — control agent-type ↔ server-type pairings | ||||||
| - **Operation Approval** — per-call HITL step-up | ||||||
| - **Org-Wide Constraints** — DLP masks, region pinning, rate limits | ||||||
|
|
||||||
| ### Policy Architecture | ||||||
|
|
||||||
| MCPermit automatically generates Google-Zanzibar-inspired ReBAC (Relationship based Access Control) policies based on: | ||||||
| Agent Security automatically generates Google-Zanzibar-inspired ReBAC (Relationship based Access Control) policies based on: | ||||||
|
||||||
| Agent Security automatically generates Google-Zanzibar-inspired ReBAC (Relationship based Access Control) policies based on: | |
| Agent Security automatically generates Google-Zanzibar-inspired ReBAC (Relationship-based Access Control) policies based on: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hosted gateway URL shown here omits the
/mcppath, but elsewhere (e.g., the Getting Started guide) the MCP endpoint ishttps://<host>.agent.security/mcp. This mismatch is likely to cause misconfiguration; update the URL in this table (or clarify base vs MCP endpoint) to be consistent.