Skip to main content
Glama

mcp-server-commands

by g0t4
fish-spawn.cjs493 B
const { spawn } = require('child_process'); const script = ` echo "Hello from Fish shell!" set greeting "Hello, Node.js!" echo $greeting `; const child = spawn('fish', [], { stdio: ['pipe', 'inherit', 'inherit'] // Use 'pipe' for stdin, 'inherit' to show output in the console }); // Write the script to stdin child.stdin.write(script); // Close stdin to signal end of input child.stdin.end(); 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