MCP Gateway
ApiMcp servers

Get server connection options

Get connection options for an MCP server, including available OAuth apps, allowed credential types, and existing user connections.

GET
/api/v1/servers/{server_id}/connection-options

Path Parameters

server_id*string
Formatuuid

Query Parameters

user_id?|

User ID to get existing connections for (optional)

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/connection-options"
{
  "server_id": "820efca4-4a15-4ab7-82fc-9e76f6d61325",
  "server_name": "string",
  "credential_mode": "managed",
  "oauth_apps": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "alias": "string",
      "name": "string",
      "template_type": "github",
      "template_name": "string"
    }
  ],
  "allowed_credential_types": [
    "string"
  ],
  "existing_connections": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "credential_type": "string",
      "provider_name": "string",
      "is_valid": true,
      "created_at": "2019-08-24T14:15:22Z"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}