Skip to main content
Glama

RockDesk skill and MCP server for Claude Code, Codex, Gemini CLI, DeepSeek Harness and other agents

中文: RockDesk(磐石远控)让 AI 按 9 位 ID 控制远程电脑——DeepSeek Harness、Claude Code、Codex、Gemini CLI 一行命令接入,跑命令、传文件、截屏、键鼠都行,两台都不需要公网 IP。MCP 服务器也发在 npm 和 PyPI(npx -y rockdesk-mcp / uvx rockdesk-mcp),详见下方「中文」。 完整中文说明:README.zh.md。

Listed on mcpservers.org Official MCP Registry Open VSX Homebrew Cask

npx skills add rockdesk-io/rockdesk-skill

Needs the RockDesk app on both machines — the skill only teaches your agent the commands; RockDesk does the work. Download RockDesk (in China: rockdesk.cn).

Let your AI agent work on your other computers.

RockDesk gives every machine a 9-digit ID and connects them peer-to-peer, falling back to a relay when a direct path isn't possible. No port forwarding, no VPN setup, no sshd on the remote. Its command line, rds, lets an agent:

  • run commands on the other machine and get real exit codes (shell -c), or start long jobs that outlive the call

  • copy, sync and send files, or mount a remote folder as a local one

  • take screenshots it can read, then click, type and press keys

  • read and set the clipboard, browse clipboard history

  • forward TCP ports, serial ports and USB devices, or bring up a VPN into the remote's network

This repository holds the skill that teaches agents to use it, and the source of the rockdesk-mcp MCP server (Node.js in mcp/npm, Python in mcp/pypi), published on npm and PyPI and listed as io.rockdesk/rockdesk in the official MCP Registry. See MCP server.

Demo: Claude Code drives a Windows PC · Claude Code drives a Mac

Quickstart by AI Agent / Client

Agent / Client

Recommended Install

Claude Code

claude mcp add -s user rockdesk -- rds mcp or /plugin install rockdesk --marketplace rockdesk-io/rockdesk-skill

OpenAI Codex CLI

codex mcp add rockdesk -- rds mcp or codex plugin marketplace add rockdesk-io/rockdesk-skill

Gemini CLI

gemini extensions install https://github.com/rockdesk-io/rockdesk-skill

DeepSeek Harness (dsh)

dsh plugin --profile <profile> add github:rockdesk-io/rockdesk-skill

TRAE / Cursor / Windsurf / Qwen

npx skills add rockdesk-io/rockdesk-skill or stdio MCP {"command": "rds", "args": ["mcp"]}

WorkBuddy

Search RockDesk in WorkBuddy Open Platform or install via npx skills add rockdesk-io/rockdesk-skill

Related MCP server: rustdesk-mcp-bridge

Guides & Benchmarks

Install

1. Install RockDesk on both machines

Download for Windows, macOS, Linux (x86_64 / arm64) and Android, plus an iOS client; in China use rockdesk.cn. Install it on this computer and on every computer you want your agent to work on, and note the 9-digit ID the app shows there. New devices start with a free trial. On a Linux machine without a screen: sudo systemctl enable --now rockd, then sudo rds otp for a one-time password.

Direct links that always point to the newest release: Windows · macOS, Apple silicon · macOS, Intel · Linux x86_64 .deb · Linux arm64 .deb · Android .apk. In China, use rockdesk.cn instead of rockdesk.io in these links. On macOS (Homebrew): brew tap rockdesk-io/tap && brew install --cask rockdesk (homebrew-tap). On Linux: curl -fL -o rockdesk.deb https://rockdesk.io/download/latest/linux-amd64 && sudo apt install ./rockdesk.deb.

2. Install the skill in your agent

Any agent, with the skills CLI (puts it in ~/.agents/skills and links it to the agents you pick):

npx skills add rockdesk-io/rockdesk-skill

Claude Code, as a plugin (2.1.275 or later, one step):

/plugin install rockdesk --marketplace rockdesk-io/rockdesk-skill

Older versions: /plugin marketplace add rockdesk-io/rockdesk-skill, then /plugin install rockdesk@rockdesk. The plugin lives in plugins/rockdesk/: Claude's plugin directory accepts only Markdown, text, JSON and images in a plugin folder, so it is kept apart from the files for other agents. Its copy of the skill is the same as skills/rockd-remote-control/SKILL.md except that it points to the install guide instead of a one-line Linux install, and lets the user type passwords into rds <id> auth themselves.

Gemini CLI, as an extension:

gemini extensions install https://github.com/rockdesk-io/rockdesk-skill

DeepSeek Harness (dsh), as a plugin: install it into the profile you use, then restart that profile:

dsh plugin --profile <profile> add github:rockdesk-io/rockdesk-skill

