Skip to content

CLI reference

mcify <command> [options]

Run mcify --help to see this from the binary.

init

Scaffold a new project from a template.

Terminal window
mcify init <name> [--template <name>] [--dir <path>]
FlagDefaultWhat it does
<name>(required)Project name. Becomes package.json’s name and the default directory.
--template <name>from-scratchTemplate to use: from-scratch, from-zod, or example-khipu.
--dir <path>./<name>Override the target directory.

dev

Run the MCP server locally with hot reload + the inspector.

Terminal window
mcify dev [--port <n>] [--inspector-port <n>] [--no-inspector] [--no-watch] [--config <path>]
FlagDefaultWhat it does
--port <n>8888MCP HTTP port.
--inspector-port <n>3001Inspector UI port.
--no-inspectoroffDisable the inspector entirely.
--no-watchoffDisable file-watching restarts.
--config <path>./mcify.config.tsPath to your config.

build

Compile your config + tools into a deployable artifact.

Terminal window
mcify build [--target <node|workers|bun|vercel-edge>] [--out <dir>] [--bundle-deps]
FlagDefaultWhat it does
--targetnodeRuntime target. Picks the right adapter and bundler config.
--out <dir>dist/Output directory.
--bundle-depsoffInline node_modules into the bundle (otherwise externalized).

generate

Two subcommands.

mcify generate (no subcommand)

Emit a typed client SDK from your local config.

Terminal window
mcify generate [--config <path>] [--out <path>]

mcify generate from-openapi

Generate Zod-typed tools from one or more OpenAPI specs. See the from-openapi guide for the full workflow.

Terminal window
mcify generate from-openapi <spec> [--out <dir>]
mcify generate from-openapi --spec <prefix>=<src> [--spec ...] [--out <dir>]
FlagDefaultWhat it does
<spec>URL or file path. Single-spec form.
--spec <prefix>=<src>Repeatable. Each entry is <name>=<url-or-path>.
--out <dir>src/generatedWhere the per-spec files land.

deploy

Terminal window
mcify deploy <target> [options]

Targets: cloudflare (alias workers), vercel, fly, railway, docker.

Per-target flags live in the Deploy guides. Common options:

FlagDefaultWhat it does
--config <path>./mcify.config.tsPath to your config.
--dry-runoffGenerate config + bundle, skip the actual deploy CLI.

Each target also supports its own flags — see the per-target page.