Skip to main content
Glama
wrapper.js556 B
#!/usr/bin/env node import { fileURLToPath } from "url"; import { dirname, join } from "path"; import { spawn } from "child_process"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const packageDir = dirname(__dirname); const buildPath = join(packageDir, "build", "index.js"); // Spawn the actual server with all arguments const serverProcess = spawn("node", [buildPath, ...process.argv.slice(2)], { stdio: "inherit", shell: false, }); serverProcess.on("close", (code) => { process.exit(code || 0); });

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/JamesANZ/medical-mcp'

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