Skip to main content
Glama
README.md
# Magic CLI

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

```sh
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).

```sh
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.