Or just ask your agent (Claude Code, Codex, DeepSeek Harness, …):

Install the skill at https://rockdesk.io/rockdesk-cli.md

Codex, as a plugin:

codex plugin marketplace add rockdesk-io/rockdesk-skill
codex plugin add rockdesk@rockdesk

Codex, skill only: run this inside Codex, then restart it:

$skill-installer install https://github.com/rockdesk-io/rockdesk-skill/tree/main/skills/rockd-remote-control

Or by hand: copy skills/rockd-remote-control/ into ~/.claude/skills/ (Claude Code), ~/.gemini/skills/ (Gemini CLI) or ~/.agents/skills/ (Codex, DeepSeek Harness — dsh does not read ~/.claude/skills).

Or connect it as an MCP server — use whichever you prefer. rds mcp (RockDesk 1.0.3 and later) is an MCP server over stdio with 18 tools: shell, spawn, copy, ls, screenshot, click, type_text, key, scroll, clipboard, port forwarding and more; screenshots come back as images.

claude mcp add -s user rockdesk -- rds mcp      # Claude Code
codex mcp add rockdesk -- rds mcp               # Codex

Gemini CLI, Cursor, Claude Desktop, TRAE, Windsurf and other MCP clients take this standard config. It works on macOS, Windows and Linux: rockdesk-mcp finds the installed RockDesk by itself. It needs Node.js; with uv, uvx rockdesk-mcp works too. If RockDesk is not installed on this computer yet, it serves an install_rockdesk tool instead: the agent asks you first, then downloads the official package, installs it and loads the RockDesk tools.

{
  "mcpServers": {
    "rockdesk": {
      "command": "npx",
      "args": ["-y", "rockdesk-mcp"]
    }
  }
}

Or point the client at RockDesk itself (no Node.js needed): {"command": "rds", "args": ["mcp"]}. On macOS and Windows rds is not on the PATH: use /Applications/rockd.app/Contents/MacOS/rds or C:\Program Files\rockd\rds.exe.

If RockDesk isn't installed yet, the skill tells your agent to point you to the download page (or offer to install it for you).

MCP server

The source of rockdesk-mcp is in this repository: mcp/npm/bin/rockdesk-mcp.js (npm) and mcp/pypi/src/rockdesk_mcp (PyPI). It is a stdio MCP server:

  • With RockDesk installed, it serves RockDesk's 18 tools (status, devices, ping, shell, spawn, ls, copy, info, screenshot, click, move, scroll, type_text, key, clipboard_get, clipboard_set, forward, unforward) through the engine built into the RockDesk app (rds mcp), which makes the peer-to-peer connections.

  • Without RockDesk, it serves rockdesk_status and install_rockdesk, and the agent asks you before installing RockDesk.

Run it from source with node mcp/npm/bin/rockdesk-mcp.js or PYTHONPATH=mcp/pypi/src python3 -m rockdesk_mcp. The Dockerfile builds it together with RockDesk for Linux, so an MCP directory can start it and list the tools.

Things to ask

  • "123 456 789 is my office PC. How much space is left on C:, and how long has it been up?"

  • "On that Mac, open a Chrome guest window, fill in this form and copy what the server sends back here as order.json."

  • "Tail the service log on the robot computer and restart the service if it's stuck."

  • "Copy notes.txt to its desktop and open it."

How it works

rds never touches the network itself. It hands each command to the local RockDesk background service, which keeps one end-to-end encrypted connection per peer (QUIC, TLS 1.3) and reuses it for every later command: direct when NAT traversal works, through a relay otherwise. The relay only sees ciphertext.

The machine being controlled decides who gets in: click to allow, a one-time password, a fixed password, or a key pair shared across your own devices. Your agent can only do what that machine allows.

Data handling

  • Commands, files, screenshots and keystrokes go between your own machines over an end-to-end encrypted connection (QUIC, TLS 1.3). When there is no direct path they pass through a RockDesk relay, which only forwards ciphertext and stores nothing.

  • The RockDesk server sees what it needs to connect devices and check licenses: device IDs, network addresses, and your account email if you log in. It does not see session content.

  • The skill itself only runs the local rds command. It sends nothing to Anthropic or any other third party.

Pricing

Each device gets a 10-day free trial. After that see pricing.

License

Everything in this repository is MIT-licensed (LICENSE): the skill, the source of the rockdesk-mcp MCP server in mcp/, the plugin manifests and this README. The license does not cover the RockDesk software itself: RockDesk is proprietary and is used under the RockDesk Terms.

中文

先在两台电脑上装好 RockDesk(下载:rockdesk.cn):skill 只是教 AI 怎么用命令,真正干活的是 RockDesk。

