Provides the public bootstrap command for creating a deco MCP application.
| Attribute | Value |
|---|---|
| Workspace | create-deco (packages/create-deco) |
| Kind | CLI bootstrapper |
| Runtime | Node.js 22+ or Bun |
| Distribution | Public npm package |
create-deco is the package behind npm create deco and bun create deco.
It forwards the requested project directory to decocms init, which clones the
decocms/mcp-app template and installs its dependencies.
- Expose the
create-decoexecutable. - Require a project-directory argument.
- Select
bunxwhen running under Bun andnpxotherwise. - Forward standard input, output, errors, working directory, and exit status to
the
decocmsCLI.
Create a project with Bun:
bun create deco my-mcp-appOr use npm:
npm create deco my-mcp-appThe package has no JavaScript import API. Its supported public surface is the
create-deco executable declared in package.json.
index.js is a small CommonJS launcher. It reads the first positional argument
as the project name and starts either:
bunx decocms init <project-name>
or:
npx decocms init <project-name>
The decocms CLI owns template retrieval, empty-directory validation, and
dependency installation.
Run a manual smoke test from the repository root:
bun run packages/create-deco/index.js my-mcp-appUse a disposable directory because the command creates files and installs dependencies. This package currently has no build, type-check, or automated test script.
Keep this package as a thin compatibility launcher. Template content,
scaffolding policy, dependency installation, and user guidance after creation
belong to the decocms init implementation.
Do not add Studio server logic, web code, or a second implementation of the scaffolding workflow here. Do not document deep imports: this package exposes a binary only.