openapi: 3.2.0 info: title: AI Gateway MCP Server Metrics API description: Universal MCP Gateway with OAuth integration - Modern Architecture version: 2.0.3290 tags: - name: Metrics paths: /metrics: get: summary: Get Prometheus Metrics description: 'FastAPI endpoint to serve Prometheus metrics. SECURITY: when ``METRICS_BEARER_TOKEN`` is configured, requests must present a matching ``Authorization: Bearer `` header to read the metrics. Operators who scrape from a trusted internal network (the Phase-6 default) can leave the env unset and the endpoint stays open as before — but any internet-reachable deployment should set it to defeat unauthenticated reconnaissance (the metrics expose per-endpoint latency, error rates, build version, and connected-service counters, all of which are reconnaissance fodder for a targeted attack).' operationId: get_prometheus_metrics_metrics_get responses: '200': description: Successful Response content: application/json: schema: {} tags: - Metrics