Token导航 LogoToken导航

MCP Server · 运维云端

Remote Demo MCP

Remote Demo MCP是一个通过rsync将预构建的静态目录部署到远程主机的本地服务器工具,支持交互式SSH流程和OTP验证。

未说明官方级别未说明来源级核验工具 5
TypeScriptCursor自动化部署

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
jake-bcn
提供方
jake-bcn

工具数量

5

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

2 个

MCP World

选型结论

Remote Demo MCP 属于运维云端类 MCP Server,公开资料标注 5 个工具,通过传输方式未标注接入,适配 Cursor,没有现成的安装命令;接入前要先准备 会话凭据。

分类

运维云端

传输方式

未说明

认证方式

会话凭据

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 5 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

Remote Demo MCP

Local MCP server that deploys a pre-built static directory to a remote host with rsync.

What It Does

  • Uses fixed deployUser from MCP config
  • Derives project from localDir basename
  • Uploads localDir contents to:

- /var/www/html/demo-remote/{user}/{project}/

  • Uses local rsync command
  • Supports OTP/interactive SSH flows by attaching rsync session to /dev/tty
  • On failure, asks whether to retry until user cancels

Install

npm install
npm run build

Config

Default config path:

  • ~/.config/remote-demo-mcp/config.json

Override path with:

  • REMOTE_DEMO_MCP_CONFIG=/abs/path/config.json

Example:

{
  "deployUser": "demo_user-01",
  "publicBaseUrl": "https://example.com",
  "sessionLog": {
    "enabled": false,
    "path": "/tmp/remote-demo-mcp-session.log",
    "logInputValue": false
  },
  "ssh": {
    "host": "xxx.xxx.xxx.xxx",
    "port": 2222,
    "username": "alice123#ec2-user#52.76.147.44",
    "interactiveAuth": true,
    "password": "",
    "hostKeyPolicy": "accept-new",
    "autoFillPassword": true
  },
  "rsyncOptions": ["-az", "--delete"]
}

The server automatically enables resumable uploads by appending:

  • --partial
  • --checksum
  • --progress (unless rsyncOptions already includes --progress or --info=...)

