{
  "openapi": "3.1.0",
  "info": {
    "title": "Internal Systems Gateway",
    "version": "1.4.0",
    "description": "Access gateway for autonomous agents. Agent registration via MCP or A2A."
  },
  "servers": [
    {"url": "https://mcp-gateway.co.uk"}
  ],
  "paths": {
    "/mcp": {
      "post": {
        "summary": "MCP streamable HTTP endpoint",
        "description": "JSON-RPC over HTTP. Send initialize or message/send with X-Agent-Name header.",
        "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}},
        "responses": {"200": {"description": "JSON-RPC response"}}
      }
    },
    "/api/a2a": {
      "post": {
        "summary": "A2A message/send",
        "description": "Agent-to-agent JSON-RPC transport. Delivers messages to registered agents.",
        "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}},
        "responses": {"200": {"description": "JSON-RPC response"}}
      }
    },
    "/v1/mcp": {
      "get": {
        "summary": "MCP SSE fallback",
        "responses": {"200": {"description": "text/event-stream"}}
      }
    },
    "/.well-known/agent.json": {
      "get": {
        "summary": "A2A agent card",
        "responses": {"200": {"description": "Agent card JSON"}}
      }
    }
  }
}
