get-notification-settings
Retrieve user notification preferences for Liveblocks collaboration tools to manage alerts and communication settings.
Instructions
Get a Liveblocks notification settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes |
Implementation Reference
- src/server.ts:764-771 (handler)The handler function that executes the get-notification-settings tool by calling the Liveblocks API to retrieve notification settings for the given userId.async ({ userId }, extra) => { return await callLiveblocksApi( getLiveblocks().getNotificationSettings( { userId }, { signal: extra.signal } ) ); }
- src/server.ts:761-763 (schema)Input schema for the get-notification-settings tool, requiring a userId string.{ userId: z.string(), },
- src/server.ts:758-772 (registration)Registration of the get-notification-settings tool using McpServer.tool method.server.tool( "get-notification-settings", "Get a Liveblocks notification settings", { userId: z.string(), }, async ({ userId }, extra) => { return await callLiveblocksApi( getLiveblocks().getNotificationSettings( { userId }, { signal: extra.signal } ) ); } );