Compatibility note:

  • Interactive session mode uses node-pty. If you see posix_spawnp failed on macOS/Linux, it is often caused by non-executable node-pty helper (.../node-pty/prebuilds/*/spawn-helper). This server now checks and auto-fixes helper execute permission at session start.

Remote target base path is hard-coded and cannot be overridden:

  • /var/www/html/demo-remote

Tool

deploy_static

Keywords:

  • EN: deploy to remote, deploy demo, publish demo, upload static site
  • 中文: 部署到远程, 部署demo, 部署 demo, 发布demo, 上传静态网页

user rules:

  • deployUser is app user id for remote path, not SSH username
  • Allowed chars: A-Z a-z 0-9 _ -
  • Not allowed: ., .., spaces, /, \\, and other special characters

Input:

{
  "localDir": "/abs/path/to/dist",
  "clientCwd": "/abs/path/on-mcp-client",
  "dryRun": false
}

localDir path resolution:

  • Absolute path: used directly
  • Relative path: resolved against clientCwd if provided
  • Fallback for relative path: CODEX_START_DIR if set, otherwise process.cwd() (server start directory)

Project name resolution:

  • If clientCwd is provided, project name uses the last path segment of clientCwd
  • Otherwise, project name uses the last path segment of resolved localDir

Behavior note:

  • If ssh.interactiveAuth=true and dryRun=false, deploy_static will fail fast by design.
  • For OTP/password interactive deploy, use:

1. start_deploy_session 2. poll_deploy_session 3. submit_deploy_input when nextAction=submit_input

  • Host-key confirm (yes/no) and password prompts are auto-handled in session mode.
  • OTP is still manual: call submit_deploy_input when nextAction=submit_input.

Output (structuredContent):

{
  "ok": true,
  "attempts": 1,
  "user": "alice",
  "project": "my-site",
  "remotePath": "/var/www/html/demo-remote/alice/my-site/",
  "publicUrl": "https://example.com/alice/my-site/index.html",
  "message": "Deploy succeeded after 1 attempt(s)."
}

verify_deploy

Input:

{
  "url": "https://example.com/alice/my-site/index.html",
  "timeoutMs": 8000
}

Interactive OTP Session Tools

Use these when OTP/password must be entered during deploy in non-TTY hosts:

  1. start_deploy_session
  2. poll_deploy_session (read output and progress; if state=waiting_input, submit code)
  3. submit_deploy_input (send OTP/password)
  4. repeat step 2 until state is succeeded or failed
  5. optional cancel_deploy_session

poll_deploy_session supports incremental output by cursor and returns nextCursor.

Session tools return nextAction to make orchestration deterministic:

  • submit_input: call submit_deploy_input
  • poll: call poll_deploy_session
  • done: workflow finished (succeeded / failed / cancelled)

Session logging:

  • Configure in MCP config file under sessionLog.
  • sessionLog.enabled default is false.
  • sessionLog.path default is /tmp/remote-demo-mcp-session.log.
  • sessionLog.logInputValue default is false (only input length is logged).
  • Interactive session tools run rsync in a PTY, so password/OTP prompts can be detected via poll_deploy_session.

SSH host key policy:

  • accept-new (default): first-time host key is auto-accepted; changed key is rejected.
  • strict: never auto-accept unknown host key.
  • insecure: disable host key validation (high risk; for temporary/debug use only).

Codex CLI interactive flow:

  1. Call start_deploy_session
  2. Loop poll_deploy_session
  3. If needsInput=true or nextAction=submit_input, call submit_deploy_input with OTP/password. The tip display to user is "Please Enter MFA Code." or "Please Enter Password."
  4. Continue polling until nextAction=done

Agent protocol contract (for MCP clients like Codex):

  1. Call start_deploy_session once.
  2. Read nextAction from response.
  3. If nextAction=submit_input, call submit_deploy_input.
  4. If nextAction=poll, call poll_deploy_session.
  5. Repeat steps 2-4 until nextAction=done.
  6. Never call deploy_static for OTP flows; use session tools only.
  7. While polling, relay transfer progress from output to the end user continuously.

Output (structuredContent):

{
  "ok": true,
  "url": "https://example.com/alice/my-site/index.html",
  "status": 200,
  "statusText": "OK",
  "responseTimeMs": 123,
  "message": "URL is reachable: HTTP 200 in 123ms"
}

Run

npm run dev
# or
npm run build && npm start

Initialize config file:

remote-demo-mcp init

It creates:

  • ~/.config/remote-demo-mcp/config.json
  • Interactive mode shows each current field value for editing.
  • Press Enter without input to keep the current value unchanged.
  • If config already exists, init asks whether to modify, then asks final confirmation before overwrite.

codex 使用

安裝 npm 包

npm install -g    @jake.e-com365/remote-demo-mcp

codex 添加 mcp

codex mcp add remote-demo-mcp remote-demo-mcp  

remote-demo-mcp 的配置

remote-demo-mcp init
vi ~/.config/remote-demo-mcp/config.json
{
  "deployUser": "jake",
  "publicBaseUrl": "https://demo-remote.e-com365.com/",
  "ssh": {
    "host": "xxx.xxx.xxx.xxx",
    "username": "alice123#ec2-user#18.140.183.126",
    "interactiveAuth": true,
    "port": 2222,
    "password": "xxx",
    "hostKeyPolicy": "accept-new",
    "autoFillPassword": true
  },
  "rsyncOptions": ["-az", "--delete"]
}

工具与能力

工具数量

5

资源数量

0

提示词数量

0

能力标签

静态站点部署TypeScript本地部署远程同步SSH交互自动化部署

支持客户端

Cursor

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 只提供 5 个工具,职责集中,接入后不容易误操作。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 需要自备会话凭据,没有凭据没法直接试。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Cursor 的用户,接入路径最短。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 暂时拿不到会话凭据的人。
  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Remote Demo MCP

MCP World · 本页

5未说明未标注2 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Remote Demo MCP 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

Remote Demo MCP 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

Remote Demo MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Remote Demo MCP 需要 API Key 吗?

公开资料标注的认证方式是会话凭据,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

Remote Demo MCP 支持哪些客户端?

公开资料标注支持 Cursor;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP