{
  "openapi": "3.1.0",
  "info": {
    "title": "Jelly Tools MCP HTTP API",
    "version": "1.0.1",
    "description": "OpenAPI 3.1.0 specification for the Jelly Tools Streamable HTTP MCP server (@qiwihui/jellytools-mcp).",
    "contact": {
      "name": "Qiwihui",
      "url": "https://github.com/qiwihui/jellytools"
    }
  },
  "servers": [
    {
      "url": "https://mcp.jellytools.app",
      "description": "Configured MCP HTTP server"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Health and runtime status",
        "responses": {
          "200": {
            "description": "Server health payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "brand": {
                      "type": "string",
                      "example": "Jelly Tools"
                    },
                    "server": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string",
                      "example": "1.0.1"
                    },
                    "siteUrl": {
                      "type": "string",
                      "example": "https://jellytools.app"
                    },
                    "tools": {
                      "type": "integer",
                      "example": 24
                    },
                    "catalogTools": {
                      "type": "integer",
                      "example": 546
                    },
                    "activeSessions": {
                      "type": "integer"
                    },
                    "transport": {
                      "type": "string",
                      "example": "streamable-http"
                    }
                  },
                  "required": [
                    "status",
                    "brand",
                    "version",
                    "tools"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "get": {
        "operationId": "getMcpManifest",
        "summary": "MCP server discovery manifest",
        "responses": {
          "200": {
            "description": "Machine-readable MCP capabilities and tool list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "invokeMcpJsonRpc",
        "summary": "Execute MCP JSON-RPC 2.0 request (Streamable HTTP)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "initialize",
                      "tools/list",
                      "tools/call",
                      "resources/list",
                      "prompts/list"
                    ]
                  },
                  "params": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/call",
                "params": {
                  "name": "catalog_search",
                  "arguments": {
                    "query": "json",
                    "limit": 5
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "const": "2.0"
                    },
                    "id": {
                      "type": [
                        "string",
                        "integer",
                        "null"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
