Skip to main content
Glama

mcp-server-commands

by g0t4
fish-spawn3.cjs597 B
const { spawn } = require('child_process'); // Original script const script = ` echo "Hello from Fish shell!" set greeting "Hello, \"Node.js!\"" echo $greeting `; // Encode the script in Base64 const base64Script = Buffer.from(script).toString('base64'); // Use echo to pipe the Base64 script into Fish, decode, and execute const child = spawn('sh', [ '-c', `echo "${base64Script}" | base64 --decode | fish` ], { stdio: ['inherit', 'inherit', 'inherit'], // Inherit all standard streams }); child.on('close', (code) => { console.log(`Fish shell exited with code ${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/g0t4/mcp-server-commands'

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