GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
MCP server for Roku device automation — deploy, ECP control, screenshots, and debug console
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
ROKU_DEVICE_HOST, ROKU_DEVICE_PASSWORD标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"rokumcp": {
"command": "npx",
"args": [
"-y",
"roku-mcp"
],
"env": {
"ROKU_DEVICE_HOST": "your-value",
"ROKU_DEVICE_PASSWORD": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add rokumcp --env ROKU_DEVICE_HOST=your-value --env ROKU_DEVICE_PASSWORD=your-value -- npx -y roku-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"rokumcp": {
"command": "npx",
"args": [
"-y",
"roku-mcp"
],
"env": {
"ROKU_DEVICE_HOST": "your-value",
"ROKU_DEVICE_PASSWORD": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"rokumcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"roku-mcp"
],
"env": {
"ROKU_DEVICE_HOST": "your-value",
"ROKU_DEVICE_PASSWORD": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
ROKU_DEVICE_HOST env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 jack1590 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:ROKU_DEVICE_PASSWORD
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.3.2)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A Model Context Protocol (MCP) server for Roku device automation. Exposes tools for app deployment, ECP remote control, screenshot capture, SceneGraph node inspection, and BrightScript debug console access.
The server ships as a single npx command. Install once globally if you prefer, or let your MCP client launch it on demand via npx -y roku-mcp — both work.
npm install -g roku-mcp # optional, global install
Unofficial community tool. Not affiliated with or endorsed by Roku, Inc.
The repo also ships as a plugin: the MCP server, workflow skills (skills/), and Cursor rules, registered together.
/plugin marketplace add jack1590/RokuMCP then /plugin install roku-mcp@roku-mcp-marketplace. Manifests: .claude-plugin/, .mcp.json..cursor-plugin/ and mcp.json. Skills in skills/, rules in rules/cursor/.Claude Code asks for the device host and developer password when the plugin is enabled (the password is stored as sensitive). Both clients use the entry point bootstrap.mjs. Both run npm ci and npm run build on first start (Node 18+). Outside plugin mode, ROKU_DEVICE_HOST / ROKU_DEVICE_PASSWORD or a project .env still work.
Configure your AI client below. Every platform uses the same launch line; only the config file and reload step change.
Cursor — agent-mode tools, auto-discovers MCP servers
Prerequisites: Cursor 0.45+ with Agent mode.
Install: create .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):
{
"mcpServers": { "roku": { "command": "npx", "args": ["-y", "roku-mcp"], "env": { "ROKU_DEVICE_HOST": "192.168.1.XXX", "ROKU_DEVICE_PASSWORD": "your-password" } } } }
Then reload the window (Cmd+Shift+P / Ctrl+Shift+P → Developer: Reload Window).
Verify: open Cursor Settings → MCP and confirm the roku row shows a green dot. If it appears disabled, click the toggle. In a new agent chat, type list roku tools — you should see roku_deploy, roku_screenshot, etc.
Routing rule (recommended): the repo also ships an AGENTS.md. Cursor picks it up automatically, so the agent knows the canonical *observe → act → wait → verify* loop and the RTA uiElementId gotcha without you having to re-explain it every session.
Troubleshoot: if the server stays grey/disabled, check View → Output → MCP Logs — the most common cause is ROKU_DEVICE_HOST unreachable on the LAN. Omit the env block entirely to fall back to SSDP auto-discovery.
VS Code (GitHub Copilot) — agent mode, MCP via .vscode/mcp.json
Prerequisites: VS Code 1.99+ with the GitHub Copilot extension and an active Copilot subscription that includes Agent mode.
Install: create .vscode/mcp.json in your project root:
{
"servers": { "roku": { "command": "npx", "args": ["-y", "roku-mcp"], "env": { "ROKU_DEVICE_HOST": "192.168.1.XXX", "ROKU_DEVICE_PASSWORD": "your-password" } } } }
Reload the window (Cmd+Shift+P / Ctrl+Shift+P → Developer: Reload Window).
Verify: open Copilot Chat, switch the chat-mode dropdown to Agent, and ask "what roku tools do you have?". You should see the full roku_* list. The MCP panel (Cmd+Shift+P → MCP: List Servers) should show roku as Running.
Troubleshoot: if the server fails to start, run npx -y roku-mcp --help in a regular terminal first — that confirms Node 18+ and npx are working before VS Code launches it.
Claude Desktop — official Anthropic desktop app
Prerequisites: Claude Desktop (latest from claude.ai/download), Node.js 18+ on PATH.
Install: edit your Claude Desktop config:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": { "roku": { "command": "npx", "args": ["-y", "roku-mcp"], "env": { "ROKU_DEVICE_HOST": "192.168.1.XXX", "ROKU_DEVICE_PASSWORD": "your-password" } } } }
Fully quit and restart Claude Desktop (the menu-bar icon must close — Cmd+Q on macOS).
Verify: open a new chat. The 🛠️ icon in the input bar should list roku-mcp with all its tools. Ask "take a Roku screenshot" — Claude will request approval for roku_screenshot and run it.
Troubleshoot: if no tool icon appears, check ~/Library/Logs/Claude/mcp-server-roku.log (macOS) — command not found: npx means Node isn't on the GUI app's PATH. Either install Node via the official .pkg, or hard-code the absolute paths: "command": "/usr/local/bin/node", "args": ["/usr/local/bin/npx", "-y", "roku-mcp"].
Windsurf — Codeium's agentic IDE
Prerequisites: Windsurf with Cascade enabled.
Install: create .windsurf/mcp.json in your project root (or ~/.codeium/windsurf/mcp_config.json globally):
{
"mcpServers": { "roku": { "command": "npx", "args": ["-y", "roku-mcp"], "env": { "ROKU_DEVICE_HOST": "192.168.1.XXX", "ROKU_DEVICE_PASSWORD": "your-password" } } } }
Reload the window. In Cascade settings, refresh the MCP server list.
Verify: ask Cascade "list available MCP tools" — roku_* entries should appear.
Troubleshoot: Windsurf occasionally caches a stale server. If reloads don't pick up edits, fully quit Windsurf and reopen.
Any MCP-compatible client (Continue, Cline, Zed, Codex, Claude Code, OpenCode, …)
The server speaks the standard MCP stdio transport. Anywhere you can declare:
command: npx
args: ["-y", "roku-mcp"] env: { ROKU_DEVICE_HOST: "...", ROKU_DEVICE_PASSWORD: "..." }
…the server runs. Both env vars are optional: omit ROKU_DEVICE_HOST to use SSDP auto-discovery on the LAN, and pass host / password on each tool call to override.
The repo-root AGENTS.md is picked up automatically by Claude Code, OpenCode, Codex CLI, and any other tool that follows the AGENTS.md convention, so those agents inherit the same usage guidance without extra setup.
For better agent behavior (the observe → act → wait → verify loop, the RTA uiElementId gotcha that silently breaks roku_edit_node, when to use which tool), the repo ships drop-in rules pre-formatted for each major agent. The body is identical — only the wrapper differs to match what each agent auto-loads.
| Agent | File | Install path |
|---|---|---|
| Cursor | rules/cursor/roku-mcp.mdc | .cursor/rules/roku-mcp.mdc |
| Claude Code | rules/claude-code/CLAUDE.md | CLAUDE.md (repo root) |
| Claude Desktop | rules/claude-desktop/roku-mcp.md | Settings → System Prompt |
| Windsurf | rules/windsurf/roku-mcp.md | .windsurf/rules/roku-mcp.md |
| Codex CLI / OpenCode / Aider | AGENTS.md (repo root) | AGENTS.md (repo root) |
See rules/README.md for one-line copy commands per agent.
Once your client is wired up, these three prompts work out of the box and exercise the main capability groups.
1. Confirm the device is reachable
Use roku-mcp to query my Roku device info and tell me the model, firmware, and IP.
The agent should call roku_query_device_info (and possibly roku_discover if no host is configured) and reply in one turn.
2. Drive the UI with screenshots
Press Home, wait 2 seconds, take a screenshot, then move Right twice and
screenshot again. Describe what changed between the two screenshots.
This exercises roku_keypress, roku_sleep, and roku_screenshot — the standard *observe → act → wait → verify* loop.
3. Live-edit a running channel (requires RTA — see [Runtime UI Editing](#runtime-ui-editing))
On the currently running dev channel, find the label that shows the page
title, change its text to "Hello from MCP", verify the change with roku_get_value, then change it back.
The agent will roku_query_app_ui to locate the node, grab the uiElementId, call roku_edit_node + roku_get_value, and roll back — proving end-to-end RTA wiring.
| Variable | Description |
|---|---|
ROKU_DEVICE_HOST | IP address or hostname of the Roku device |
ROKU_DEVICE_PASSWORD | Developer password for the Roku device |
Both can also be passed as parameters on each tool call, which override the environment variables.
If ROKU_DEVICE_HOST is not set and no host parameter is provided, the server automatically discovers Roku devices on the local network using SSDP and uses the first one found. You can also use the roku_discover tool to list all available devices. Note that the password cannot be discovered and must still be configured.
.env file supportThe server automatically loads a .env file from the current working directory using dotenv. If your project's .env already uses ROKU_DEVICE_HOST and ROKU_DEVICE_PASSWORD, the server picks them up with no extra configuration — just omit the env block from your MCP config:
ROKU_DEVICE_HOST=192.168.1.100
ROKU_DEVICE_PASSWORD=my-password
If your project uses different variable names (e.g. ROKU_IP, ROKU_DEV_PASSWORD), you can map them in the env block:
"env": {
"ROKU_DEVICE_HOST": "${ROKU_IP}", "ROKU_DEVICE_PASSWORD": "${ROKU_DEV_PASSWORD}" }
Or simply add the two expected variables to your .env alongside your existing ones.
| Tool | Description |
|---|---|
roku_deploy | Sideload (deploy) a Roku app to the device. Stages in a temp folder (stagingDir overrides) so a project bsconfig.json can't make it wipe rootDir |
roku_delete_dev_channel | Delete the currently sideloaded developer channel |
| Tool | Description |
|---|---|
roku_discover | Scan the local network for Roku devices via SSDP |
| Tool | Description |
|---|---|
roku_keypress | Send a single key press (Home, Select, Up, Down, Left, Right, Back, etc.) |
roku_keypress_sequence | Send multiple key presses in sequence with configurable delay |
roku_type_text | Type a text string into the focused field (e.g. email, password, search) |
roku_launch | Launch or deep-link into a channel (restart: true exits it first) |
roku_query_device_info | Get device model, firmware, serial number, network info |
roku_query_active_app | Get the currently running app |
roku_query_media_player | Get media player state (play/pause/buffer/stop), position, and duration |
roku_query_app_ui | Get the current app UI tree as XML |
roku_query_sg_nodes | Query SceneGraph nodes (all, roots, or by node ID) |
roku_find_node | Search the UI tree for a node by ID or attribute (subtype, text, etc.) |
roku_get_focused_node | Get the currently focused node with all its properties |
roku_sleep | Wait for a specified duration (useful between navigation steps) |
| Tool | Description |
|---|---|
roku_screenshot | Capture a screenshot (returns base64 image and file path) |
| Tool | Description |
|---|---|
roku_console_connect | Open a TCP connection to the BrightScript debug console (port 8085) |
| `roku_c
只显示了开头部分;其余内容请在仓库中阅读