Skip to main content
Glama
liveblocks
by liveblocks

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
NameRequiredDescriptionDefault
roomIdYes
threadIdYes

Implementation Reference

  • 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 } ) ); }
  • 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 } ) ); } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liveblocks/liveblocks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server