Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A KaireonAI instance (or the playground)
- An API key (from Settings > API Explorer)
- Your tenant ID
- Node.js 22+ installed
Step 1: Clone and Install
Step 2: Configure Your IDE
All four IDE configurations below invoke the same MCP server entry point. The recommended invocation isnpm run mcp from inside the cloned platform/ directory — it resolves the entry script for you so the configuration does not need to hard-code a source-tree path.
- Claude Code
- Cursor
- VS Code
- npm Script
.claude/settings.json):Step 3: Your First Queries
Try these natural language commands in your AI IDE:Explore your setup
Create entities
Analyze and simulate
V2 Pipeline operations
Step 4: Build a Complete Setup
Here’s a full workflow you can give to your AI IDE:Troubleshooting
”KAIREON_API_KEY environment variable is required”
Make sure the environment variables are set in your IDE’s MCP configuration, not just your shell. Each IDE reads env vars from its own config file.”API error: 401”
Your API key is invalid or expired. Generate a new one from Settings > API Explorer in the KaireonAI UI.”API error: 403”
Your API key doesn’t have permission for that operation. Check the role assigned to the key in Settings.”Flow is not V2”
The Decision Flow you’re trying to modify uses the legacy (V1) config format. UsecreateV2DecisionFlow to create a new V2 flow, or manually set draftConfig.version = 2 in the UI canvas editor.
Server won’t start
Ensure you have Node.js 22+ and have runnpm install in the platform directory. The MCP server requires the @modelcontextprotocol/sdk and zod packages.
Available Tools
The MCP server exposes 105 tools organized by category:| Category | Count | Examples |
|---|---|---|
| Data Read/Write | 11 | listSchemas, createSchema, addSchemaField |
| Studio Read/Write | 17 | listOffers, createOffer, createDecisionFlow |
| V2 Pipeline | 9 | listV2NodeTypes, createV2DecisionFlow, addV2PipelineNode |
| Algorithm & Model | 8 | trainModel, addPredictor, createExperiment |
| Behavioral Metrics | 5 | createBehavioralMetric, computeMetricNow, createMetricRule |
| Content & CMS | 10 | generateCreativeCopy, createContentItem, syncContentSource |
| Decisioning | 2 | recommend, recordOutcome |
| Intelligence | 15 | explainDecision, analyzeModelHealth, simulateRuleChange |
| Customer & Journey | 7 | getCustomerProfile, listJourneys, listInteractions |
| Administration | 9 | getTenantSettings, listAuditLogs, listApprovalRequests |
| Docs | 1 | searchDocs |
Next Steps
MCP Server Reference
See all 105 tools with parameter documentation.
AI Workflows
Learn common AI-assisted workflows.
AI Assistant
Use the built-in AI assistant in the KaireonAI UI.
Composable Pipeline
Learn about the V2 pipeline architecture.