init
Create a new MCP server project from one of the current templates.
Purpose
mcpkit init scaffolds a new project directory from one of the four templates.
Basic syntax
mcpkit init [name]Verified options
-t, --template <template>-p, --package-manager <pm>default:bun-y, --yes
Valid template names are:
basichttpauthfull
Examples
Interactive
mcpkit initNon-interactive
mcpkit init my-server --template basic --package-manager npm --yesExpected behavior
- interactive mode requires a TTY
- non-interactive mode requires both a project name and
--template --yesinstalls dependencies automatically- template names are validated before scaffolding starts
- if generation fails after directory creation, the directory is removed
Important caveat
In interactive mode, --package-manager does not skip the package-manager prompt. The implementation still prompts for package-manager choice.