cloud-to-local-mcp

cloud-to-local-mcp is a skill for Claude Code, Codex from plhys/Cloud2Local. It costs 79 tokens per session (1,023 once invoked), scanned A, original, MIT.

A connection guide for using Cloud2Local MCP to access a remote Windows machine. MCP is a standard way for an AI agent to call tools such as file and command operations.

In plain words
What is it for?
Use it to read or write files, run approved commands and scripts, inspect projects, or run Git, Node.js, and Python operations on the remote machine.
Why use it?
It explains how to connect, authenticate, and reuse a session instead of repeating the connection setup for every request.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to read or write files, run approved commands and scripts, inspect projects, or run Git, Node.js, and Python operations on the remote machine.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plhys/cloud2local/cloud-to-local-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add plhys/Cloud2Local --skill cloud-to-local-mcp
Clone the repo
git clone --depth 1 https://github.com/plhys/Cloud2Local

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-to-local-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/plhys/cloud2local/cloud-to-local-mcp/github.svg)](https://agentmods.dev/skills/plhys/cloud2local/cloud-to-local-mcp)
Your own site
<a href="https://agentmods.dev/skills/plhys/cloud2local/cloud-to-local-mcp"><img src="https://agentmods.dev/badge/skills/plhys/cloud2local/cloud-to-local-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloud-to-local-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/plhys/cloud2local/cloud-to-local-mcp"><img src="https://agentmods.dev/badge/skills/plhys/cloud2local/cloud-to-local-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01023
Opus 5.5 $0.00032 $0.00409
Sonnet 5.5 $0.00016 $0.00205
Haiku 4.5 $0.00008 $0.00102

Measured 2mo ago against content hash a1db1fa3c6a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-to-local-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mcp-stream.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cloud-to-local-mcp/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloud2Local MCP

通过 MCP 协议连接远端 Windows 机器,受 fileRoot 和命令白名单约束。

注意: 下面「连接信息」里的公网地址 / Token / fileRoot 是示例环境配置。 请以 Cloud2Local 客户端启动 MCP 后界面上显示的「云端地址 + Token」为准,并按实际 fileRoot 修改命令中的路径。

连接信息

  • mcporter 服务名: cloud-to-local-remote(可按客户端配置自行命名)
  • 公网地址: https://cloudtolocal.ideasir.com/mcp(示例,以实际为准)
  • 鉴权: Authorization: Bearer <token>
  • 远端 OS: Windows (win32/x64)
  • fileRoot: E:\AIcode\tbox(示例,以实际为准)

优化客户端

使用 scripts/mcp-stream.mjs 替代 mcporter call,避免每次重复握手(~1.5s vs ~5s)。

node scripts/mcp-stream.mjs <server-name> <tool-name> '<params-json>'

使用示例:

# 获取服务端信息
node scripts/mcp-stream.mjs cloud-to-local-remote get_server_info

# 执行命令
node scripts/mcp-stream.mjs cloud-to-local-remote run_command '{"command":"git status"}'
node scripts/mcp-stream.mjs cloud-to-local-remote run_command '{"command":"node -v"}'

# 列出目录
node scripts/mcp-stream.mjs cloud-to-local-remote list_directory '{"path":"E:\\AIcode\\tbox"}'
node scripts/mcp-stream.mjs cloud-to-local-remote list_directory '{"path":"E:\\AIcode\\tbox","depth":2}'

# 读取文件
node scripts/mcp-stream.mjs cloud-to-local-remote read_file '{"path":"E:\\AIcode\\tbox\\package.json"}'

# 运行脚本(避免 Windows 引号转义)
node scripts/mcp-stream.mjs cloud-to-local-remote run_script '{"language":"node","code":"const fs=require(\"fs\");console.log(fs.readdirSync(\".\").join(\"\\n\"))"}'

状态缓存: ~/.openclaw/workspace/.cache/mcp-stream/state.json

  • 初始化状态自动缓存,后续调用跳过握手
  • session 过期后自动重新 init(无需手动清理)

可用工具

工具 用途
get_server_info 查看 fileRoot / allowedCommands / OS
run_command 执行命令(受白名单限制)
run_script 写临时文件执行脚本(推荐,避免转义)
read_file 读取文件(受 fileRoot 限制)
write_file 写入文件(受 fileRoot 限制)
list_directory 列出目录,可选 depth
screenshot 截取主屏幕(返回 base64 PNG)

安全边界

  • fileRoot: E:\AIcode\tbox — 超出此路径的文件操作会被拒绝
  • 命令白名单: python, node, pip, npm, git, powershell, cmd 等(详见 get_server_info)
  • 路径要用 Windows 反斜杠转义: E:\\AIcode\\tbox

Read the full file on GitHub · 87 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 87 lines · 79 tokens per session scan A a1db1fa3c6a2

Subscribe to this mod's changes

cloud-to-local-mcp is a skill published in the GitHub repository plhys/Cloud2Local (0 stars, last pushed 3mo ago), licensed MIT. It adds 79 tokens to every session and 1,023 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

cloud-to-local-mcp compared with skills from other repositories

cloud-to-local-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-to-local-mcpplhys/Cloud2LocalSkill03mo agoMITA79Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k2d agoMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100k2d agoApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394kyesterdayMITA36Claude Code
systematic-debuggingobra/superpowersSkill315k5d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code