Skip to main content
Glama

any-chat-completions-mcp

by pyroprompts
cli.ts733 B
#!/usr/bin/env node import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; // Get the directory of the current module const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Path to the main index.js file const serverPath = join(__dirname, 'index.js'); // Spawn the server process const server = spawn('node', [serverPath], { stdio: 'inherit', env: process.env }); // Handle process exit server.on('exit', (code) => { process.exit(code || 0); }); // Handle signals to properly terminate the child process process.on('SIGINT', () => { server.kill('SIGINT'); }); process.on('SIGTERM', () => { server.kill('SIGTERM'); });

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/pyroprompts/any-chat-completions-mcp'

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