# RunAI > RunAI is an AI operating system. Its capabilities are exposed to external AI clients over the > Model Context Protocol (MCP). The available tools depend on the account and plan; the live > catalog from `tools/list` is the source of truth (no tool count is published here). A user > connects their own AI client with their RunAI account. ## Connect - Tool list as plain text (one line per tool, generated from source; the live tools/list is the source of truth): https://runai.live/runai-mcp-tools.txt - Tool families (by tool name: AI Movie, RunGames and local engines, RunMail, jobs, mobile, other; no internal paths): see the FAMILIES section at https://runai.live/runai-mcp-tools.txt. - Parameter schemas (inputSchema per tool, no login needed): https://runai.live/runai-mcp-tools.json (snapshot from a Pro account tools/list; your list may differ by plan). The live authenticated tools/list stays the source of truth. - Full step-by-step guide as plain text, no JavaScript needed (client setup for each AI client, OAuth steps, token, plan, approval, errors): https://runai.live/connect-mcp.txt - OAuth gateway (recommended; Claude Code, Cursor, VS Code, Claude Desktop/claude.ai; NO live client has been accepted yet, see "MEASURED STATE" in connect-mcp.txt): `https://mcp.runai.live/mcp`. The client discovers OAuth 2.1 + PKCE metadata at `/.well-known/oauth-authorization-server` and `/.well-known/oauth-protected-resource`, registers itself at `/registration` (scope `mcp`) and opens the RunAI sign-in page. The token lasts 1 hour and the client re-authorizes when it expires. - Claude Code: `claude mcp add --transport http runai https://mcp.runai.live/mcp` - Codex: `codex mcp add runai --url https://mcp.runai.live/mcp` (not yet measured against a live Codex client) - ChatGPT, Windsurf: add a remote HTTP MCP server at `https://mcp.runai.live/mcp` in the client's own settings (not yet measured). - Cursor mcp.json: `{"mcpServers":{"runai":{"url":"https://mcp.runai.live/mcp"}}}` - Direct JSON-RPC 2.0 (scripts that already hold an MCP token): `POST https://api.runai.live/mcp/rpc` with `Authorization: Bearer `. A script gets a token by signing in with `POST /api/auth/login`, then calling `POST /api/mcp/oauth/session` with that web session token; the MCP token lasts 3600 seconds and there is no refresh (see connect-mcp.txt, "GET A TOKEN FOR A SCRIPT"). Missing token returns 401 `Missing token`. Settings, API Keys inside the app stores your own AI-provider credentials; it does not issue RunAI MCP tokens. - Tool count: runai-mcp-tools.txt is generated from runai-mcp-tools.json, so both list the same 202 tool names (a tools/list snapshot from 2026-11-28, Pro test account). Your count depends on plan and scope; for the exact number call `tools/list` with an authenticated token. - Use `tools/list` to discover tools (the live catalog is the source of truth; do not assume names) and `tools/call` to run one. - Parameter schemas are NOT in runai-mcp-tools.txt or in this file. Each tool's `inputSchema` comes only from an authenticated `tools/list` call (example and jq command in connect-mcp.txt, "PARAMETER SCHEMAS"). - Approval is given by the account owner in the RunAI web app (https://runai.live/dashboard; dialog "An AI agent wants to do this"), never by the agent. The agent then repeats the same call. - Prices: read `get_price_list` (and `get_credit_balance`); prices are not written in these docs. - Plan: external MCP access needs the Pro plan or higher (error `upgrade_required` with `required_plan`). Same credits and limits as the app. - Approval: paid, destructive or money-moving tools first return `confirmation_required` (with `confirmation_id`, pending 10 minutes). After the account owner approves in the RunAI web app, repeat the SAME call with the same arguments; no token is needed. An older path accepts `confirmation_token` at the top level of `params` (never inside `arguments`). An MCP token cannot approve (403 `token_scope_forbidden`). ## Generation, cost and library - `generate_image` / `generate_video` take `aspect` (9:16, 16:9, 1:1, 4:3, 3:4, 21:9), `resolution` (short-edge preset 480p to 4K, same for images and video; an image whose long edge would exceed 2048 px is refused with `resolution_out_of_range`), video also `duration_seconds`. `list_generation_options` returns the valid values per model. - Price first: `quote_generation` or `dry_run: true` returns the estimate in FLZ and starts nothing (`priced: false` = no measured price exists). Video price has not been measured yet: video quotes return `priced: false`, `max_flz` on video is refused (`price_unknown_max_flz`), and a video job without a budget needs `confirm_unpriced: true` after the user was told. `max_flz` refuses a call whose estimate is higher. `get_credit_balance` reads the balance. - `library_items: [{kind, name}]` (up to 4) references the user's saved characters, locations and props by name. `list_camera_presets` and `list_styles` list camera and style ids. `asset_search` / `asset_use` find and import stock assets into RunFiles. - Exact parameters: the live `tools/list` catalog (also `GET /mcp/tools`). ## AI Movie and local engines - AI Movie (`window_ai_*`): fixed order Work, screenplay, characters, storyboard, sketch check, first frames, cost estimate, video, final film. Call `window_ai_film_status` before each step. Video, lip-sync and final film need a human approval; `confirmed_flz` is only a price check. Long jobs return `task_id` and `read_result`: read with `get_generation_task` or wait with `jobs_wait`. Full flow: connect-mcp.txt, section "AI MOVIE FLOW". - RunGames and local engines (`godot_*`, `unity_*`, `game_engine_*`) run on the user's own computer and need the RunAI desktop app open (`device_not_connected` otherwise). Blender is not offered through MCP in the published catalog. Details: connect-mcp.txt, sections "RUNGAMES AND LOCAL ENGINES" and "BLENDER". ## Search and research - `runai_search`: fast, source-grounded web search (args: `query`, `mode` fast|deep, `lang`). `runai_answer`: plans sub-queries, reads pages, returns a cited answer. ## Docs - MCP guide (plain text): https://runai.live/connect-mcp.txt - Developer docs (interactive app page): https://runai.live/developer/docs - Human reading page for the MCP guide: https://runai.live/mcp (a page for people, NOT an MCP endpoint; clients use https://mcp.runai.live/mcp) - Pricing: https://runai.live/pricing - Using the nine new read-only tools and the paid translate_text (approval flow): https://runai.live/connect-mcp.txt, section "HOW AN AGENT USES THE NEW TOOLS".