RockDesk 让 Claude Code、Codex、DeepSeek Harness 这些 AI 直接操作你的另一台电脑:跑命令、传文件、截屏、点鼠标、敲键盘,按 ID 点对点连接,不用开端口、不用配 VPN。

安装 skill:在 Claude Code 里输入 /plugin marketplace add rockdesk-io/rockdesk-skill 和 /plugin install rockdesk@rockdesk,或者直接跟 AI 说「安装 https://rockdesk.io/rockdesk-cli.md 这个 skill」;Codex 用 codex plugin marketplace add rockdesk-io/rockdesk-skill 和 codex plugin add rockdesk@rockdesk 装成插件(或者上面那条 $skill-installer 命令);Gemini CLI 用 gemini extensions install https://github.com/rockdesk-io/rockdesk-skill 装成扩展;DeepSeek Harness(dsh)用 dsh plugin --profile <你的 profile> add github:rockdesk-io/rockdesk-skill 装成插件,或者把 skills/rockd-remote-control/ 拷到 ~/.agents/skills/(dsh 不读 ~/.claude/skills);也可以用 npx skills add rockdesk-io/rockdesk-skill 一条命令装好。不想装 skill 也行,直接接 MCP:claude mcp add -s user rockdesk -- rds mcp(Codex 是 codex mcp add rockdesk -- rds mcp),skill 和 MCP 爱用哪个用哪个。两台电脑都要装 RockDesk,国内从 rockdesk.cn 下载;固定的最新版直链是 https://rockdesk.cn/download/latest/<平台>,平台写 windows、macos、macos-x86_64、linux-amd64、linux-arm64 或 android。

本仓库里还有 MCP 服务 rockdesk-mcp 的源码(mcp/npm、mcp/pypi,MIT 许可),也就是官方 MCP 目录里的 io.rockdesk/rockdesk:装了 RockDesk 时提供 18 个工具,没装时提供 rockdesk_status、install_rockdesk(装之前先问你)。

常见问题

AI 怎么远程控制另一台电脑? 两台电脑都装 RockDesk,在本机的 AI 工具里接上 RockDesk(skill 或 MCP),然后直接用中文说,比如「连上 123456789,看看磁盘还剩多少,把 /var/log 里最近的错误整理给我」。AI 通过 RockDesk 的 rds 命令在那台电脑上跑命令、传文件、截屏、点鼠标、打字。两台电脑在不同网络、都没有公网 IP 也能连。

DeepSeek 能远程控制电脑吗?DeepSeek Harness 有控制远程电脑的插件吗? 能。DeepSeek Harness(dsh)装上 RockDesk 插件,就能按 ID 操作远程电脑:dsh plugin --profile <你的 profile> add github:rockdesk-io/rockdesk-skill(npm 包名 dsh-plugin-rockdesk)。

Claude Code、Codex 怎么远程控制服务器,不想配 SSH? Claude Code:claude mcp add -s user rockdesk -- rds mcp;Codex:codex mcp add rockdesk -- rds mcp。服务器上装 RockDesk 就行(也支持没有桌面的 Linux 服务器),不用 sshd、不用开端口。

有没有远程桌面的 MCP 服务器? rds mcp 是标准 stdio MCP 服务,18 个工具:shell、spawn、ls、copy、screenshot、click、move、scroll、type_text、key、clipboard_get、clipboard_set、forward 等。也可以用 npx -y rockdesk-mcp(npm)或 uvx rockdesk-mcp(PyPI)启动,它们会调用本机装好的 RockDesk。官方 MCP Registry 里的名字是 io.rockdesk/rockdesk。

没有公网 IP,怎么远程桌面连回家里电脑? RockDesk 按 9 位 ID 连接:能打洞就点对点直连,打不通自动走中继,内容端到端加密(QUIC / TLS 1.3),不用内网穿透、不用自己搭服务器。

Mac mini 放家里,怎么远程控制? Mac mini 上装 RockDesk,在外面用电脑或安卓手机输它的 ID 就能连:看桌面、开终端、传文件;它上面的 Claude Code / Codex 也能反过来操作你的其它电脑。见 Mac mini 远程控制指南。

手机能远程控制电脑吗? 安卓版 RockDesk 可以当遥控端,打开电脑的桌面或终端。

怎么远程调试另一台电脑上的串口、USB 设备? rds 123456789 serial /dev/ttyUSB0 115200 把远程串口接成本机的虚拟串口(本机这头是 Linux 或 macOS);rds 123456789 usb attach <busid> 把远程 USB 设备接到本机(USB 转发支持 Linux 和 Windows)。见 远程串口 / USB 调试指南。

Available Tools

18 tools
clickClickA

Click at x,y on the peer's display. By default x,y are pixels of the latest screenshot of that display (mapped to the real screen); set screen_pixels to pass real screen pixels.

