{
  "openapi": "3.1.0",
  "info": {
    "title": "RungLab DevTools MCP API",
    "version": "1.10.0",
    "summary": "Zero-key Streamable HTTP MCP server & machine-readable agent discovery endpoints.",
    "description": "Public zero-auth Streamable HTTP Model Context Protocol server exposing 15 read-only Email Deliverability DNS, OAuth 2.1/Passkey AuthGuard, EU CRA Art. 13/14, WCAG/EAA, GDPR/Consent, compliance, webhook/CORS/RateLimit, security, OpenAPI, SBOM, and MCP schema profiling tools.",
    "contact": {
      "name": "RungLab Support",
      "url": "https://mcp-server.runglab.dev/support",
      "email": "support@runglab.dev"
    },
    "license": {
      "name": "Public Free Zero-Key MCP Endpoint",
      "url": "https://mcp-server.runglab.dev/auth.md"
    }
  },
  "servers": [
    {
      "url": "https://mcp-server.runglab.dev",
      "description": "Cloudflare Workers edge endpoint"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "invokeMcpJsonRpc",
        "summary": "Execute MCP JSON-RPC 2.0 request (initialize, tools/list, tools/call)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "enum": [
                      "2.0"
                    ]
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "examples": [
                      "initialize",
                      "tools/list",
                      "tools/call"
                    ]
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON or invalid JSON-RPC request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Health check and live MCPDiet token efficiency metrics",
        "responses": {
          "200": {
            "description": "Healthy status with live tool schema metrics",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pricing": {
      "get": {
        "operationId": "getPricing",
        "summary": "Pricing tiers, free zero-key MCP allowance, and rate limits",
        "responses": {
          "200": {
            "description": "Pricing and quota breakdown in USD",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp/server-card.json": {
      "get": {
        "operationId": "getMcpServerCard",
        "summary": "SEP-1649 MCP Server Card with all 15 tool schemas",
        "responses": {
          "200": {
            "description": "MCP Server Card JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/search": {
      "get": {
        "operationId": "searchCapabilities",
        "summary": "Search MCP tools and machine-readable discovery endpoints",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Keyword filter over tools and documentation paths"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching tools and discovery URLs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "ok",
          "code",
          "error",
          "message"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "code": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}