Skip to main content
Glama

Magic CLI

One command line and MCP server for Magic Spells' hosted services: magic. Usage, commands, environment and exit codes: packages/cli/README.md (the npm page).

npx -y magic-spells --help
claude mcp add magic -- npx -y magic-spells mcp

Develop

Node 24 (nvm use). npm workspaces: packages/cli (the magic shell, the only published package), packages/kit (the shared core), packages/pyramid (the Pyramid product).

npm install
npm run build          # tsc -b across the workspaces
npm run typecheck      # sources and tests
npm test               # vitest, one project per package
npm run smoke:pack     # pack, install the tarball in an empty dir, run it
node packages/cli/bin/magic.js --help

Publishing happens only in GitHub Actions on a v* tag (.github/workflows/release.yml): prepack bundles the private workspace packages into packages/cli/dist with esbuild, and third-party packages stay external as magic-spells's dependencies.

MIT licensed.

Related MCP Connectors

Related MCP Servers