Getting Started
CLI
Overview of MCPN CLI usage
MCPN CLI
The MCPN CLI provides commands to manage your AI-driven workflows in a standardized manner.
Basic Commands
mcpn init
Initializes MCPN in a project. Creates a.mcp-workflows
directory and amcpn.config.mjs
file if needed.npx mcpn init
Options:--dir <directory>
: Target directory to initialize--ide <cursor|windsurf|cline|rootcode|headless>
: Choose an IDE integration or run headless--force
: Overwrite existing config files
mcpn add <preset>
Adds a built-in preset or a preset from a giget source to.mcp-workflows
.npx mcpn add coding
ornpx mcpn add github:user/repo/path
Options:--force
: Overwrite existing preset file/directory--cwd
: Custom working directory
mcpn config get
Displays the resolved MCPN configuration frommcpn.config.mjs
.
Examples
- Initialize in
my-project
:npx mcpn init --dir my-project
- Add a built-in preset:
npx mcpn add coding
- Add from a giget source:
npx mcpn add github:username/presets/coding
For more advanced usage, see the Workflows