You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code mode, for Node.js 22.13 or later: set ROKU_MCP_MODE=code (or the plugin's "Server mode" setting) and the server offers roku_run, roku_sdk_docs and roku_screenshot instead of the 46 tools. roku_run runs a short script against the SDK (roku.<group>.<call>(options), the same options as the matching tool), so a multi-step flow is one tool call. roku_sdk_docs lists the calls and their options. Full mode stays the default and is unchanged.
rokuctl, the same operations from a shell or CI: npx -p roku-mcp rokuctl help. It prints one JSON object, exits 0/1/2/3, writes large or binary output only with --out, and takes passwords only from the environment. console.capture captures the console, waits for a line and stops in one command. An interrupted rokuctl rce.start stops the Run it started.
Task-level skills with numbered steps, code-mode and rokuctl forms and a recovery table, and a new e2e-check skill.
npm run bench: tool-list size and calls per flow, full mode against code mode, on fake devices.
Security
roku_run scripts run in a separate Node.js process: no file system, no child processes, no environment, no signals to other processes, no node:sqlite. Tokens and passwords stay in the server.
Paths stay inside the server's working directory, and secret files are refused (.env*, *.env, mcp.json, opencode.json, bsconfig*.json, rokudeploy*.json, keys, .git, .vscode, .cursor, .claude, ...). Writes create data files only, under roku-run/. A deploy from a script refuses files, stagingDir and a rootDir holding secrets or symlinks. Writes create no code, Markdown or tool config files, and roku-run/ is git-ignored. Console patterns from a script, and token redaction, run in linear time (no ReDoS); a script cannot set filterFile. roku.perfetto.query is not available in a script (trace_processor runs SQL with the server's rights).
When roku_run kills a script (timeout, memory limit, crash), the server stops the Cloud Device Run each of its starts created, by its Run id, including one still starting (once the start returns). A script that returns normally keeps its Run. Not covered: a start request that failed on the network while RCE created the Run anyway; check roku_rce_status after a failed start.
Limits per run: 30 s by default (300 s at most), 128 MB of heap, a 100 KiB result, 64 KiB of logs, 5,000 calls.
Known limits: a script can open network connections and send what it can read, and its ArrayBuffer memory is not capped until the timeout. Code mode is not tested on Windows yet.
Fixed
ECP requests to a LAN device end after their timeout (10 s, or 30 s for UI tree queries) even when the device keeps sending bytes slowly, and refuse replies over 32 MiB. The error text is unchanged.
The RTA client closes the connection on a reply frame over 16 MiB instead of buffering it, a console capture matches a line that never ends in 64 KiB pieces (the file still keeps every byte), and the single-shot console keeps the newest 1 MiB.
Changed
The tools now share one SDK (src/sdk/) with rokuctl and roku_run. Tool names, inputs and outputs are unchanged; a test compares 214 recorded calls and the tool list with 1.9.0.