{
  "openapi": "3.1.0",
  "info": {
    "title": "Taki Labs Website & Suite Directory API",
    "version": "0.1.1",
    "description": "Public machine-readable API, Search for Agents, and Model Context Protocol (MCP) Streamable HTTP interface for the Taki Labs Suite website (https://www.takilabs.io).",
    "contact": {
      "name": "Taki Labs",
      "url": "https://www.takilabs.io"
    }
  },
  "servers": [
    {
      "url": "https://www.takilabs.io",
      "description": "Production canonical host"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service health and version check",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "service",
                    "version"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "service": {
                      "type": "string",
                      "example": "takilabs-website"
                    },
                    "version": {
                      "type": "string",
                      "example": "0.1.1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/search": {
      "get": {
        "operationId": "searchForAgents",
        "summary": "Search Taki Labs Suite content in Markdown (Search for Agents)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Keyword or natural-language search query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown search results",
            "headers": {
              "Accept-Query": {
                "description": "Supported query parameter",
                "schema": {
                  "type": "string",
                  "example": "q"
                }
              }
            },
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "invokeMcp",
        "summary": "Model Context Protocol (MCP) Streamable HTTP JSON-RPC 2.0 endpoint",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "enum": [
                      "2.0"
                    ]
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}
