MCP · skill.md3 min read
Coding Agents & Kami MCP Server
Connect Claude Code, Cursor, Codex, or Antigravity directly to Kami's Streamable HTTP MCP server and OpenAPI-verified skill.md.
- One endpoint (
POST /api/mcp) serves both management (kdev_) and runtime (kpl_) scopes - Strict key separation:
kpl_exposes only runtime tools;kdev_manages Beings, Placements & Knowledge Packs https://kami.bot/skill.mdis verified against live OpenAPI on every CI run so agents never hallucinate routes
- 1
Add Kami MCP to Claude Code, Cursor, or Antigravity
Use a
kdev_key to let your coding agent provision Beings, edit Placements, and sync Knowledge Packs - or use akpl_key to test live turns and read placement threads.JSONmcp.json (Streamable HTTP + SSE){ "mcpServers": { "kami-being-runtime": { "url": "https://api.kami.bot/api/mcp", "headers": { "Authorization": "Bearer kdev_YOUR_DEVELOPER_KEY" } } } } - 2
Hand your coding agent skill.md
Paste this single prompt into Claude Code, Cursor, Codex, or Antigravity. It fetches the exact live spec including webhook JSON shapes, error envelopes, and curl examples.
PromptOne-line coding agent promptRead https://kami.bot/skill.md and integrate my Kami Being placement into this repo using POST https://api.kami.bot/api/placement/v1/turn (SSE) or /messages + Kami-Signature webhook verification. - 3
Handle structured errors & caps cleanly
Every REST & MCP error returns machine-readable
code, human-readableerror,retryAfterS(plusRetry-Afterheader) on429, and an actionablehintwhenever applicable.JSONStructured 402 & 429 error envelopes// HTTP 402 - Prepaid credits exhausted { "error": "credit_exhausted - prepaid credit balance is exhausted; top up credits to continue", "code": "credit_exhausted", "hint": "Top up prepaid credits in https://kami.bot/developers/console" } // HTTP 429 - Rate or dailyUsd budget cap reached (honor Retry-After) { "error": "daily_budget - this placement's cap is reached; retry after 14200 s", "code": "daily_budget", "retryAfterS": 14200 }Never pass kpl_ in query params (?token=kpl_... is refused with 403) and never embed kdev_ or kpl_ in browser JavaScript.