Skip to main content
Glama
21st-dev

Magic Component Platform (MCP)

by 21st-dev
git-operations.ts329 B
import { exec } from "child_process"; import { promisify } from "util"; const execAsync = promisify(exec); /** * Execute a git command in the specified directory */ export async function git(cwd: string, args: string): Promise<string> { const { stdout } = await execAsync(`git ${args}`, { cwd }); return stdout.trim(); }

Latest Blog Posts

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/21st-dev/magic-mcp'

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