Skip to main content
Glama

Claudeus WordPress MCP

by deus-h
inspector-wrapper.ts1.08 kB
#!/usr/bin/env node import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const serverPath = resolve(__dirname, 'index.js'); const nodePath = process.execPath; // Set environment variables for inspector mode process.env.TRANSPORT_TYPE = 'stdio'; process.env.NODE_ENV = process.env.NODE_ENV || 'development'; const child = spawn(nodePath, [serverPath], { stdio: ['pipe', 'pipe', 'inherit'], // Use pipe for stdin/stdout, inherit stderr env: { ...process.env }, shell: false }); // Forward stdin to child process process.stdin.pipe(child.stdin); // Forward child stdout to process stdout child.stdout.pipe(process.stdout); child.on('error', (error) => { console.error('Failed to start child process:', error); process.exit(1); }); child.on('exit', (code) => { process.exit(code ?? 0); }); process.on('SIGTERM', () => { child.kill('SIGTERM'); }); process.on('SIGINT', () => { child.kill('SIGINT'); });

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/deus-h/claudeus-wp-mcp'

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