Skip to main content

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

Running the MCP server from source applies to Dedicated private cloud and Enterprise on-prem deployments, where you have repository access under your commercial license. On Playground or Cloud, skip straight to the hosted MCP endpoint below — no local install required.

Step 2: Configure Your IDE

All four IDE configurations below invoke the same MCP server entry point. The recommended invocation is npm 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.
Set environment variables in your Claude settings (.claude/settings.json):
Replace /path/to/kaireonai/platform with the absolute path to your cloned repository’s platform directory.

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. If the error body says the key “is scoped to the data plane (recommend / respond)”, the key was minted without the control-plane scope — management endpoints and the hosted MCP endpoint require a key minted with scopes: ["control-plane"] (admin only; see API Keys).

”Flow is not V2”

The Decision Flow you’re trying to modify uses the legacy (V1) config format. Use createV2DecisionFlow 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 run npm install in the platform directory. The MCP server requires the @modelcontextprotocol/sdk and zod packages.

Hosted MCP endpoint (no local process)

If you’d rather not run a local server, KaireonAI also exposes a hosted MCP endpoint at POST /api/v1/mcp — the same tool surface over stateless JSON-RPC 2.0 (no SSE). It supports initialize, ping, tools/list, and tools/call, authenticated with the same X-API-Key + X-Tenant-Id headers (the key needs the editor or admin role). The authenticated tenant is forced into every call, and mutating operations are routed through the governed approval flow rather than writing directly.
The hosted MCP endpoint is a control-plane surface: the API key must be minted with the control-plane scope (admin only; see API Keys). A default data-plane-only key gets 403 on /api/v1/mcp. Keep the key internal — it is a management credential; never embed it in client apps.

Available Tools

The MCP server exposes 162 tools (plus 10 governed playbooks) organized by module: See the full MCP Server Reference for complete parameter documentation.

Next Steps

MCP Server Reference

See all 162 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.