Skip to main content
Glama
simple-setup.js685 B
import { vi } from 'vitest'; // Suppress console.error during tests const originalConsoleError = console.error; console.error = vi.fn(); // Mock file system operations that might not be available in test environment vi.mock('fs', async () => { const actual = await vi.importActual('fs'); return { ...actual, existsSync: vi.fn().mockReturnValue(true), // Default to file exists }; }); vi.mock('fs/promises', async () => { const actual = await vi.importActual('fs/promises'); return { ...actual, stat: vi.fn().mockResolvedValue({ size: 1000, mtime: new Date() }), }; }); // Clean up after tests afterAll(() => { console.error = originalConsoleError; });

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/lapfelix/XcodeMCP'

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