Server Management

Generate User Token

Generate a JWT token for the authenticated user.

Request body should contain: { "requested_scopes": ["scope1", "scope2"], // Optional, defaults to user's current scopes "expires_in_hours": 8, // Optional, defaults to 8 hours "description": "Token for automation" // Optional description }

Returns: Generated JWT token with expiration info

Raises: HTTPException: If request fails or user lacks permissions

post/api/tokens/generate

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Cookies

mcp_gateway_sessionstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 4 revisions of this API.