Skip to Content
Xeonr Developer Docs

Set Team MCP Policy

POST
/xeonr.auth.api.v1.McpTeamPolicyService/SetTeamMcpPolicy

Replaces a team's MCP policy. Takes effect on existing MCP connections without a reconnect. Team owners only.

Required scopes: auth:client-authorisations:revoke

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

team?string
Length1 <= length <= 128
policy*

The whole policy (replaces the stored one). Output-only fields are ignored. Every field unset clears the policy (back to no restriction).

expectedVersion?string

When set, the write fails with ABORTED unless the stored version matches. 0 means "there must be no policy yet". int64.gte = 0

Formatint64
[key: string]?never

Response 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"
  }
}