Skip to main content

FrootAI Admin Guide

Platform administration for FrootAI โ€” installation, configuration, monitoring, and troubleshooting.


1. Platform Overviewโ€‹

FrootAI is a Build It Yourself (BIY) AI kit consisting of four main components:

ComponentDescriptionLocation
WebsiteDocusaurus-powered knowledge hub + landing pageswebsite/
MCP Server16 tools exposing AI knowledge to any MCP-compatible agentmcp-server/
VS Code Extension13 commands, sidebar panels, standalone offline enginevscode-extension/
Solution Plays20 pre-built scenario accelerators with DevKit + TuneKitsolution-plays/

All components share:

  • The docs/ folder (18 knowledge modules in the FROOT framework)
  • The config/ folder (guardrails, models, routing parameters)
  • The .github/ Agentic OS scaffolding (agent, copilot, CI files)

2. Installationโ€‹

2.1 Websiteโ€‹

# Prerequisites: Node.js 18+
cd website
npm install
npx docusaurus build # production build โ†’ website/build/
npx docusaurus start # dev server on localhost:3000

Deploy to GitHub Pages:

GIT_USER=<github-username> npx docusaurus deploy

The site is configured with baseUrl: /frootai/ in docusaurus.config.ts.

2.2 MCP Serverโ€‹

# Option A: npm (recommended โ€” zero clone)
npm install -g frootai-mcp
frootai-mcp

# Option B: npx (no install)
npx frootai-mcp

# Option C: from source
cd mcp-server
npm install
node src/index.js

The MCP server runs on stdio by default. Clients configure it via their MCP config (e.g., .vscode/mcp.json).

2.3 VS Code Extensionโ€‹

# From Marketplace
code --install-extension pavleenbali.frootai

# From source (development)
cd vscode-extension
npm install
npm run compile
# Press F5 in VS Code to launch Extension Development Host

3. Configurationโ€‹

3.1 MCP Client Config (.vscode/mcp.json)โ€‹

{
"servers": {
"frootai": {
"command": "npx",
"args": ["frootai-mcp"],
"env": {}
}
}
}

3.2 Config Files (config/)โ€‹

FilePurpose
openai.jsonModel parameters โ€” temperature, max_tokens, deployment names
guardrails.jsonContent safety limits, blocked topics, rate limits
routing.jsonAgent routing rules โ€” which play for which scenario

All config files are read at startup. Changes require a restart of the relevant component.

3.3 Environment Variablesโ€‹

VariableDefaultDescription
FROOTAI_LOG_LEVELinfoLogging verbosity: debug, info, warn, error
FROOTAI_CACHE_TTL86400Cache TTL in seconds (24h) for downloaded knowledge
FROOTAI_CONFIG_DIR./configPath to config files

Security: FrootAI uses Managed Identity by design. No API keys are stored in config. See Security.


4. Solution Play Managementโ€‹

4.1 Adding a New Playโ€‹

  1. Create solution-plays/<NN>-<slug>/ with the required structure:

    solution-plays/21-new-play/
    โ”œโ”€โ”€ .github/
    โ”‚ โ”œโ”€โ”€ agent.md # Agent behavior rules
    โ”‚ โ”œโ”€โ”€ copilot-instructions.md
    โ”‚ โ””โ”€โ”€ prompts/
    โ”‚ โ””โ”€โ”€ init.prompt.md
    โ”œโ”€โ”€ config/
    โ”‚ โ””โ”€โ”€ agents.json
    โ”œโ”€โ”€ evaluation/
    โ”‚ โ”œโ”€โ”€ evaluate.py
    โ”‚ โ””โ”€โ”€ golden-set.jsonl
    โ””โ”€โ”€ README.md
  2. Populate agent.md (target: 1500โ€“5000 bytes) with:

    • Play context and scope
    • Behavioral rules
    • Tool references
    • Error-handling instructions
  3. Run validation:

    # CI will catch issues, but you can validate locally:
    python scripts/validate-plays.py

