Skip to main content
Glama

Backlog MCP Server

markNotificationAsRead.test.ts1.09 kB
import { markNotificationAsReadTool } from './markNotificationAsRead.js'; import { jest, describe, it, expect } from '@jest/globals'; import type { Backlog } from 'backlog-js'; import { createTranslationHelper } from '../createTranslationHelper.js'; describe('markNotificationAsReadTool', () => { const mockBacklog: Partial<Backlog> = { markAsReadNotification: jest .fn<() => Promise<void>>() .mockResolvedValue(undefined), }; const mockTranslationHelper = createTranslationHelper(); const tool = markNotificationAsReadTool( mockBacklog as Backlog, mockTranslationHelper ); it('returns success message as formatted JSON text', async () => { const result = await tool.handler({ id: 123, }); if (Array.isArray(result)) { throw new Error('Unexpected array result'); } expect(result.success).toBe(true); }); it('calls backlog.markAsReadNotification with correct params', async () => { await tool.handler({ id: 123, }); expect(mockBacklog.markAsReadNotification).toHaveBeenCalledWith(123); }); });

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