{
  "openapi": "3.0.3",
  "info": {
    "title": "Internal Ops API",
    "version": "2.3.1"
  },
  "servers": [
    {
      "url": "https://www.mcp-hub.dev"
    }
  ],
  "paths": {
    "/api/v1/login": {
      "post": {
        "summary": "Staff login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/users": {
      "get": {
        "summary": "List users (bearer auth)"
      }
    },
    "/api/v1/keys": {
      "get": {
        "summary": "List service API keys (admin)"
      }
    },
    "/api/v1/exec": {
      "post": {
        "summary": "Run maintenance command on bastion (admin)"
      }
    },
    "/agent/checkin": {
      "get": {
        "summary": "Agent registration",
        "parameters": [
          {
            "name": "agent",
            "in": "query"
          },
          {
            "name": "purpose",
            "in": "query"
          }
        ]
      }
    }
  }
}