Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Document RBAC conditions for MCP endpoints, including name-based filtering and supported operators.

Saif720fb9bd7588
diff --git a/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx b/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx
index dc05fb2324..db77cc2d6b 100644
--- a/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx
+++ b/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx
@@ -132,6 +132,35 @@ When a user connects to an endpoint with servers requiring personal credentials:
![mcp endpoints finalize personal complete](/images/platform/ai/mcp/mcp-endpoints-finalize-personal-complete.png)
+## Access Control with Permission Conditions
+
+MCP endpoints support granular role-based access control through permission conditions. This allows you to restrict access to specific endpoints based on their name.
+
+### Example Use Cases
+
+- **Team-specific endpoints**: Create a role that only allows access to endpoints matching `engineering-*`
+- **Environment separation**: Restrict production endpoints (`prod-*`) to senior team members
+
+### Configuring Permission Conditions
+
+When creating or editing a project role, you can add conditions to MCP endpoint permissions:
+
+1. Navigate to **Access Control** > **Roles**
+2. Edit or create a role
+3. Under **MCP Endpoints** permissions, click **Add Condition**
+4. Select the **Endpoint Name** property
+5. Choose an operator (`equal`, `not equal`, `glob match`, or `in`)
+6. Enter the value(s) to match
+
+### Supported Operators
+
+| Operator | Description | Example |
+| ------------ | ------------------- | ------------------------------ |
+| `equal` | Exact match | `engineering-tools` |
+| `not equal` | Does not match | `prod-endpoint` |
+| `glob match` | Pattern matching | `prod-*`, `*-internal` |
+| `in` | Matches any in list | `["endpoint-1", "endpoint-2"]` |
+
## FAQ
<AccordionGroup>
diff --git a/docs/internals/permissions/overview.mdx b/docs/internals/permissions/overview.mdx
index 2e73708868..d2f5437c0f 100644
--- a/docs/internals/permissions/overview.mdx
+++ b/docs/internals/permissions/overview.mdx
@@ -34,6 +34,7 @@ Permission inversion allows you to explicitly deny actions instead of allowing t
- secret-folders
- secret-imports
- dynamic-secrets
+- mcp-endpoints
When a permission is inverted, it changes from an "allow" rule to a "deny" rule. For example:
@@ -64,6 +65,7 @@ Conditions allow you to create more granular permissions by specifying criteria
- secret-folders
- secret-imports
- dynamic-secrets
+- mcp-endpoints
### Properties
@@ -74,6 +76,12 @@ Conditions can be applied to the following properties:
- `secretName`: Control access based on secret names
- `secretTags`: Control access based on tags (only supports $in operator)
+### MCP Endpoint Properties
+
+For `mcp-endpoints`, conditions can be applied to:
+
+- `name`: Control access based on endpoint name (supports `$eq`, `$ne`, `$glob`, `$in`)
+
### Operators
The following operators are available for conditions:
diff --git a/docs/internals/permissions/project-permissions.mdx b/docs/internals/permissions/project-permissions.mdx
index 0882bddc34..4542d04f1d 100644
--- a/docs/internals/permissions/project-permissions.mdx
+++ b/docs/internals/permissions/project-permissions.mdx
@@ -358,3 +358,20 @@ Supports conditions and permission inversion
| ---------------- | -------------------------------------------- |
| `read-configs` | View Secret Scanning Project Configuration |
| `update-configs` | Update Secret Scanning Project Configuration |
+
+### Agent Sentinel
+
+#### Subject: `mcp-endpoints`
+
+Supports conditions and permission inversion.
+
+| Action | Description |
+| --------- | ----------------------------------- |
+| `read` | View MCP endpoints |
+| `create` | Create new MCP endpoints |
+| `edit` | Modify MCP endpoint configurations |
+| `delete` | Remove MCP endpoints |
+| `connect` | Connect AI clients to MCP endpoints |
+
+**Condition Properties:**
+- `name`: Control access based on endpoint name
\ No newline at end of file