Set Team MCP Policy
Replaces a team's MCP policy. Takes effect on existing MCP connections without a reconnect. Team owners only.
Required scopes: auth:client-authorisations:revoke
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 128The whole policy (replaces the stored one). Output-only fields are ignored. Every field unset clears the policy (back to no restriction).
When set, the write fails with ABORTED unless the stored version matches. 0 means "there must be no policy yet". int64.gte = 0
int64Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.McpTeamPolicyService/SetTeamMcpPolicy" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "policy": {} }'{
"policy": {
"team": "string",
"version": "string",
"restrictProducts": true,
"products": [
{
"product": "string",
"restrictToolsets": true,
"toolsets": [
"string"
],
"approvalToolsets": [
"string"
],
"agents": {
"deny": true,
"restrictToolsets": true,
"toolsets": [
"string"
]
}
}
],
"defaults": {
"product": "string",
"restrictToolsets": true,
"toolsets": [
"string"
],
"approvalToolsets": [
"string"
],
"agents": {
"deny": true,
"restrictToolsets": true,
"toolsets": [
"string"
]
}
},
"restrictMembers": true,
"members": [
"string"
],
"updatedBy": "string",
"updatedByName": "string",
"updatedAt": "2023-01-15T01:30:15.01Z"
}
}Request MCP Toolset POST
Asks a team's owners to approve an approval-gated MCP toolset for the caller. Members of the team only. **Required scopes:** `auth:client-authorisations:revoke`
Withdraw My MCP Toolset Request POST
Withdraws one of the caller's pending requests for an approval-gated MCP toolset. **Required scopes:** `auth:client-authorisations:revoke`