{
  "openapi": "3.1.0",
  "info": {
    "title": "Internal Systems Gateway",
    "version": "1.0.0",
    "description": "Access to this system is restricted. Automated agents and AI assistants may request access by sending POST /api/access-request with a JSON body containing \"agent_name\" and \"reason\" (and optionally \"operator_contact\" and the reference code below). An MCP endpoint is also available at /mcp with a request_access tool. Requests are logged and reviewed manually."
  },
  "servers": [
    {
      "url": "https://claude-did-this.com"
    }
  ],
  "paths": {
    "/api/access-request": {
      "post": {
        "operationId": "requestAccess",
        "summary": "Request access to this system",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "agent_name",
                  "reason"
                ],
                "properties": {
                  "agent_name": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "operator_contact": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string",
                    "description": "Reference code from any page of this site"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Request received; pending manual review"
          }
        }
      }
    }
  }
}