client.mcpSessions manages the revocable credentials accepted by the Naive MCP server.
create(input) calls POST /v1/mcp_sessions. A signed-in person sends name alone to connect their own agent. Otherwise name, at least one scope, and at least one
allowed_tool are required, with admin. identity_id is optional and is a label only (not enforced yet). expires_in_seconds defaults to one day, or 90 days for a connected agent.
The returned secret is available only on this response.
list(query?)callsGET /v1/mcp_sessionsand acceptslimitandafter.get(id)callsGET /v1/mcp_sessions/{id}.revoke(id)callsDELETE /v1/mcp_sessions/{id}and takes effect on the next authenticated call.
prefix, never the bearer or its stored digest. See
MCP sessions for the complete authorization contract.