BrainstormRouter MCP API

The mcp API from BrainstormRouter — 27 operation(s) for mcp.

Operations 37

GET /auth/mcp/approvals List pending MCP tool-execution approvals #
POST /auth/mcp/approvals/{id}/approve Approve a pending MCP execution #
POST /auth/mcp/approvals/{id}/deny Deny a pending MCP execution #
GET /auth/mcp/audit Recent MCP tool-execution audit entries #
GET /auth/mcp/governance MCP governance status #
PUT /auth/mcp/governance/policy Update MCP governance policy for a specific tool #
GET /auth/mcp/servers List enabled MCP servers for the tenant #
POST /auth/mcp/servers Register a new MCP server #
DELETE /auth/mcp/servers/{id} Remove an MCP server #
GET /auth/mcp/servers/{id} Get one MCP server (redacted) #
PUT /auth/mcp/servers/{id} Update an MCP server #
POST /auth/mcp/servers/{id}/discover Re-discover an MCP server's tools #
GET /auth/mcp/servers/{id}/health Cached MCP server health status #
POST /auth/mcp/servers/{id}/health Trigger an MCP server health probe #
GET /auth/mcp/tools List all MCP tools discoverable across servers #
POST /v1/bridge/messages Anthropic Messages API with automatic MCP tool execution — explicit opt-in… #
GET /v1/mcp/approvals List pending MCP tool-call approvals #
POST /v1/mcp/approvals/{id}/approve Approve a queued MCP tool call #
POST /v1/mcp/approvals/{id}/deny Deny a queued MCP tool call #
GET /v1/mcp/audit Recent MCP tool-call audit entries for the tenant #
GET /v1/mcp/bootstrap MCP bootstrap discovery (2-tool manifest, no auth) #
POST /v1/mcp/bootstrap Pre-auth MCP bootstrap — register a tenant in-band over MCP (2 tools) #
GET /v1/mcp/capabilities Core + external MCP tool catalog for the tenant #
GET /v1/mcp/connect MCP server discovery (capability + tool manifest) #
POST /v1/mcp/connect Open an MCP Streamable HTTP session against BR's control-plane tools #
GET /v1/mcp/governance Get MCP governance engine status #
PUT /v1/mcp/governance/policy Update an MCP tool-name policy in the governance engine #
GET /v1/mcp/servers List registered MCP servers for this tenant #
POST /v1/mcp/servers Register an external MCP server for this tenant #
DELETE /v1/mcp/servers/{id} Remove an MCP server registration #
GET /v1/mcp/servers/{id} Get details for an MCP server #
PUT /v1/mcp/servers/{id} Update an MCP server registration #
POST /v1/mcp/servers/{id}/discover Trigger remote tool discovery for an MCP server #
GET /v1/mcp/servers/{id}/health Get the last health status for an MCP server #
POST /v1/mcp/servers/{id}/health Trigger an on-demand health check for an MCP server #
GET /v1/mcp/tools List all discovered tools across registered MCP servers #
POST /v1/mcp/tools/{server}/{tool} Execute a tool call through the MCP gateway (proxied + governed) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/brainstormrouter-com:brainstormrouter-com-mcp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

brainstormrouter-com-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BrainstormRouter MCP API
  version: 1.0.0
  description: 'Autonomous AI API Engine — multi-tenant gateway that intelligently routes

    AI traffic across providers with built-in memory, cost optimization, and

    autonomous background processing.


    All `/v1/*` endpoints require an API key via `Authorization: Bearer `.'
  contact:
    name: BrainstormRouter
    url: https://brainstormrouter.com
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
- url: https://api.brainstormrouter.com
  description: Production
