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 a mcpn.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
    

    or
    npx 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 from mcpn.config.mjs.

Examples

  1. Initialize in my-project:
    npx mcpn init --dir my-project
    
  2. Add a built-in preset:
    npx mcpn add coding
    
  3. Add from a giget source:
    npx mcpn add github:username/presets/coding
    

For more advanced usage, see the Workflows