Inputs: x (required), y (required), peer (required), button, +3 more.

clipboard_getRead clipboardB
Read-only

Read the peer's clipboard: text, or an image (returned as an image).

Inputs: peer (required).

clipboard_setWrite clipboardB

Put text on the peer's clipboard.

Inputs: peer (required), text (required).

copyCopy filesA

Copy a file or folder between this machine and the peer. Exactly one side is the peer's and starts with ':' — upload: from "./a.zip" to ":/home/u/a.zip"; download: from ":C:\logs\x.log" to "./x.log". Folders are copied recursively; big interrupted copies resume.

Inputs: to (required), from (required), peer (required).

devicesMy devicesA
Read-only

Machines logged in to the same rockd account as this one: name, ID, platform, online or not. Use it to find a machine's ID by name.

Inputs: no named parameters.

forwardPort forwardA

Forward a local TCP port to a host:port reachable from the peer (like ssh -L), e.g. "15432:db.internal:5432" or "8080:80" (the peer itself). The forward keeps running in the rockd daemon until unforward. Without spec: list running forwards.

Inputs: peer (required), spec.

infoDisplaysA
Read-only

The peer's displays: index, size, position, which is the main one. On Android it also says whether remote touch (accessibility) is enabled.

Inputs: peer (required).

keyPress keysA

Press a key or chord on the peer: Return, Escape, Tab, Backspace, Up, F5, ctrl+c, cmd+s (macOS), alt+F4, win+r ... Android also takes back / home / recents.

Inputs: keys (required), peer (required).

lsList directoryA
Read-only

List a directory on the peer (default: home) as JSON entries: name, kind (file / dir), size, mtime.

Inputs: peer (required), path.

moveMove pointerA

Move the pointer to x,y (same coordinates as click), e.g. to hover a menu.

Inputs: x (required), y (required), peer (required), display, +1 more.

pingPingA
Read-only

Connect to a peer if needed and measure the round trip; says whether the path is direct, LAN or relayed.

Inputs: peer (required).

screenshotScreenshotA
Read-only

Take a screenshot of the peer's display and return the image (scaled so the long edge is at most 1280 px). Coordinates you read off this image can be passed straight to click / move.

Inputs: peer (required), region, display.

scrollScrollA

Scroll the wheel at the pointer: dy > 0 scrolls down, dx > 0 right, in notches.

Inputs: dy (required), peer (required), dx.

shellRun commandA

Run one shell command on the peer and return its output and exit code. Windows peers: PowerShell. macOS / Linux / Android: the login shell. Chain steps in one command (&&, pipes) instead of many calls. Output over ~60 KB is cut in the middle.

Inputs: peer (required), command (required), timeout_sec.

spawnStart background processA

Start a detached process on the peer that outlives the call (servers, long builds). Returns its pid and log file path; read the log later with shell.

Inputs: peer (required), command (required).

statusThis machineA
Read-only

This machine's name, rockd ID and server state, LAN peers, and every live connection with its path (direct / LAN / relay) and RTT.

Inputs: no named parameters.

type_textType textA

Type text into the focused field on the peer (click the field first). Any Unicode, including Chinese.

Inputs: peer (required), text (required).

unforwardStop port forwardB

Stop a forward started with forward.

Inputs: peer (required), local_port (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 18 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: file listing/transfer, shell execution, detached processes, display inspection, input events, clipboard, device status, and port forwarding are cleanly separated. Potential overlaps like shell vs. spawn and status vs. ping are clarified by lifecycle and purpose.

    Naming Consistency4/5

    Names are consistently lowercase snake_case and generally readable, with compound names like type_text and clipboard_get/set handled predictably. There is minor verb/noun mixing across tools, but no chaotic or confusing naming convention.

    Tool Count4/5

    The 18 tools cover a broad remote-control domain with little redundancy; each capability, from screen input to forwarding, has a clear place. The count is slightly high but reasonable for a remote desktop/file/shell skill.

    Completeness4/5

    Core workflows are well covered: device discovery, connectivity, file listing/transfer, shell commands, detached processes, display screenshots, mouse/keyboard input, clipboard, and port forwarding. Minor gaps include direct file delete/rename/mkdir and explicit multi-display selection, though shell access can work around some file operations.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to control remote desktops through screen capture, mouse movement, and keyboard input.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants like Claude, Codex and ChatGPT to actually operate a computer — finding files, running commands, taking screenshots and driving a browser — and, after a one-time pairing, to help on family members' computers anywhere. Connections between machines are end-to-end encrypted through a relay, requiring no VPN, port forwarding or router setup.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to securely control trusted devices and perform filesystem, terminal, process, and document operations through a self-hosted remote service.
      1,287,096 npm
      MIT