ESA MCP Server
by d-kimuson
- openapi-spec
{
"paths": {
"/oauth/token": {
"post": {
"tags": ["OAuth"],
"summary": "Issue new access token",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"client_id",
"client_secret",
"grant_type",
"redirect_uri",
"code"
],
"properties": {
"client_id": { "type": "string" },
"client_secret": { "type": "string" },
"grant_type": {
"type": "string",
"enum": ["authorization_code"]
},
"redirect_uri": { "type": "string" },
"code": { "type": "string" }
}
}
}
}
},
"responses": {
"200": {
"description": "Access token details",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"access_token": { "type": "string" },
"token_type": { "type": "string" },
"scope": { "type": "string" },
"created_at": { "type": "integer" }
}
}
}
}
},
"400": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"401": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"404": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"409": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"429": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
}
},
"/oauth/token/info": {
"get": {
"tags": ["OAuth"],
"summary": "Get access token information",
"security": [{ "bearerAuth": [] }],
"responses": {
"200": {
"description": "Token information",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"resource_owner_id": { "type": "integer" },
"scope": {
"type": "array",
"items": { "type": "string" }
},
"expires_in": { "type": ["integer", "null"] },
"application": {
"type": "object",
"properties": {
"uid": { "type": "string" }
}
},
"created_at": { "type": "integer" },
"user": {
"type": "object",
"properties": {
"id": { "type": "integer" }
}
}
}
}
}
}
},
"400": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"401": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"404": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"409": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"429": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
}
},
"/oauth/revoke": {
"post": {
"tags": ["OAuth"],
"summary": "Revoke access token",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["client_id", "client_secret", "token"],
"properties": {
"client_id": { "type": "string" },
"client_secret": { "type": "string" },
"token": { "type": "string" }
}
}
}
}
},
"responses": {
"200": {
"description": "Token revoked",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"401": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"404": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"409": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
},
"429": {
"content": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
}
}
}
}