Skip to content

Agent Setup Guide ​

This guide explains how to set up AI coding agents to work with the workflows server.

Core Concepts ​

Every AI coding agent needs two things to work with the workflows server:

1. System Prompt ​

Instructions that tell the agent how to use the MCP tools. The system prompt teaches the agent to:

  • Call whats_next() after each user interaction
  • Follow the workflow phases (explore, plan, code, commit, etc.)
  • Update the plan file to maintain project memory
  • Request phase transitions when appropriate

2. MCP Server Connection ​

A connection to the workflows server that provides the actual tools:

json
{
  "mcpServers": {
    "workflows": {
      "command": "npx",
      "args": ["-y", "@codemcp/workflows-server"]
    }
  }
}

Setup via CLI ​

The CLI generates both the system prompt and MCP configuration for your agent:

bash
npx @codemcp/workflows setup <target> [--mode config|skill]

Modes ​

ModeDescription
configEmbeds system prompt in agent configuration files (traditional approach)
skillCreates agentskills.io compatible skill files (on-demand loading)

Targets ​

TargetAliasesDescription
kirokiro-cliKiro / Kiro CLI
claudeclaude-code, claude-desktopClaude Code
geminigemini-cliGemini CLI
opencode-OpenCode CLI
copilotcopilot-vscode, vscode, github-copilotGitHub Copilot

Examples ​

bash
# Config mode - embeds system prompt (default)
npx @codemcp/workflows setup claude
npx @codemcp/workflows setup kiro

# Skill mode - on-demand loading
npx @codemcp/workflows setup copilot --mode skill
npx @codemcp/workflows setup gemini --mode skill

Next Steps ​