Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

mobile-dev-server-sandbox移动开发服务器沙箱

Agent Skill

mobile-dev-server-sandbox 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

724

周安装

29

GitHub Stars

1,686

下载量

234
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mobile-dev-server-sandbox(移动开发服务器沙箱)
来源仓库:https://github.com/coder/mux
仓库路径:skills/mobile-dev-server-sandbox
安装命令:
npx skills add https://github.com/coder/mux --skill mobile-dev-server-sandbox
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/coder/mux --skill mobile-dev-server-sandbox

简介

用于查找、检索和筛选移动开发相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库 README 核验具体用法和功能范围。
  • 安装前建议确认权限范围和是否会触发联网操作。
  • 需注意维护状态和执行边界。mobile-dev-server-sandbox 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Mobile + dev-server-sandbox

Use this skill when work needs the mobile app connected to an isolated backend, especially for UI tasks in Expo web where an agent can interact through Chrome MCP.

Important auth behavior in this workflow

make dev-server-sandbox delegates to make dev-server, and the dev server runs with --no-auth.

For this sandbox flow:

  • leave mobile Auth Token empty
  • do not expect token mismatch to be a valid failure mode
  • only configure a token when intentionally testing an auth-enabled server path

Quick start (deterministic)

Preferred: one command for backend + proxy + mobile web

BACKEND_PORT=3900 \
VITE_PORT=5174 \
MOBILE_CORS_PROXY_PORT=3901 \
KEEP_SANDBOX=1 \
make mobile-sandbox

This starts:

  • isolated backend sandbox (dev-server-sandbox) on 127.0.0.1:3900
  • local CORS proxy on 127.0.0.1:3901 → forwards to backend
  • Expo web app on http://localhost:8081

Why the proxy exists:

  • backend origin validation for /orpc is intentionally strict
  • mobile web and backend use different origins in dev (:8081 vs :3900)
  • proxy keeps backend strictness while enabling local browser-based mobile UI testing

Manual path (if you need separate terminals)

  1. Start isolated backend sandbox
BACKEND_PORT=3900 \
VITE_PORT=5174 \
KEEP_SANDBOX=1 \
make dev-server-sandbox
  1. Start local mobile CORS proxy
MOBILE_BACKEND_PORT=3900 \
MOBILE_CORS_PROXY_PORT=3901 \
# Optional when the mobile origin is not localhost:8081:
# MOBILE_CORS_ALLOWED_ORIGINS="http://localhost:8081,http://127.0.0.1:8081"
make mobile-cors-proxy
  1. Start Expo web
EXPO_PUBLIC_BACKEND_URL=http://127.0.0.1:3901 make mobile-web
EXPO_PUBLIC_BACKEND_URL now feeds Expo extra.mux.baseUrl defaults. Settings can still override it.

Pair connection settings in app settings

In the mobile UI (http://localhost:8081):

  • open Settings
  • set Base URL to http://127.0.0.1:3901 (proxy)
  • clear Auth Token (or leave it empty)

After this, the URL persists in app storage.

Agent workflow checklist

Copy this checklist and keep it updated while working:

Mobile sandbox progress:
- [ ] Step 1: Start backend + proxy + mobile (`make mobile-sandbox`)
- [ ] Step 2: Verify Base URL points to proxy (:3901) and token is empty
- [ ] Step 3: Verify project/workspace list loads
- [ ] Step 4: Implement UI change
- [ ] Step 5: Re-verify via Chrome MCP + screenshots

Chrome MCP prerequisites

  • Ensure Google Chrome is installed and discoverable by MCP.
  • If MCP says Chrome executable is missing, install Chrome before retrying.
  • Avoid killing Chrome processes manually (pkill, kill -9) while using MCP; restart the workspace instead if MCP gets wedged.

Chrome MCP loop (for UI work)

Use this exact order for reliable UI automation:

  1. chrome_navigate_pagehttp://localhost:8081
  2. chrome_emulate with mobile viewport:

- width 390 - height 844 - deviceScaleFactor: 3 - isMobile: true - hasTouch: true

  1. chrome_take_snapshot to identify interactable elements
  2. chrome_click / chrome_fill to drive flows
  3. chrome_take_screenshot for visual confirmation after each meaningful step

Optional: direct device testing (phone/tablet)

If testing from a physical device, expose backend on LAN:

BACKEND_HOST=0.0.0.0 \
BACKEND_PORT=3900 \
VITE_PORT=5174 \
KEEP_SANDBOX=1 \
make dev-server-sandbox

Then run a proxy host reachable from the device and set mobile Base URL to that proxy URL.

Validation loop (do not skip)

  1. Backend reachable:

- http://127.0.0.1:3900/health responds

  1. Proxy reachable:

- http://127.0.0.1:3901/health responds

  1. Mobile connected:

- project list loads without auth/CORS errors

  1. Streaming works:

- open workspace and confirm live chat updates

  1. If any check fails, fix config and re-run the same checks.

Troubleshooting

  • Unexpected auth errors: this sandbox flow is no-auth; confirm token is empty.
  • Failed to fetch immediately after changing settings: press Retry once after returning from Settings; initial fetch may still reflect stale state.
  • Origin not allowed from proxy: include your mobile web origin in MOBILE_CORS_ALLOWED_ORIGINS.
  • Connection refused: wrong port or backend/proxy not running.
  • CORS 403 from backend: verify Base URL is proxy :3901 (not backend :3900).
  • Works on desktop browser, fails on real device: device cannot use localhost; use LAN/VPN IPs.
  • Sandbox vanished after exit: re-run with KEEP_SANDBOX=1.

Implementation references

Use these files when behavior needs to be confirmed:

  • scripts/dev-server-sandbox.ts
  • scripts/mobile-cors-proxy.ts
  • mobile/src/orpc/client.ts
  • mobile/src/contexts/AppConfigContext.tsx
  • mobile/src/shims/backendBaseUrl.ts
  • mobile/app.config.js
  • mobile/metro.config.js
  • src/node/orpc/server.ts
  • src/node/services/serverLockfile.ts
  • Makefile targets: mobile-sandbox, mobile-cors-proxy, dev-server-sandbox, mobile-web, test-mobile, typecheck-react-native

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.24%
按下载量换算80

Claude

29.43%
按下载量换算69

Cursor

18.92%
按下载量换算44

Gemini CLI

9.56%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills