get-thread-subscriptions
Retrieve subscription details for a specific thread within a Liveblocks room using the required room and thread IDs.
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' MCP tool. It fetches the subscriptions for a specified thread in a room using the Liveblocks client API, wrapped by callLiveblocksApi for response formatting.async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadSubscriptions( { roomId, threadId }, { signal: extra.signal } ) ); }
- src/server.ts:438-441 (schema)Input schema for the 'get-thread-subscriptions' tool, defining required string parameters for roomId and threadId using Zod validation.{ roomId: z.string(), threadId: z.string(), },
- src/server.ts:435-450 (registration)Registration of the 'get-thread-subscriptions' tool on the McpServer instance, including the tool name, description, input schema, and inline handler function.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 } ) ); } );