delete-room-subscription-settings
Remove subscription settings from a Liveblocks room to manage user notifications and access permissions.
Instructions
Delete a Liveblocks room's subscription settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| userId | Yes |
Implementation Reference
- src/server.ts:623-638 (registration)Registration of the MCP tool 'delete-room-subscription-settings', including inline Zod schema for input parameters (roomId, userId) and the handler function that invokes the Liveblocks API via getLiveblocks().deleteRoomSubscriptionSettings wrapped in callLiveblocksApi.server.tool( "delete-room-subscription-settings", `Delete a Liveblocks room's subscription settings`, { roomId: z.string(), userId: z.string(), }, async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); } );
- src/server.ts:626-629 (schema)Zod schema defining input parameters for the tool: roomId and userId as strings.{ roomId: z.string(), userId: z.string(), },
- src/server.ts:630-637 (handler)Handler function for the tool that calls the Liveblocks client to delete room subscription settings for a user, passing roomId and userId, with abort signal support.async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); }