Skip to main content
Glama
selftest.tsβ€’650 B
// Minimal selftest entry point with no dependencies if (process.env.SNAPBACK_MCP_SELFTEST === "1") { // Minimal boot to prove process starts without fully serving forever // Write to stderr because many MCP clients sniff stdout for JSON-RPC only. process.stderr.write("SnapBack MCP Server started\n"); // longer delay to allow stdio client to capture output setTimeout(() => process.exit(0), 500).unref(); // Don't exit immediately, let the timeout handle it } else { // If we get here, the selftest env var wasn't set, so we should exit with an error console.error("SNAPBACK_MCP_SELFTEST environment variable not set"); process.exit(1); }

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/snapback-dev/mcp-server'

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