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.
npx skills add plhys/Cloud2Local --skill cloud-to-local-mcpgit clone --depth 1 https://github.com/plhys/Cloud2LocalWrote 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.
[](https://agentmods.dev/skills/plhys/cloud2local/cloud-to-local-mcp)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.01023 |
| Opus 5 | $0.00039 | $0.00511 |
| Sonnet 5 | $0.00016 | $0.00205 |
| Haiku 4.5 | $0.00008 | $0.00102 |
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 6d ago.
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.
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
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.
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.
- 6d ago First seen · 87 lines · 79 tokens per session scan A a1db1fa3c6a2
cloud-to-local-mcp is a skill published in the GitHub repository plhys/Cloud2Local (0 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 1,023 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…