Skip to main content
Glama

Backlog MCP Server

resetUnreadNotificationCount.ts939 B
import { z } from 'zod'; import { Backlog } from 'backlog-js'; import { buildToolSchema, ToolDefinition } from '../types/tool.js'; import { TranslationHelper } from '../createTranslationHelper.js'; import { NotificationCountSchema } from '../types/zod/backlogOutputDefinition.js'; const resetUnreadNotificationCountSchema = buildToolSchema((_t) => ({})); export const resetUnreadNotificationCountTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof resetUnreadNotificationCountSchema>, (typeof NotificationCountSchema)['shape'] > => { return { name: 'reset_unread_notification_count', description: t( 'TOOL_RESET_UNREAD_NOTIFICATION_COUNT_DESCRIPTION', 'Reset unread notification count' ), schema: z.object(resetUnreadNotificationCountSchema(t)), outputSchema: NotificationCountSchema, handler: async () => backlog.resetNotificationsMarkAsRead(), }; };

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/nulab/backlog-mcp-server'

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