Skip to main content
Glama
test-config.ts607 B
import { getServerConfig } from '@server/config'; let testConfig: Awaited<ReturnType<typeof getServerConfig>> | undefined; export async function initTestConfig() { // Initialize config if not already done if (!testConfig) { testConfig = await getServerConfig(true); } return testConfig; } export const TEST_CONFIG = { server: { get port() { if (!testConfig) { throw new Error('Port not initialized. Call initTestConfig() first.'); } return testConfig.port; }, host: 'localhost' }, websocket: { origin: 'vscode-test://mcp-tools' } } as const;

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/patelnav/my-tools-mcp'

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