Ai
Generate an MCP access token
Creates (or replaces) the MCP access token. `role` defaults to `operator`. Admin only. The token is returned once.
udon_session<token>
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/ai/mcp/token" \ -H "Content-Type: application/json" \ -d '{}'{ "token": "string", "role": "string"}