Init Command
Scaffold a new Python MCP server and install agent skills.
Bash
nitrostack-py init [name] [options]
name is optional. If omitted, the CLI prompts (default: my-mcp-server).
Options
| Flag | Description |
|---|---|
--template | python-starter | python-pizzaz | python-oauth (prompted if omitted) |
--skip-install | Skip Python (and optional widget npm) dependency install |
--force | Overwrite existing agent skill directories |
--port | MCP HTTP port (default 3000) |
--widget | Widgets preview port (default 3001) |
Templates
| Name | Directory in the SDK | Focus |
|---|---|---|
python-starter | templates/starter/ | Calculator + result widget |
python-pizzaz | templates/pizzaz/ | Pizza shops + list/map/shop widgets |
python-oauth | templates/flight-booking/ | Duffel flights + OAuth 2.1 + OAUTH_SETUP.md |
Each template ships main.py, app_module.py, pyproject.toml, uv.toml, .python-version, .env, requirements.txt, widgets/out/*.html, and health/system_health.py.
Skills
init clones https://github.com/nitrocloudofficial/skills-python-sdk.git into .cursor/skills, .claude/skills, .codex/skills, .gemini/skills, .antigravity/skills, .copilot/skills, .opencode/skills, and .agents/skills. Stamp file: .nitrostack.json.
Example
Bash
nitrostack-py init flights --template python-oauth --port 4000 --widget 4001
cd flights
nitrostack-py dev --port 4000 --widget 4001