Skip to main content
Glama
liveblocks
by liveblocks

mark-thread-as-unresolved

Mark a Liveblocks thread as unresolved to indicate it requires further attention. Provide roomId, threadId, and user data to update the thread status.

Instructions

Mark a Liveblocks thread as unresolved

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
roomIdYes
threadIdYes

Implementation Reference

  • src/server.ts:358-376 (registration)
    Full registration of the MCP tool 'mark-thread-as-unresolved', including input schema (roomId, threadId, data.userId) and inline handler function that delegates to Liveblocks SDK's markThreadAsUnresolved method via callLiveblocksApi utility.
    server.tool( "mark-thread-as-unresolved", "Mark a Liveblocks thread as unresolved", { roomId: z.string(), threadId: z.string(), data: z.object({ userId: z.string(), }), }, async ({ roomId, threadId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().markThreadAsUnresolved( { roomId, threadId, data }, { signal: extra.signal } ) ); } );
  • The handler function for the tool, which calls the Liveblocks client to mark the thread as unresolved and formats the response using callLiveblocksApi.
    async ({ roomId, threadId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().markThreadAsUnresolved( { roomId, threadId, data }, { signal: extra.signal } ) ); }
  • Input schema for the tool using Zod validation for roomId, threadId, and data containing userId.
    { roomId: z.string(), threadId: z.string(), data: z.object({ userId: z.string(), }), },
  • Utility helper function used by all tools, including this one, to call Liveblocks API promises and format responses as MCP CallToolResult with JSON output or error handling.
    export async function callLiveblocksApi( liveblocksPromise: Promise<any> ): Promise<CallToolResult> { try { const data = await liveblocksPromise; if (!data) { return { content: [{ type: "text", text: "Success. No data returned." }], }; } return { content: [ { type: "text", text: "Here is the data. If the user has no specific questions, return it in a JSON code block", }, { type: "text", text: JSON.stringify(data, null, 2), }, ], }; } catch (err) { return { content: [ { type: "text", text: "" + err, }, ], }; } }

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