Create your first MCP server
Use the current templates correctly and understand what the init command will do.
Choose a template deliberately
For a first project, the best default is usually basic.
It gives you:
- stdio transport
- one example tool
- the smallest generated surface area
Recommended first command
mcpkit init hello-mcp --template basic --package-manager npm --yesWhat happens during generation
From the current init implementation:
- the template name is validated
- the target directory is checked for conflicts
- files are written from the template registry
- dependencies are installed automatically in
--yesmode - next steps are printed
Important behavior
In --yes mode, the command exits with an error if:
- you omit the project name
- you omit
--template
If scaffolding fails, the partially created directory is removed.