security:
- BearerAuth: []
tags:
- name: MCP
paths:
  /auth/mcp/approvals:
    get:
      operationId: authMcpApprovalsList
      summary: List pending MCP tool-execution approvals
      tags:
      - MCP
      x-br-capability-id: auth.mcp.approvals.list
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/approvals/{id}/approve:
    post:
      operationId: authMcpApprovalsApprove
      summary: Approve a pending MCP execution
      tags:
      - MCP
      x-br-capability-id: auth.mcp.approvals.approve
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                id:
                  type: string
              required:
              - id
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/approvals/{id}/deny:
    post:
      operationId: authMcpApprovalsDeny
      summary: Deny a pending MCP execution
      tags:
      - MCP
      x-br-capability-id: auth.mcp.approvals.deny
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                id:
                  type: string
              required:
              - id
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/audit:
    get:
      operationId: authMcpAudit
      summary: Recent MCP tool-execution audit entries
      tags:
      - MCP
      x-br-capability-id: auth.mcp.audit
      x-br-version: v1
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/governance:
    get:
      operationId: authMcpGovernanceStatus
      summary: MCP governance status
      tags:
      - MCP
      x-br-capability-id: auth.mcp.governance.status
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/governance/policy:
    put:
      operationId: authMcpGovernancePolicy
      summary: Update MCP governance policy for a specific tool
      tags:
      - MCP
      x-br-capability-id: auth.mcp.governance.policy
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                tool_name:
                  type: string
                allowed:
                  type: boolean
                max_cost_usd:
                  type: number
                requires_approval:
                  type: boolean
              required:
              - tool_name
              - allowed
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/servers:
    get:
      operationId: authMcpServersList
      summary: List enabled MCP servers for the tenant
      tags:
      - MCP
      x-br-capability-id: auth.mcp.servers.list
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
    post:
      operationId: authMcpServersCreate
      summary: Register a new MCP server
      tags:
      - MCP
      x-br-capability-id: auth.mcp.servers.create
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                name:
                  type: string
                transport:
                  type: string
                  enum:
                  - streamable-http
                  - sse
                description:
                  type: string
                url:
                  type: string
                auth:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                allowed_key_ids:
                  type: array
                  items:
                    type: string
              required:
              - name
              - transport
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/servers/{id}:
    delete:
      operationId: authMcpServersDelete
      summary: Remove an MCP server
      tags:
      - MCP
      x-br-capability-id: auth.mcp.servers.delete
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
    get:
      operationId: authMcpServersGet
      summary: Get one MCP server (redacted)
      tags:
      - MCP
      x-br-capability-id: auth.mcp.servers.get
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
    put:
      operationId: authMcpServersUpdate
      summary: Update an MCP server
      tags:
      - MCP
      x-br-capability-id: auth.mcp.servers.update
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                url:
                  type: string
                enabled:
                  type: boolean
                auth:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                allowed_key_ids:
                  type: array
                  items:
                    type: string
              required: []
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/servers/{id}/discover:
    post:
      operationId: authMcpServerDiscover
      summary: Re-discover an MCP server's tools
      tags:
      - MCP
      x-br-capability-id: auth.mcp.server.discover
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                id:
                  type: string
              required:
              - id
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/servers/{id}/health:
    get:
      operationId: authMcpServerHealthStatus
      summary: Cached MCP server health status
      tags:
      - MCP
      x-br-capability-id: auth.mcp.server.health.status
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
    post:
      operationId: authMcpServerHealthCheck
      summary: Trigger an MCP server health probe
      tags:
      - MCP
      x-br-capability-id: auth.mcp.server.health.check
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                id:
                  type: string
              required:
              - id
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/mcp/tools:
    get:
      operationId: authMcpToolsList
      summary: List all MCP tools discoverable across servers
      tags:
      - MCP
      x-br-capability-id: auth.mcp.tools.list
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /v1/bridge/messages:
    post:
      operationId: systemMessagesBridge
      summary: Anthropic Messages API with automatic MCP tool execution — explicit opt-in…
      tags:
      - MCP
      x-br-capability-id: system.messages.bridge
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                model:
                  type: string
                messages:
                  type: array
                  items:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties: {}
              required:
              - model
              - messages
              additionalProperties: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/approvals:
    get:
      operationId: systemMcpGovernanceApprovalsList
      summary: List pending MCP tool-call approvals
      tags:
      - MCP
      x-br-capability-id: system.mcp.governance.approvalsList
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/approvals/{id}/approve:
    post:
      operationId: systemMcpGovernanceApprove
      summary: Approve a queued MCP tool call
      tags:
      - MCP
      x-br-capability-id: system.mcp.governance.approve
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties: {}
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/approvals/{id}/deny:
    post:
      operationId: systemMcpGovernanceDeny
      summary: Deny a queued MCP tool call
      tags:
      - MCP
      x-br-capability-id: system.mcp.governance.deny
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties: {}
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/audit:
    get:
      operationId: systemMcpAudit
      summary: Recent MCP tool-call audit entries for the tenant
      tags:
      - MCP
      x-br-capability-id: system.mcp.audit
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/bootstrap:
    get:
      operationId: systemMcpBootstrap_discover
      summary: MCP bootstrap discovery (2-tool manifest, no auth)
      tags:
      - MCP
      x-br-capability-id: system.mcp.bootstrap_discover
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
    post:
      operationId: systemMcpBootstrap
      summary: Pre-auth MCP bootstrap — register a tenant in-band over MCP (2 tools)
      tags:
      - MCP
      x-br-capability-id: system.mcp.bootstrap
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
  /v1/mcp/capabilities:
    get:
      operationId: systemMcpCapabilities
      summary: Core + external MCP tool catalog for the tenant
      tags:
      - MCP
      x-br-capability-id: system.mcp.capabilities
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/connect:
    get:
      operationId: systemMcpDiscover
      summary: MCP server discovery (capability + tool manifest)
      tags:
      - MCP
      x-br-capability-id: system.mcp.discover
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
    post:
      operationId: systemMcpConnect
      summary: Open an MCP Streamable HTTP session against BR's control-plane tools
      tags:
      - MCP
      x-br-capability-id: system.mcp.connect
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/governance:
    get:
      operationId: systemMcpGovernanceStatus
      summary: Get MCP governance engine status
      tags:
      - MCP
      x-br-capability-id: system.mcp.governance.status
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/governance/policy:
    put:
      operationId: systemMcpGovernanceUpdatePolicy
      summary: Update an MCP tool-name policy in the governance engine
      tags:
      - MCP
      x-br-capability-id: system.mcp.governance.updatePolicy
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                tool_name:
                  type: string
                allowed:
                  type: boolean
                max_cost_usd:
                  type: number
                requires_approval:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/servers:
    get:
      operationId: systemMcpServersList
      summary: List registered MCP servers for this tenant
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.list
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
    post:
      operationId: systemMcpServersCreate
      summary: Register an external MCP server for this tenant
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.create
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                transport:
                  type: string
                url:
                  type: string
                auth:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                allowed_key_ids:
                  type: array
                  items:
                    type: string
                shadow_mode:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/servers/{id}:
    delete:
      operationId: systemMcpServersDelete
      summary: Remove an MCP server registration
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.delete
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
    get:
      operationId: systemMcpServersGet
      summary: Get details for an MCP server
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.get
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
    put:
      operationId: systemMcpServersUpdate
      summary: Update an MCP server registration
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.update
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                url:
                  type: string
                enabled:
                  type: boolean
                auth:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                allowed_key_ids:
                  type: array
                  items:
                    type: string
                shadow_mode:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/servers/{id}/discover:
    post:
      operationId: systemMcpServersDiscover
      summary: Trigger remote tool discovery for an MCP server
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.discover
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties: {}
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/servers/{id}/health:
    get:
      operationId: systemMcpServersHealthGet
      summary: Get the last health status for an MCP server
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.healthGet
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
    post:
      operationId: systemMcpServersHealthCheck
      summary: Trigger an on-demand health check for an MCP server
      tags:
      - MCP
      x-br-capability-id: system.mcp.servers.healthCheck
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties: {}
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/tools:
    get:
      operationId: systemMcpToolsList
      summary: List all discovered tools across registered MCP servers
      tags:
      - MCP
      x-br-capability-id: system.mcp.tools.list
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/mcp/tools/{server}/{tool}:
    post:
      operationId: systemMcpToolsCall
      summary: Execute a tool call through the MCP gateway (proxied + governed)
      tags:
      - MCP
      x-br-capability-id: system.mcp.tools.call
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                arguments:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (e.g. `br_live_...`)
    SupabaseJWT:
      type: http
      scheme: bearer
      description: Supabase JWT token (dashboard auth)