Skip to Content
Xeonr Developer Docs

Update My MCP Connection

POST
/xeonr.auth.api.v1.McpConnectionsService/UpdateMyMcpConnection

Replaces the connection record on one of the caller's MCP grants and returns the new version.

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

grantId?string
Match^[0-9]+$
Length1 <= length <= 32
record*

The record a person keeps on an MCP grant. JSON form (as stored): {"type":"xeonr_mcp_connection","teams":[...],"all_teams":false, "products":{"trellis":{"toolsets":["read"]}}}

expectedVersion?string

When set, the write fails with ABORTED unless the stored version matches. 0 means "there must be no record 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.McpConnectionsService/UpdateMyMcpConnection" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{    "record": {}  }'
{
  "version": "string"
}