MCP Server Framework - v1.0.0
    Preparing search index...

    Type Alias AuthenticatedExtra

    AuthenticatedExtra: Record<string, unknown>

    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.

    auth: {
    onAuthenticated: async (authInfo) => ({
    userId: await resolveUser(authInfo.clientId),
    role: 'admin',
    permissions: ['read', 'write', 'deploy'],
    }),
    }