Skip to main content
Glama

1MCP Server

global-teardown.ts555 B
/** * Global teardown for E2E tests * Runs after all E2E tests complete */ export async function teardown() { console.log('🧹 Cleaning up E2E test environment...'); // Force garbage collection if available if (global.gc) { global.gc(); } // Clean up any remaining environment variables delete process.env.MCP_DISABLE_CONSOLE; delete process.env.TEST_CLEANUP_TIMEOUT; // Wait a bit for any async cleanup to complete await new Promise((resolve) => setTimeout(resolve, 1000)); console.log('✅ E2E test cleanup complete'); }

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/1mcp-app/agent'

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