@dwizi/create-dzx
v0.1.12
Published
Scaffold a new dzx MCP server project.
Readme
@dwizi/create-dzx
Scaffold a new dzx MCP server project.
If you are new to MCP, think of it as a standard JSON-RPC protocol for exposing tools, resources, and prompts. @dwizi/create-dzx sets up a working repo so you can start building immediately.
Usage
npx @dwizi/create-dzx@latestOr with options:
npx @dwizi/create-dzx@latest my-agent --template basic --runtime nodeWhat it creates
Depending on the template, the scaffold includes:
mcp.jsonsrc/server.ts(runtime entrypoint)tools/with a sample toolresources/andprompts/(for templates that include content)- Package scripts for
dev,inspect, andbuild
Options
--dir <path>- Target directory (default:my-agent)--template <basic|tools-only|full>- Template to scaffold--runtime <node|deno>- Runtime to configure--install- Install dependencies after scaffolding--no-install- Skip dependency installation--yes- Accept defaults--force- Overwrite existing files
Templates
- basic - Tools + resources + prompts (recommended)
- tools-only - Minimal template with tools only
- full - Full-featured template with all features
Package manager detection
create-dzx automatically detects your package manager by checking for lockfiles:
pnpm-lock.yaml→ pnpmpackage-lock.json→ npmyarn.lock→ yarnbun.lockb→ bun
If no lockfile is found, it defaults to pnpm.
Related
- The same scaffolding flow is available via
dzx initinside an existing folder. - dzx docs:
packages/dzx/docsand the public docs site.
