RunAI MCP: connect your AI client (Claude, Cursor, Codex)
RunAI exposes its tools to MCP-compatible AI clients. Connect with your own RunAI account; use tools/list for the live tool catalog.
Connect Claude Desktop or a remote connector
- Add a remote MCP server (custom connector) and enter the address below. You do not need to copy a key.
- The client discovers OAuth 2.1 + PKCE metadata and opens the RunAI sign-in page in your browser.
- Sign in with your RunAI account and approve. A short-lived MCP token (1 hour) is issued; when it expires the client signs in again.
- Your client calls tools/list, then tools/call. Plan, credit and ownership rules are the same as in the app.
https://mcp.runai.live/mcp
Client setup (copy and paste)
Two addresses exist. The OAuth gateway below is for clients that sign in for you. The direct address above is for scripts that already hold a token.
Claude Desktop / claude.ai
Settings, Connectors, add a custom connector, paste the gateway address, then sign in with your RunAI account.
Claude Code
run this in a terminal, then sign in when the client asks.
claude mcp add --transport http runai https://mcp.runai.live/mcp
Cursor / VS Code
add this to the MCP settings file (Cursor: mcp.json). The client opens the sign-in page itself.
{
"mcpServers": {
"runai": { "url": "https://mcp.runai.live/mcp" }
}
}
Codex
run this, or put the TOML block in ~/.codex/config.toml, then sign in when the client asks (not yet measured against a live Codex client).
codex mcp add runai --url https://mcp.runai.live/mcp[mcp_servers.runai]
url = "https://mcp.runai.live/mcp"
Gateway address (OAuth): https://mcp.runai.live/mcp Discovery documents are served by the gateway at /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource. Dynamic client registration is at /registration. Scope: mcp.
Where the token comes from
The OAuth sign-in above creates the token for you: it is scoped to MCP only (other RunAI endpoints reject it), lasts 1 hour, and shows up as a device you can revoke in your account. A script that cannot use OAuth can sign in to RunAI normally and call POST /api/mcp/oauth/session with that web token to receive the same kind of MCP token. Never put your RunAI password into an AI prompt or a config file.
Sign in through your AI client (OAuth) and it receives a short-lived RunAI MCP token for you. Scripts can obtain the same kind of token with POST /api/mcp/oauth/session. Settings, API Keys only stores your own AI-provider credentials; it does not issue RunAI tokens. The server keeps user, plan, organization, project, and Work scope.
Direct JSON-RPC address (scripts that already hold a token): https://api.runai.live/mcp/rpc
Discover tools with tools/list
tools/list returns the real available tool catalog. The catalog is the source of truth; a client should not invent tool names or parameters.
curl -X POST https://api.runai.live/mcp/rpc \
-H "Authorization: Bearer $RUNAI_MCP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
The list of registered tools is always current at the /mcp/tools endpoint (or tools/list); this page does not hard-code it.
runai_search
Quick, source-verified web search through the RunAI Answer Engine. Input: query (required, 1-8000 characters), mode ("fast" default, or "deep"), lang (optional, answer language; defaults to the account language).
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
"name":"runai_search",
"arguments":{"query":"llms.txt standard","mode":"fast","lang":"en"}
}}
runai_answer
Deep research: planning, page reading and a cited answer, always in deep mode. Input: query (required, 1-8000 characters), lang (optional). The result is saved to your account; the Research plan gate applies.
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
"name":"runai_answer",
"arguments":{"query":"What is the llms.txt standard?","lang":"en"}
}}
Example prompts for your AI client
- "List the RunAI tools you can use, then search the web for the llms.txt standard with runai_search."
- "Use runai_answer to research this topic and give me a cited answer."
- "Write a short screenplay with write_screenplay for a lighthouse keeper story."
Generation, cost and library tools
Besides the app tools, a connected AI client can control output size, check the price before it spends credits and reuse your saved characters. Parameters and tool names are listed by the live catalog (GET /mcp/tools or tools/list); this page states no tool count.
- Output: generate_image and generate_video take aspect (9:16, 16:9, 1:1, 4:3, 3:4, 21:9) and resolution (480p up to 4K; images stop at 2K); video also takes duration_seconds. list_generation_options returns the valid values per model.
- Cost: quote_generation, or dry_run:true on a generation call, returns the estimate in FLZ and starts nothing. priced:false means no measured price exists for that model. max_flz refuses a call whose estimate is higher. get_credit_balance reads your balance.
- Library: library_items [{kind, name}] on generate_image and generate_video reference your saved characters, locations and props by name (up to 4). Unknown names fail with library_item_not_found.
- Camera and style: list_camera_presets lists framing, angle, camera moves and lens ids with a ready prompt sentence; list_styles lists the style catalog. Both are free and need no open film.
- Assets: asset_search finds stock images, video, music and sound effects with license and commercial_ok; asset_use imports one into your RunFiles and returns the attribution to credit.
Plan and credits
External MCP access needs the Pro plan or higher. Tools use the same plan limits and credits as the app. See the pricing page for plan details. Pricing
Approval for paid and destructive tools
Paid, destructive or money-moving tools (for example translate_text, send_run_mail, AI Movie video, lip-sync and final film, jobs_stop) first return confirmation_required with a confirmation_id. The account owner approves the request in the RunAI web app: in any open, signed-in tab the dialog "An AI agent wants to do this" appears within about 15 seconds (a request waits up to 10 minutes). Then the agent repeats the same call with the same arguments; no token is needed and the approval is used once. An MCP token cannot approve. An older path accepts a one-time confirmation_token at the top level of params (never inside arguments).
{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{
"name":"send_run_mail",
"arguments":{ ... }
}}
AI Movie: the order of the tools
AI Movie tools start with window_ai_. Order: Work (window_ai_create_work or window_ai_open_work), screenplay (window_ai_write_screenplay; write_screenplay is the older standalone pair), characters, storyboard, sketch check (window_ai_describe_shot, the user confirms the framing in the app), 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. The default video model is sagemaker_ltx. Long jobs return task_id and read_result: read with get_generation_task or wait with jobs_wait.
RunGames, local engines and Blender
game_engine_*, godot_* and unity_* tools run on the user's own computer through the RunAI desktop app. The app must be open and signed in; otherwise the call returns device_not_connected. Write and run tools need the web approval and then a confirmation in the desktop app. Read the result of a queued job with device_job_result when your tools/list contains it. Blender is not offered through MCP in the published catalog; there is no cloud tool that creates and publishes a game.
What has been measured (2026-12-02)
- Measured: the gateway answers 401 with discovery metadata; the direct endpoint lists tools with a token from POST /api/mcp/oauth/session; a paid tool (translate_text) completed with the web approval (2026-11-29).
- Not measured with a live client: Claude Code, Cursor, VS Code, Claude Desktop and claude.ai, Codex, ChatGPT and Windsurf. If a step fails, report the exact error text.
- Claude Desktop and claude.ai: adding a custom connector depends on your Claude plan (check Anthropic's current rules; not verified here). RunAI side: external MCP needs the Pro plan.
- Codex: the exact command and how the OAuth sign-in starts depend on the Codex version (not verified). If the command is rejected, use the config.toml block.
https://runai.live/mcp is a reading page for people, not an MCP endpoint. In your client use https://mcp.runai.live/mcp.
Troubleshooting
401 Missing token: No Authorization header. Sign in through the connector, or send Authorization: Bearer <token>.-32001 / -32002 (401): The gateway has no valid session or the 1-hour token expired. Re-authorize the client; most clients do this on their own.upgrade_required: External MCP access needs the Pro plan or higher. The reply carries required_plan and current_plan.confirmation_required: A paid, destructive or money-moving tool needs human approval first. The account owner approves it in the RunAI web app (dialog "An AI agent wants to do this"), then you repeat the same call.confirmation_token_must_be_top_level: confirmation_token was placed inside arguments. Move it to params, next to name and arguments.org_scope_not_ready: The tool works on personal data. Switch the account to Personal mode, then retry.
Security and honest availability
The public guide does not promise that every AI client can connect today. initialize, initialized, JSON-RPC validation, ping, and Streamable HTTP acceptance must be measured before external-client compatibility is called ready.
RunAI MCP: AI istemcinizi bağlayın (Claude, Cursor, Codex)
RunAI araçlarını MCP uyumlu AI istemcilerine açar. Kendi RunAI hesabınızla bağlanın; güncel araç listesi için tools/list kullanın.
Claude Desktop veya uzak bağlayıcı ile bağlan
- Uzak MCP sunucusu (özel bağlayıcı) ekle ve aşağıdaki adresi gir. Anahtar kopyalaman gerekmez.
- İstemci OAuth 2.1 + PKCE keşfini yapar ve tarayıcıda RunAI giriş sayfasını açar.
- RunAI hesabınla giriş yapıp onayla. 1 saatlik kısa ömürlü bir MCP token verilir; süre dolunca istemci yeniden giriş ister.
- İstemci önce tools/list, sonra tools/call çağırır. Plan, kredi ve sahiplik kuralları uygulamadakiyle aynıdır.
https://mcp.runai.live/mcp
İstemci kurulumu (kopyala-yapıştır)
İki adres var. Aşağıdaki OAuth kapısı, senin yerine giriş yapan istemciler içindir. Yukarıdaki doğrudan adres, elinde token olan betikler içindir.
Claude Desktop / claude.ai
Ayarlar, Bağlayıcılar, özel bağlayıcı ekle, kapı adresini yapıştır, sonra RunAI hesabınla giriş yap.
Claude Code
terminalde bunu çalıştır, istemci isteyince giriş yap.
claude mcp add --transport http runai https://mcp.runai.live/mcp
Cursor / VS Code
bunu MCP ayar dosyasına ekle (Cursor: mcp.json). İstemci giriş sayfasını kendisi açar.
{
"mcpServers": {
"runai": { "url": "https://mcp.runai.live/mcp" }
}
}
Codex
bunu çalıştır ya da TOML bloğunu ~/.codex/config.toml içine koy, istemci isteyince giriş yap (canlı Codex istemcisiyle henüz ölçülmedi).
codex mcp add runai --url https://mcp.runai.live/mcp[mcp_servers.runai]
url = "https://mcp.runai.live/mcp"
Kapı adresi (OAuth): https://mcp.runai.live/mcp Keşif belgeleri kapıda /.well-known/oauth-authorization-server ve /.well-known/oauth-protected-resource adreslerinden yayınlanır. Dinamik istemci kaydı /registration adresindedir. Kapsam: mcp.
Token nereden gelir
Yukarıdaki OAuth girişi token'ı senin için üretir: yalnız MCP kapsamlıdır (diğer RunAI uçları reddeder), 1 saat sürer ve hesabında iptal edebileceğin bir cihaz olarak görünür. OAuth kullanamayan betik, RunAI'a normal giriş yapıp o web token'ı ile POST /api/mcp/oauth/session çağırarak aynı türden MCP token'ı alabilir. RunAI parolanı asla AI istemine ya da ayar dosyasına yazma.
AI istemciniz üzerinden (OAuth) giriş yapın; istemci sizin için kısa ömürlü bir RunAI MCP belirteci alır. Betikler aynı türde belirteci POST /api/mcp/oauth/session ile alabilir. Ayarlar, API Keys ekranı yalnız kendi AI sağlayıcı kimlik bilgilerinizi saklar; RunAI belirteci vermez. Sunucu kullanıcı, paket, organizasyon, proje ve Work kapsamını korur.
Doğrudan JSON-RPC adresi (belirteci zaten olan betikler için): https://api.runai.live/mcp/rpc
tools/list ile araçları keşfedin
tools/list gerçek araç kataloğunu döndürür. Kaynak gerçek listedir; istemci araç adı veya parametre uydurmamalıdır.
curl -X POST https://api.runai.live/mcp/rpc \
-H "Authorization: Bearer $RUNAI_MCP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Kayıtlı araçların güncel listesi /mcp/tools ucundan (veya tools/list ile) gelir; bu sayfada sabit liste tutulmaz.
runai_search
RunAI Answer Engine üzerinden hızlı, kaynakları doğrulanmış web araması. Girdi: query (zorunlu, 1-8000 karakter), mode (varsayılan "fast", ya da "deep"), lang (isteğe bağlı, cevap dili; yoksa hesap dili).
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
"name":"runai_search",
"arguments":{"query":"llms.txt standard","mode":"fast","lang":"en"}
}}
runai_answer
Derin araştırma: planlama, sayfa okuma ve kaynaklı cevap; her zaman deep mod. Girdi: query (zorunlu, 1-8000 karakter), lang (isteğe bağlı). Sonuç hesabına kaydedilir; Research plan kapısı geçerlidir.
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
"name":"runai_answer",
"arguments":{"query":"What is the llms.txt standard?","lang":"en"}
}}
AI istemcin için örnek istemler
- "Kullanabileceğin RunAI araçlarını listele, sonra runai_search ile llms.txt standardını web'de ara."
- "runai_answer ile bu konuyu araştır ve kaynaklı bir cevap ver."
- "write_screenplay ile bir deniz feneri bekçisi hikâyesi için kısa bir senaryo yaz."
Üretim, maliyet ve kütüphane araçları
Bağlı AI istemcisi uygulama araçlarının yanında çıktı boyutunu seçebilir, kredi harcamadan önce fiyatı görebilir ve kayıtlı karakterlerini yeniden kullanabilir. Araç adları ve parametreler canlı katalogdan okunur (GET /mcp/tools ya da tools/list); bu sayfa araç sayısı yazmaz.
- Çıktı: generate_image ve generate_video aspect (9:16, 16:9, 1:1, 4:3, 3:4, 21:9) ile resolution (480p'den 4K'ya; görselde üst sınır 2K) alır; video ayrıca duration_seconds alır. list_generation_options her model için geçerli değerleri verir.
- Maliyet: quote_generation ya da üretim çağrısında dry_run:true tahmini FLZ olarak döner ve hiçbir şey başlatmaz. priced:false o model için ölçülmüş fiyat olmadığını söyler. max_flz tahmini aşan çağrıyı reddeder. get_credit_balance bakiyeni okur.
- Kütüphane: generate_image ve generate_video üzerindeki library_items [{kind, name}] kayıtlı karakter, mekân ve objelerine adla başvurur (en çok 4). Bilinmeyen ad library_item_not_found ile reddedilir.
- Kamera ve stil: list_camera_presets çekim ölçeği, açı, kamera hareketi ve lens kimliklerini hazır istem cümlesiyle listeler; list_styles stil kataloğunu listeler. İkisi de ücretsizdir, açık film gerektirmez.
- Varlıklar: asset_search lisans ve commercial_ok bilgisiyle stok görsel, video, müzik ve ses efekti bulur; asset_use birini RunFiles'a alır ve belirtilecek atfı döner.
Plan ve kredi
Harici MCP erişimi Pro plan ve üstünü ister. Araçlar uygulamadakiyle aynı plan sınırlarını ve kredileri kullanır. Plan ayrıntıları fiyat sayfasında. Fiyatlar
Ücretli ve yıkıcı araçlar için onay
Ücretli, yıkıcı ya da para hareketi yapan araçlar (örneğin translate_text, send_run_mail, AI Movie video, dudak senkronu ve final film, jobs_stop) önce confirmation_id ile birlikte confirmation_required döner. Hesap sahibi isteği RunAI web uygulamasında onaylar: açık ve girişli herhangi bir sekmede yaklaşık 15 saniye içinde "Bir yapay zekâ ajanı bunu yapmak istiyor" diyaloğu çıkar (istek 10 dakika bekler). Sonra ajan aynı çağrıyı aynı argümanlarla tekrarlar; token gerekmez, onay bir kez kullanılır. MCP token onay veremez. Eski yol, params'ın en üst düzeyinde (arguments içinde asla) tek kullanımlık confirmation_token kabul eder.
{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{
"name":"send_run_mail",
"arguments":{ ... }
}}
AI Movie: araçların sırası
AI Movie araçları window_ai_ ile başlar. Sıra: Work (window_ai_create_work ya da window_ai_open_work), senaryo (window_ai_write_screenplay; write_screenplay eski, bağımsız çifttir), karakterler, storyboard, taslak kontrolü (window_ai_describe_shot, kadrajı kullanıcı uygulamada onaylar), ilk kareler, maliyet tahmini, video, final film. Her adımdan önce window_ai_film_status çağır. Video, dudak senkronu ve final film insan onayı ister; confirmed_flz yalnız fiyat kontrolüdür. Varsayılan video modeli sagemaker_ltx. Uzun işler task_id ve read_result döner: get_generation_task ile oku ya da jobs_wait ile bekle.
RunGames, yerel motorlar ve Blender
game_engine_*, godot_* ve unity_* araçları kullanıcının kendi bilgisayarında RunAI masaüstü uygulamasıyla çalışır. Uygulama açık ve girişli olmalı; değilse çağrı device_not_connected döner. Yazma ve çalıştırma araçları web onayını, sonra masaüstü uygulamasında ikinci bir onayı ister. Kuyruktaki işin sonucunu, tools/list içinde varsa device_job_result ile oku. Blender yayımlanan katalogda MCP üzerinden sunulmuyor; bulutta oyun üretip yayımlayan bir araç da yok.
Neler ölçüldü (2026-12-02)
- Ölçüldü: geçit keşif bilgisiyle 401 döner; doğrudan uç, POST /api/mcp/oauth/session ile alınan tokenla araçları listeler; ücretli bir araç (translate_text) web onayıyla tamamlandı (2026-11-29).
- Canlı istemciyle ölçülmedi: Claude Code, Cursor, VS Code, Claude Desktop ve claude.ai, Codex, ChatGPT ve Windsurf. Bir adım başarısız olursa hata metnini aynen bildir.
- Claude Desktop ve claude.ai: özel bağlayıcı eklemek Claude planına bağlıdır (Anthropic'in güncel kurallarına bak; burada doğrulanmadı). RunAI tarafı: dış MCP için Pro plan gerekir.
- Codex: komutun tam biçimi ve OAuth girişinin nasıl başladığı Codex sürümüne bağlıdır (doğrulanmadı). Komut reddedilirse config.toml bloğunu kullan.
https://runai.live/mcp insanlar için bir okuma sayfasıdır, MCP adresi değildir. İstemcinde https://mcp.runai.live/mcp kullan.
Sorun giderme
401 Missing token: Authorization başlığı yok. Bağlayıcıdan giriş yap ya da Authorization: Bearer <token> gönder.-32001 / -32002 (401): Kapıda geçerli oturum yok ya da 1 saatlik token doldu. İstemciyi yeniden yetkilendir; çoğu istemci bunu kendisi yapar.upgrade_required: Harici MCP erişimi Pro plan ve üstünü ister. Yanıt required_plan ve current_plan taşır.confirmation_required: Ücretli, yıkıcı ya da para hareketi yapan araç önce insan onayı ister. Hesap sahibi RunAI web uygulamasında onaylar ("Bir yapay zekâ ajanı bunu yapmak istiyor" diyaloğu), sonra aynı çağrıyı tekrarla.confirmation_token_must_be_top_level: confirmation_token arguments içine konmuş. params altına, name ve arguments yanına taşı.org_scope_not_ready: Araç kişisel veriyle çalışır. Hesabı Kişisel moda al, sonra tekrar dene.
Güvenlik ve dürüst kullanılabilirlik
Public rehber her AI istemcisinin bugün bağlanabildiğini söylemez. Dış istemci uyumu hazır sayılmadan önce initialize, initialized, JSON-RPC doğrulaması, ping ve Streamable HTTP kabulü ölçülmelidir.