Skip to main content
Glama
logger.ts827 B
// agents/src/__mocks__/logger.ts // Create a simple mock object that mimics the logger interface // Provide no-op functions for all logging levels const mockLogger = { level: 'info', // Default level, can be adjusted if needed for specific tests debug: jest.fn(), info: jest.fn(), warn: jest.fn(), error: jest.fn(), // Add other methods used by the logger if necessary (e.g., silent, transports) silent: false, transports: [], // Mock the exported enable/disable functions as well enableLogging: jest.fn(), disableLogging: jest.fn(), }; // Export the mock logger as the default export export default mockLogger; // Also export the mocked enable/disable functions if they are used directly export const enableLogging = mockLogger.enableLogging; export const disableLogging = mockLogger.disableLogging;

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/KasarLabs/snak'

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