Skip to Content
Xeonr Developer Docs

Get Service Account Effective MCP Connection

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

Returns the MCP connection a service account has now (C12). Gateway only.

Required scopes: mcp:gateway

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

serviceAccount?string

The service account: the sub of its MCP token, urn:xeonr:auth:uid:service_account:. string.prefix = "urn:xeonr:auth:uid:service_account:"

Lengthlength <= 96
authorisationId?string

The token's urn:xeonr:auth:authorisation_id claim (the service account's JTI). A regenerated token no longer matches: NOT_FOUND.

Length1 <= length <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.McpConnectionsService/GetServiceAccountEffectiveConnection" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "connection": {
    "grantId": "string",
    "version": "string",
    "subject": "string",
    "clientId": "string",
    "clientName": "string",
    "configured": true,
    "products": [
      {
        "key": "string",
        "name": "string",
        "audience": "string",
        "toolsets": [
          "string"
        ],
        "scopes": [
          "string"
        ],
        "teams": [
          {
            "urn": "string",
            "slug": "string",
            "name": "string"
          }
        ],
        "description": "string",
        "toolsetTeams": [
          {
            "toolset": "string",
            "teams": [
              "string"
            ]
          }
        ],
        "resources": [
          {
            "type": "string",
            "identifier": "string",
            "actions": [
              "string"
            ]
          }
        ]
      }
    ],
    "unavailable": [
      {
        "product": "string",
        "toolset": "string",
        "reason": "string",
        "scopes": [
          "string"
        ],
        "team": "string"
      }
    ],
    "subjectKind": "string"
  }
}