Skip to main content

⚑ FrootAI CLI

Scaffold projects, search knowledge, estimate costs, and validate configs β€” all from the terminal.
Ships with the MCP Server package. No extra install needed.

No install needed β€” runs via npx

npx frootai <command>

Or if you've installed frootai-mcp globally: just frootai <command>

πŸ“‹ Commands

πŸš€ frootai init

Interactive project scaffolding. 3 questions β†’ complete FrootAI project.

$ npx frootai init

  🌳 FrootAIβ„’ CLI v3.1.2
  From the Roots to the Fruits

  Let's set up your FrootAI-powered project!

  What are you building?
  1) Enterprise RAG (document Q&A, knowledge base)
  2) AI Agent (multi-step reasoning, tool calling)
  3) AI Gateway (API management, cost control)
  4) Content Moderation (safety, compliance)
  5) Multi-modal (vision, document intelligence)
  6) Custom (pick from 20 solution plays)

  Choose [1-6]: 1

  Target scale?
  1) dev   β€” Local development, minimal cost
  2) prod  β€” Production, high availability

  Choose [1-2]: 1

  Project name [my-ai-project]: my-rag-app

What gets created

my-rag-app/
β”œβ”€β”€ .vscode/mcp.json          ← MCP server auto-connects in VS Code
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ agents/               ← Builder, Reviewer, Tuner agent definitions
β”‚   β”œβ”€β”€ copilot-instructions.md
β”‚   └── instructions/
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ openai.json           ← Model, temperature, max_tokens
β”‚   β”œβ”€β”€ search.json           ← Azure AI Search settings
β”‚   └── guardrails.json       ← Safety + PII + grounding rules
β”œβ”€β”€ evaluation/
β”‚   └── eval-config.json      ← Groundedness, relevance thresholds
β”œβ”€β”€ infra/                    ← Infrastructure templates
└── README.md

Then: cd my-rag-app && code . β€” FrootAI MCP auto-connects, agents are ready.

πŸ“ frootai scaffold <play>

One-command play scaffold. Creates all 5 FROOT kits + froot.json manifest.

$ npx frootai scaffold 01-enterprise-rag
# or shorthand:
$ npx frootai scaffold play-01

  🌳 FrootAIβ„’ CLI v3.1.2

  Scaffolding play: 01-enterprise-rag

  βœ… Play scaffolded: 01-enterprise-rag

  Files created:
  .vscode/mcp.json             ← MCP auto-connect
  .github/agents/              ← Builder + Reviewer + Tuner
  .github/instructions/        ← 5 WAF instruction files
  config/                      ← OpenAI + Search + Guardrails
  evaluation/                  ← Eval config + thresholds
  spec/play-spec.json          ← SpecKit (WAF alignment)
  froot.json                   ← Play manifest (5 kits)

Auto-detects existing projects and merges files. Includes froot.json manifest linking all 5 kits.

πŸ” frootai search <query>

Search the FrootAI knowledge base (16 FROOT modules) from the terminal.

$ npx frootai search "RAG architecture"

  Searching: "RAG architecture"

  Found 3 result(s):

  πŸ“– R2 β€” RAG Architecture & Retrieval
     Layer: Reasoning
  πŸ“– O4 β€” Azure AI Platform & Landing Zones
     Layer: Orchestration
  πŸ“– T3 β€” Production Architecture Patterns
     Layer: Transformation

πŸ’° frootai cost [play] --scale <dev|prod>

Estimate Azure infrastructure costs for any solution play at dev or prod scale.

$ npx frootai cost enterprise-rag --scale prod

  Cost Estimate: enterprise-rag (prod)

  Service                        | Cost
  ───────────────────────────────┼─────────────────────────
  AI Search                      | $250/mo (S1)
  OpenAI (GPT-4o)                | ~$150/mo (moderate)
  App Service                    | $55/mo (B1)
  Storage                        | $0.02/GB/mo
  Cosmos DB                      | $25/mo (400 RU/s)
  Total estimate                 | ~$500-800/mo

βœ… frootai validate

Check that your project has the right structure, configs, and MCP setup.

$ npx frootai validate

  βœ… MCP config β€” .vscode/mcp.json
  βœ… Copilot instructions β€” .github/copilot-instructions.md
  βœ… Builder agent β€” .github/agents/builder.agent.md
  βœ… Reviewer agent β€” .github/agents/reviewer.agent.md
  βœ… Tuner agent β€” .github/agents/tuner.agent.md
  βœ… OpenAI config β€” config/openai.json
  βœ… Guardrails config β€” config/guardrails.json
  βœ… MCP server configured: frootai

  8/8 checks passed

🩺 frootai doctor

Health check for your development environment β€” verifies Node.js, npm, git, VS Code, and MCP connectivity.

$ npx frootai doctor

  βœ… Node.js v22.0.0 (>= 18 required)
  βœ… npm 10.8.0
  βœ… git version 2.45.0
  βœ… VS Code 1.96.0
  βœ… .vscode/mcp.json found
  βœ… .github/agents/ found
  βœ… frootai-mcp available on npm

πŸ“Œ frootai version

$ npx frootai version
frootai-mcp v3.1.2

πŸ”— How It Connects

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  npx frootai init                            β”‚
β”‚  β”œβ”€β”€ Scaffolds project structure             β”‚
β”‚  β”œβ”€β”€ Creates .vscode/mcp.json               β”‚
β”‚  β”œβ”€β”€ Creates .github/agents/ (3 agents)      β”‚
β”‚  └── Creates config/ (3 config files)        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  code .                                      β”‚
β”‚  └── VS Code reads .vscode/mcp.json         β”‚
β”‚      └── Auto-starts frootai-mcp server      β”‚
β”‚          └── 22 tools available to Copilot   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  @builder / @reviewer / @tuner               β”‚
β”‚  └── Copilot agents use MCP tools            β”‚
β”‚      └── Architecture patterns, cost est,    β”‚
β”‚          config validation, play search      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“Ž Related

πŸ“¦ Setup GuideπŸ”Œ 22 MCP Tools🎯 Solution Plays