Skip to main content
Glama

firewalla-mcp-server

index.test.ts1.12 kB
import { setupPrompts } from '../../src/prompts/index'; import { FirewallaClient } from '../../src/firewalla/client'; // Mock the FirewallaClient jest.mock('../../src/firewalla/client'); const MockedFirewallaClient = FirewallaClient as jest.MockedClass<typeof FirewallaClient>; // Mock Server to capture handler registration const mockSetRequestHandler = jest.fn(); const mockServer = { setRequestHandler: mockSetRequestHandler, } as any; describe('MCP Prompts Setup', () => { let mockFirewalla: jest.Mocked<FirewallaClient>; beforeEach(() => { jest.clearAllMocks(); mockFirewalla = new MockedFirewallaClient({} as any) as jest.Mocked<FirewallaClient>; }); it('should register GetPromptRequestSchema handler', () => { setupPrompts(mockServer, mockFirewalla); expect(mockSetRequestHandler).toHaveBeenCalledTimes(1); expect(mockSetRequestHandler).toHaveBeenCalledWith( expect.any(Object), expect.any(Function) ); }); it('should be defined and exportable', () => { expect(setupPrompts).toBeDefined(); expect(typeof setupPrompts).toBe('function'); }); });

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/amittell/firewalla-mcp-server'

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