Extra data attached to the auth context by the consumer.
Populated via the onAuthenticated hook, this allows consumers to map OAuth clientId/scopes to their own user model, permissions, or any additional data needed in tool handlers.
onAuthenticated
clientId
scopes
auth: { onAuthenticated: async (authInfo) => ({ userId: await resolveUser(authInfo.clientId), role: 'admin', permissions: ['read', 'write', 'deploy'], }),} Copy
auth: { onAuthenticated: async (authInfo) => ({ userId: await resolveUser(authInfo.clientId), role: 'admin', permissions: ['read', 'write', 'deploy'], }),}
Extra data attached to the auth context by the consumer.
Populated via the
onAuthenticatedhook, this allows consumers to map OAuthclientId/scopesto their own user model, permissions, or any additional data needed in tool handlers.