@dpesch/mantisbt-mcp-server 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@
12
12
  import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
13
13
  import { MantisClient } from '../../src/client.js';
14
14
  import { registerIssueTools } from '../../src/tools/issues.js';
15
+ import { MetadataCache } from '../../src/cache.js';
15
16
  import { registerNoteTools } from '../../src/tools/notes.js';
16
17
  import { registerFileTools } from '../../src/tools/files.js';
17
18
  import { registerMonitorTools } from '../../src/tools/monitors.js';
@@ -30,7 +31,8 @@ let client: MantisClient;
30
31
  beforeEach(() => {
31
32
  mockServer = new MockMcpServer();
32
33
  client = new MantisClient('https://mantis.example.com', 'test-token');
33
- registerIssueTools(mockServer as never, client);
34
+ const stubCache = { loadIfValid: vi.fn(async () => null) } as unknown as MetadataCache;
35
+ registerIssueTools(mockServer as never, client, stubCache);
34
36
  registerNoteTools(mockServer as never, client);
35
37
  registerFileTools(mockServer as never, client);
36
38
  registerMonitorTools(mockServer as never, client);