4.2 Quality Standardsโ€‹

  • Every play must have: README.md, agent.md, copilot-instructions.md
  • agent.md must be 1500โ€“5000 bytes
  • At least one config file in config/
  • Evaluation set with 5+ golden examples

5. MCP Server Administrationโ€‹

5.1 Health Checkโ€‹

# Verify the server starts and lists tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx frootai-mcp

5.2 Tool Inventoryโ€‹

The MCP server exposes 16 tools in four groups:

GroupToolsDescription
Staticget_module, list_modules, search_knowledge, lookup_termBundled knowledge queries
Livefetch_azure_docs, fetch_external_mcpReal-time documentation retrieval
Chainagent_build, agent_review, agent_tuneMulti-step agent workflows
AI Ecosystemget_architecture_pattern, get_froot_overview, get_github_agentic_os, list_community_playsEcosystem & pattern tools

5.3 Upgradingโ€‹

# npm global install
npm update -g frootai-mcp

# Verify version
npx frootai-mcp --version

6. Monitoringโ€‹

6.1 CI Pipelineโ€‹

The repository uses GitHub Actions for continuous validation:

WorkflowTriggerWhat it checks
validate-plays.ymlPush to solution-plays/Play structure, agent.md size, required files
build-website.ymlPush to website/ or docs/Docusaurus build success, broken links
test-mcp.ymlPush to mcp-server/Tool registration, response schema

6.2 Build Statusโ€‹

Monitor at: https://github.com/gitpavleenbali/frootai/actions

6.3 Website Deploy Healthโ€‹

After deploy, verify:

  • Homepage loads: https://frootai.dev
  • Docs render: https://frootai.dev/docs/
  • No console errors in browser DevTools

7. Securityโ€‹

7.1 Managed Identityโ€‹

FrootAI follows the no API keys principle:

  • All Azure service access uses Managed Identity or DefaultAzureCredential
  • Config files contain no secrets โ€” only model names, limits, and routing rules
  • The MCP server is a local stdio process โ€” no network ports exposed

7.2 Content Safetyโ€‹

  • guardrails.json defines blocked topics and content filters
  • Agent behaviors are bounded by agent.md rules in each play
  • Evaluation sets validate that responses stay within safety guidelines

7.3 RBACโ€‹

  • GitHub repository uses branch protection on main
  • CI must pass before merge
  • Solution plays require reviewer approval

Deployment Automationโ€‹

One-Command Deploymentโ€‹

Deploy any solution play end-to-end:

./scripts/deploy-play.sh <play-number> --resource-group <rg-name>

Prerequisites: Azure CLI logged in, resource group created, Bicep installed.

Knowledge Managementโ€‹

Rebuild knowledge bundle after updating docs/:

./scripts/rebuild-knowledge.sh          # rebuild only
./scripts/rebuild-knowledge.sh --publish # rebuild + npm publish

Skill Exportโ€‹

Export FROOT modules as GitHub Copilot skills:

./scripts/export-skills.sh --all

azd Integrationโ€‹

FrootAI supports Azure Developer CLI:

azd up  # deploys using azure.yaml configuration

8. Troubleshootingโ€‹

8.1 Common Issuesโ€‹

IssueCauseFix
MCP server not foundnpm not in PATHRun npm config get prefix and add to PATH
Extension commands missingExtension not activatedReload VS Code window (Cmd+Shift+P โ†’ Reload)
Website build failsMissing deps or broken linksRun npm install then check onBrokenLinks in config
Play validation failsMissing required filesCheck README.md, agent.md, copilot-instructions.md exist
Stale knowledgeCached data expiredDelete globalStorage/frootai/ cache folder

8.2 Logsโ€‹

# MCP server debug logging
FROOTAI_LOG_LEVEL=debug npx frootai-mcp

# VS Code extension logs
# Output panel โ†’ select "FrootAI" from dropdown

# Website build verbose
npx docusaurus build --verbose

8.3 Getting Helpโ€‹


Next: User Guide ยท Contributor Guide ยท API Reference