get-thread-subscriptions
Retrieve subscription details for a specific thread in a Liveblocks room to monitor user notifications and engagement.
Instructions
Get a Liveblocks thread's subscriptions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:442-449 (handler)The handler function for the 'get-thread-subscriptions' tool. It calls the Liveblocks API's getThreadSubscriptions method wrapped in callLiveblocksApi.async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadSubscriptions( { roomId, threadId }, { signal: extra.signal } ) ); }
- src/server.ts:438-441 (schema)Input schema defining parameters: roomId (string) and threadId (string).{ roomId: z.string(), threadId: z.string(), },
- src/server.ts:435-450 (registration)Registration of the 'get-thread-subscriptions' tool using McpServer.tool, including name, description, input schema, and inline handler.server.tool( "get-thread-subscriptions", "Get a Liveblocks thread's subscriptions", { roomId: z.string(), threadId: z.string(), }, async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadSubscriptions( { roomId, threadId }, { signal: extra.signal } ) ); } );