Remote Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Remote Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
remote-mcp 是一组面向 coding agent 的 MCP 服务器,用来在 SSH 主机和 WSL 发行版里运行命令、管理任务,并以更适合模型使用的方式读写远程文件。
它不是远程常驻 agent:MCP 服务器运行在本地,SSH 版本通过本机 ssh 命令连接远程主机,WSL 版本通过本机 WSL 调用发行版。远程侧只需要常见的 shell 工具;文件编辑、patch 解析、编码检测、sha256 校验都在本地完成。
这个仓库的代码和文档由 OpenAI Codex 根据用户需求迭代生成和整理。用户提出了设计目标、测试反馈和取舍方向,但没有手写代码。请把它当成一个 AI 生成的实验性工具来审计和使用,不要默认认为它已经经过了传统人工维护项目的安全审查。
兼容性主要围绕 Codex 和 OpenCode 做过专门调整,例如 *_file_edit 的参数别名、Codex-style apply_patch 格式说明、结构化返回信息等。Claude Code 没有专门适配;理论上只要客户端按标准 MCP 调用工具就可以使用,但这里没有做专门验证。
很多 MCP 服务器只解决本地文件系统,很多 SSH MCP 只解决远程命令执行。这个项目夹在中间:它更关心模型如何低成本、少出错地修改远程目录里的文件。
典型场景:
edit 做简单替换,用 apply_patch 做多文件、多 hunk、新增文件。@remote-mcp/ssh:SSH 命令、脚本、任务、设备 profile 和 SSH 文件工具。@remote-mcp/wsl:WSL 命令、脚本、任务、会话和 WSL 文件工具。@remote-mcp/shared:共享实现,不作为独立 MCP 加载。SSH 和 WSL 分开加载。你只需要 SSH 就只启用 SSH MCP,只需要 WSL 就只启用 WSL MCP。
WSL:
wsl_sessionwsl_execwsl_scriptwsl_taskwsl_file_readwsl_file_writewsl_file_editwsl_file_apply_patchwsl_file_listwsl_file_statwsl_file_searchSSH:
ssh_profilessh_execssh_scriptssh_taskssh_file_readssh_file_writessh_file_editssh_file_apply_patchssh_file_listssh_file_statssh_file_search简单替换优先用 *_file_edit:
old_string 必须精确匹配。replace_all=true 时替换所有匹配项。oldString、newString、replaceAll。expected_sha256 做乐观锁;冲突时返回当前文件内容和当前 sha256。复杂修改用 *_file_apply_patch:
*** Add File 和 *** Update File。structuredContent.normalizations。structuredContent.warnings。工具返回 MCP 的 content 和 structuredContent:
content 给人或模型快速扫结果。structuredContent 放稳定字段,例如 path、sha256、bytes、encoding、warnings。structuredContent.text,content[0].text 只放摘要,避免客户端同时展示两份大文本。npm install
npm run buildnode packages/ssh/dist/index.js
node packages/wsl/dist/index.jsSSH:
[mcp_servers.ssh]
command = 'node'
args = ['C:\path\to\remote-mcp\packages\ssh\dist\index.js']
startup_timeout_sec = 30
[mcp_servers.ssh.env]
SSH_MCP_DEFAULT_TARGET = "[email protected]"
SSH_MCP_BATCH_MODE = "1"
SSH_MCP_STRICT_HOST_KEY_CHECKING = "accept-new"WSL:
[mcp_servers.wsl]
command = 'node'
args = ['C:\path\to\remote-mcp\packages\wsl\dist\index.js']
startup_timeout_sec = 30
[mcp_servers.wsl.env]
WSL_MCP_DEFAULT_DISTRO = "Ubuntu-24.04"不同客户端的 MCP 配置格式略有差异,请按客户端文档调整字段名和路径。
devices.json、.env 和 node_modules 已加入 .gitignore。*_file_apply_patch 不支持删除文件。/mnt 下的常见递归删除操作。MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.