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:
| Component | Description | Location |
|---|---|---|
| Website | Docusaurus-powered knowledge hub + landing pages | website/ |
| MCP Server | 16 tools exposing AI knowledge to any MCP-compatible agent | mcp-server/ |
| VS Code Extension | 13 commands, sidebar panels, standalone offline engine | vscode-extension/ |
| Solution Plays | 20 pre-built scenario accelerators with DevKit + TuneKit | solution-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/)โ
| File | Purpose |
|---|---|
openai.json | Model parameters โ temperature, max_tokens, deployment names |
guardrails.json | Content safety limits, blocked topics, rate limits |
routing.json | Agent 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โ
| Variable | Default | Description |
|---|---|---|
FROOTAI_LOG_LEVEL | info | Logging verbosity: debug, info, warn, error |
FROOTAI_CACHE_TTL | 86400 | Cache TTL in seconds (24h) for downloaded knowledge |
FROOTAI_CONFIG_DIR | ./config | Path 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โ
-
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 -
Populate
agent.md(target: 1500โ5000 bytes) with:- Play context and scope
- Behavioral rules
- Tool references
- Error-handling instructions
-
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.mdmust 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:
| Group | Tools | Description |
|---|---|---|
| Static | get_module, list_modules, search_knowledge, lookup_term | Bundled knowledge queries |
| Live | fetch_azure_docs, fetch_external_mcp | Real-time documentation retrieval |
| Chain | agent_build, agent_review, agent_tune | Multi-step agent workflows |
| AI Ecosystem | get_architecture_pattern, get_froot_overview, get_github_agentic_os, list_community_plays | Ecosystem & 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:
| Workflow | Trigger | What it checks |
|---|---|---|
validate-plays.yml | Push to solution-plays/ | Play structure, agent.md size, required files |
build-website.yml | Push to website/ or docs/ | Docusaurus build success, broken links |
test-mcp.yml | Push 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.jsondefines blocked topics and content filters- Agent behaviors are bounded by
agent.mdrules 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โ
| Issue | Cause | Fix |
|---|---|---|
| MCP server not found | npm not in PATH | Run npm config get prefix and add to PATH |
| Extension commands missing | Extension not activated | Reload VS Code window (Cmd+Shift+P โ Reload) |
| Website build fails | Missing deps or broken links | Run npm install then check onBrokenLinks in config |
| Play validation fails | Missing required files | Check README.md, agent.md, copilot-instructions.md exist |
| Stale knowledge | Cached data expired | Delete 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โ
- GitHub Issues: github.com/gitpavleenbali/frootai/issues
- Discussions: github.com/gitpavleenbali/frootai/discussions
- Changelog: Developer Hub โ Changelog
Next: User Guide ยท Contributor Guide ยท API Reference