Skip to main content
Glama

Claude Code MCP

by auchenberg
bash.ts722 B
import { exec } from 'child_process'; import { promisify } from 'util'; const execPromise = promisify(exec); /** * Execute a shell command and return the output * @param command The shell command to execute * @param timeout Optional timeout in milliseconds * @returns The command output (stdout) */ export async function executeCommand(command: string, timeout?: number): Promise<string> { try { const options = timeout ? { timeout } : {}; const { stdout, stderr } = await execPromise(command, options); if (stderr) { console.error(`Command stderr: ${stderr}`); } return stdout; } catch (error) { console.error(`Error executing command: ${command}`, error); throw error; } }

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/auchenberg/claude-code-mcp'

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