{
  "openapi": "3.1.0",
  "info": {
    "title": "MoQ Bench MCP",
    "version": "0.1.0",
    "description": "Public read-only Model Context Protocol service. The start and submit tools return browser links."
  },
  "servers": [
    {
      "url": "https://mcp.moq-bench.dev"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "mcpRequest",
        "summary": "Send one MCP JSON-RPC message",
        "description": "Modern clients use server/discover, followed by tools/list or tools/call. Legacy clients send initialize first. A tool call stays within public read APIs.",
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "description": "The protocol revision sent by the client.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Mcp-Method",
            "in": "header",
            "required": false,
            "description": "For modern clients, mirrors the JSON-RPC method.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Mcp-Name",
            "in": "header",
            "required": false,
            "description": "For modern clients, mirrors the tool name on tools/call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "UTF-8 JSON up to 16 KiB.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "initialize",
                "params": {
                  "protocolVersion": "2025-11-25",
                  "capabilities": {},
                  "clientInfo": {
                    "name": "example",
                    "version": "1.0"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response; legacy clients may receive the result as a request-scoped SSE event.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "description": "Accepted notification."
          },
          "400": {
            "description": "Invalid request or unsupported protocol header."
          },
          "403": {
            "description": "Browser origin refused."
          },
          "406": {
            "description": "Accept header does not allow the negotiated response."
          },
          "413": {
            "description": "Request body exceeds 16 KiB."
          },
          "415": {
            "description": "Content-Type is not application/json."
          },
          "429": {
            "description": "Rate limit exceeded. Retry after 60 seconds."
          }
        }
      }
    },
    "/mcp/server-card": {
      "get": {
        "operationId": "getServerCard",
        "summary": "Read the public server card",
        "responses": {
          "200": {
            "description": "Server metadata. Also available at /.well-known/mcp/server-card.json and /.well-known/mcp.json.",
            "content": {
              "application/mcp-server-card+json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "$schema": "https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",
                  "name": "dev.moq-bench/bench",
                  "title": "MoQ Bench MCP",
                  "version": "0.1.0",
                  "description": "Read public RindBench results, release standings, library tags and device battles.",
                  "remotes": [
                    {
                      "type": "streamable-http",
                      "url": "https://mcp.moq-bench.dev/mcp"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/healthz": {
      "get": {
        "operationId": "getHealth",
        "summary": "Check service availability",
        "responses": {
          "200": {
            "description": "The Worker is serving requests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
