Skip to main content
Glama
mcollina

GitHub Notifications MCP Server

mark-thread-done

Mark a GitHub notification thread as completed to clear it from your notifications list and manage your GitHub inbox efficiently.

Instructions

Mark a GitHub notification thread as done

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_idYesThe ID of the notification thread to mark as done

Implementation Reference

  • The handler function that executes the tool logic: deletes the notification thread via GitHub API and returns success or formatted error response.
    export async function markThreadDoneHandler(args: z.infer<typeof markThreadDoneSchema>) { try { // Make request to GitHub API await githubDelete(`/notifications/threads/${args.thread_id}`); return { content: [{ type: "text", text: `Successfully marked thread ${args.thread_id} as done.` }] }; } catch (error) { return { isError: true, content: [{ type: "text", text: formatError(`Failed to mark thread ${args.thread_id} as done`, error) }] }; } }
  • Zod schema defining the input parameter: thread_id (string).
    export const markThreadDoneSchema = z.object({ thread_id: z.string().describe("The ID of the notification thread to mark as done") });
  • Registration function that calls server.tool() to register the 'mark-thread-done' tool with its name, description, schema, and handler.
    export function registerMarkThreadDoneTool(server: any) { server.tool( "mark-thread-done", "Mark a GitHub notification thread as done", markThreadDoneSchema.shape, markThreadDoneHandler ); }
  • src/server.ts:42-42 (registration)
    Invocation of the tool registration function during server startup.
    registerMarkThreadDoneTool(server);

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/mcollina/mcp-github-notifications'

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