Skip to main content
Glama

Github Project Manager

run-example.js688 B
#!/usr/bin/env node /** * This script runs the example file to demonstrate the MCP Eraser Diagram client. */ import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; import { spawn } from 'child_process'; // Get the directory name of the current module const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Path to the example file const examplePath = resolve(__dirname, '../dist/examples/generate-erd.js'); // Run the example const child = spawn('node', [examplePath], { stdio: 'inherit', env: { ...process.env, }, }); // Handle process exit child.on('exit', (code) => { process.exit(code); });

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/Monsoft-Solutions/model-context-protocols'

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