Skip to main content
Glama
setup.ts366 B
import { vi } from 'vitest'; // Global test setup beforeEach(() => { // Mock environment variables for all tests process.env.OPENROUTER_API_KEY = 'test-api-key'; process.env.OPENROUTER_MODEL = 'anthropic/claude-3.5-sonnet'; // Don't set LOG_LEVEL globally to allow tests to control it }); // Global test teardown afterEach(() => { vi.clearAllMocks(); });

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/JonathanJude/openrouter-image-mcp'

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