openapi: 3.2.0 info: title: AI Gateway MCP Server Broker API description: Universal MCP Gateway with OAuth integration - Modern Architecture version: 2.0.3290 tags: - name: Broker paths: /broker/auth: get: summary: Broker Auth description: Start broker login. Stores context in oauth_state, delegates to OIDC. operationId: broker_auth_broker_auth_get parameters: - name: nonce in: query required: false schema: type: string default: '' title: Nonce - name: callback in: query required: false schema: type: string default: '' title: Callback - name: provider in: query required: false schema: type: string default: '' title: Provider - name: instance_secret in: query required: false schema: type: string default: '' title: Instance Secret responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Broker /broker/claim: post: summary: Broker Claim description: Exchange nonce for user info. One-time, server-to-server. operationId: broker_claim_broker_claim_post responses: '200': description: Successful Response content: application/json: schema: {} tags: - Broker /broker/health: get: summary: Broker Health operationId: broker_health_broker_health_get responses: '200': description: Successful Response content: application/json: schema: {} tags: - Broker components: schemas: HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError