Skip to main content

Quick Start

Go from zero to a working FrootAI environment in under 5 minutes.

Prerequisites​

  • Node.js 18+ β€” nodejs.org (22+ recommended)
  • Git β€” git-scm.com
  • An AI-capable editor: VS Code with GitHub Copilot, Cursor, or Claude Desktop

Step 1 β€” Install FrootAI​

# MCP Server β€” add AI tooling to any MCP-compatible agent
npx frootai-mcp@latest

# SDK β€” programmatic API for Node.js / TypeScript
npm install frootai

Step 2 β€” Configure Your AI Agent​

Add FrootAI as an MCP server in your editor's config:

mcp.json (VS Code / Claude Desktop / Cursor)
{
"mcpServers": {
"frootai": {
"command": "npx",
"args": ["frootai-mcp@latest"]
}
}
}
tip

This works with GitHub Copilot, Claude Desktop, Cursor, Windsurf, Azure AI Foundry, and any MCP-compatible client.

Step 3 β€” Init a Solution Play​

Scaffold a complete DevKit for Enterprise RAG (Play 01):

npx frootai init-devkit 01

This generates the full play structure:

solution-plays/01-enterprise-rag/
β”œβ”€β”€ .github/ # DevKit: Copilot brain
β”‚ β”œβ”€β”€ copilot-instructions.md # Always-on context
β”‚ β”œβ”€β”€ agents/ # builder, reviewer, tuner
β”‚ β”œβ”€β”€ instructions/ # Coding standards
β”‚ β”œβ”€β”€ skills/ # Step-by-step procedures
β”‚ └── hooks/ # Security guardrails
β”œβ”€β”€ config/ # TuneKit: AI parameters
β”‚ β”œβ”€β”€ openai.json # Model + temperature
β”‚ └── guardrails.json # Quality thresholds
β”œβ”€β”€ infra/ # Azure Bicep templates
β”œβ”€β”€ spec/ # Architecture decisions
└── fai-manifest.json # FAI Protocol wiring

Step 4 β€” Run Your First Evaluation​

Validate that all primitives are correctly wired:

# Validate schemas, naming, and frontmatter
npm run validate:primitives

# Load the play in the FAI Engine
node engine/index.js solution-plays/01-enterprise-rag/fai-manifest.json --status

Expected output:

🍊 FAI Engine v0.1
══════════════════════════════════════════════════
Play: 01-enterprise-rag v1.0.0
Knowledge: 2 FROOT modules
WAF: 3 pillars enforced
Guardrails: groundednessβ‰₯0.95, safetyβ‰₯0.99
βœ… All primitives wired, context resolved
══════════════════════════════════════════════════

Step 5 β€” Explore with the SDK​

import { FrootAI } from 'frootai';

const fai = new FrootAI();

// Search across all knowledge modules
const results = fai.search('RAG architecture');

// Get play details
const play = fai.plays.get('01');
console.log(play.title); // "Enterprise RAG Q&A"

// Run evaluation quality gates
fai.evaluation.run({
groundedness: 0.95,
relevance: 0.88,
safety: 1.0
});
info

The SDK works offline with zero external dependencies β€” all knowledge is bundled.

What's Next?​