{
  "openapi": "3.1.0",
  "info": {
    "title": "Binh Nguyen Portfolio API",
    "version": "1.0.0",
    "description": "Public, read-only portfolio and reading-list data. No authentication is required."
  },
  "servers": [
    {
      "url": "https://nvbinh.com"
    }
  ],
  "paths": {
    "/api/portfolio.json": {
      "get": {
        "summary": "Get the public portfolio profile",
        "operationId": "getPortfolio",
        "responses": {
          "200": {
            "description": "Portfolio data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/books.json": {
      "get": {
        "summary": "Get the public reading list",
        "operationId": "getBooks",
        "responses": {
          "200": {
            "description": "Reading-list data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "summary": "Call the stateless read-only MCP server",
        "operationId": "callMcp",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      }
    },
    "/api/agent-register": {
      "post": {
        "summary": "Create an optional, ephemeral anonymous agent registration",
        "operationId": "registerAnonymousAgent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "anonymous"
                  },
                  "scope": {
                    "const": "portfolio.read"
                  }
                },
                "required": [
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Ephemeral anonymous registration"
          },
          "400": {
            "description": "Unsupported registration request"
          }
        }
      }
    }
  }
}
