响应式网站不等于应用商店 App
应用商店上架、推送通知和设备 API,都需要在 Web code 外再套一层原生 App 外壳。
面向拥有 Web 应用的团队
连接 Capgo MCP,您的 AI 代理即可使用 Capacitor 封装 Web 构建,应用移动端设计和商店规则,并通过 Capgo Build 构建用于 App Store 和 Google Play 的签名 iOS 和 Android 应用。上线后,将 Web 变更作为 Live Update 发布。您的 Web code 保持为唯一来源。
了解 Capgo MCP 如何引导您的 AgentAI 智能体 + Capgo MCP
claude mcp add --transport http capgo https://api.capgo.app/mcp
claude "Turn this web app into an iOS and Android app with the Capgo MCP" capgo_plan_mobile_app 规划静态构建、最新的 Capacitor、应用 ID 及商店发布步骤
capgo_recommend_plugins 根据功能需求选择插件及其权限
capgo_get_mobile_checklist 应用移动端设计规范及商店审核规则
capgo_check_mobile_readiness 反复检查项目,直到没有阻碍发布的问题
capgo_request_build 在云端构建已签名的 iOS 和 Android 应用
您的 Web 应用
React、Vue、Angular、Svelte 或任何可构建为静态文件的技术栈
您持续更新的商店应用
云端构建原生 iOS 和 Android 项目,通过 OTA 更新
问题
应用商店上架、推送通知和设备 API,都需要在 Web code 外再套一层原生 App 外壳。
Xcode、Android Studio、签名证书、keystore 和应用商店记录,都是团队以前没做过的工作。
Web 应用合并代码就能发布。应用商店 App 每次变更都要等审核,通常 24–48 小时,有时更久。
开始之前
大多数 Web 应用只需少量改动就能在 Capacitor 中运行。以下三项检查可及早发现常见问题。
Capacitor 从单个文件夹(webDir)加载构建后的文件。Vite、Angular 和 Vue 默认就会生成这种输出。Next.js 则需要静态导出。
使用 Capacitor 的 Next.js请确保客户端路由、OAuth 重定向和链接在 App 内都能正常工作,而不只是在您的域名下。
Web 应用转 Capacitor 指南列出哪些功能需要原生插件:推送通知、相机、文件、生物识别或应用内购买。
Capacitor 插件解决方案
Capacitor 为您的 Web App 提供原生壳层。Capgo 负责构建、发布至应用商店并保持更新。
Capacitor 会将构建好的 Web 应用放入原生 iOS 和 Android 项目。插件让 JavaScript 可以调用设备功能。
Capacitor 插件您的 AI 代理或 CLI 请求 iOS 和 Android 构建。iOS 构建在云端 Mac 上运行,因此团队中无需任何人拥有 Mac。构建时间取决于您的项目;请参阅公开的 Native Build 数据页面以查看实测的处理和排队时间。
Capgo 构建文档已签名的构建会上传到 App Store Connect 和 Google Play。首次发布和每次原生变更仍需经过商店审核。
Capgo 构建文档无需发布新的商店版本,即可向已安装的应用推送 JavaScript、HTML、CSS 和资源变更。先在 staging channel 上测试。
Channels 文档工作原理
从现有 Web 应用到商店构建和 Live Update。您的 AI 代理通过 Capgo MCP 执行这些步骤,或者您自行运行 Capgo CLI 命令。
连接 Capgo MCP 并向您的代理提问。它将应用切换为静态构建,安装最新版本的 Capacitor,设置应用名称和 ID,添加 iOS 和 Android 项目,并应用移动设计规则。
claude mcp add --transport http capgo https://api.capgo.app/mcp
claude "Turn this web app into an iOS and Android app with the Capgo MCP" 使用 AI 指南将 Web 应用转换为移动应用 Onboarding 会将你的应用添加到 Capgo,创建生产 Channel,安装 updater 插件,并带你完成首次测试更新。
npx @capgo/cli@latest init CLI onboarding 指南 签名只需配置一次,之后即可发起 iOS 和 Android 构建。签名后的构建会上传到 App Store Connect 和 Google Play 进行审核。
npm run build && npx cap sync
npx @capgo/cli@latest build init --platform ios
npx @capgo/cli@latest build init --platform android
npx @capgo/cli@latest build request --platform ios
npx @capgo/cli@latest build request --platform android Capgo 构建文档 用户安装商店版应用后,将每个新的 Web build 上传到 channel。原生变更仍需发布新的商店 build。
npm run build
npx @capgo/cli@latest bundle upload --channel production 发布更新 AI 智能体 + Capgo MCP
将托管的 Capgo MCP 连接到 Claude、Cursor、Codex、VS Code、ChatGPT 或 Lovable。您的 Agent 将获得基于最新 Capacitor 版本的逐步计划、合适的插件、设计与商店审核清单,以及一项就绪检查,它会持续运行直到应用准备好发布。
将 Capgo MCP 服务器添加到您的 AI 客户端并登录 Capgo。无需安装任何内容。
claude mcp add --transport http capgo https://api.capgo.app/mcp 从代码库、在线网站或仅仅是一个想法开始。Agent 会检查项目,并在更改任何内容之前向您展示计划和 App ID。
Turn this web app into an iOS and Android app with Capacitor using the Capgo MCP. Show me the plan and the app ID first. Agent 会将 Web 构建切换为静态输出,添加 Capacitor,应用移动设计规则(如安全区域和返回按钮),并安装您的功能所需的插件。
它会修复就绪检查报告的问题,在模拟器或您的手机上运行应用,然后使用 Capgo 构建并发布。
capgo_plan_mobile_app 逐步计划:静态构建、Capacitor、移动设计、插件、模拟器、Capgo 构建以及商店提交,每项均包含命令和检查。
capgo_recommend_plugins 针对每个原生功能的官方和 Capgo 插件,包括其权限和商店规则。
capgo_get_mobile_checklist 设计并存储规则:安全区域、键盘、导航、图标、Apple 最低功能要求、账户删除、应用内购买以及 Google Play 测试。
capgo_check_mobile_readiness 一项就绪检查,列出仍阻碍发布的问题及修复方法。
给您的编码代理的 Prompt
You are turning this web app into an installable iOS and Android app with Capacitor.
If the Capgo MCP server (https://api.capgo.app/mcp) is connected:
1. Inspect the project first: package.json dependencies and devDependencies, the lockfile, capacitor.config, the ios/ and android/ folders, node --version and, on macOS, xcodebuild -version.
2. Call capgo_plan_mobile_app with what you found, the native features the app needs, and its traits (accounts, digital goods, third-party login). Show me the plan, the warnings, and the proposed app name and app ID, then wait for my confirmation.
3. Work through the phases in order and run each step's verify checks before moving on. Use capgo_recommend_plugins when a native feature comes up and capgo_get_mobile_checklist for the design and store rules.
4. After each round of changes, call capgo_check_mobile_readiness with the facts you inspected and fix what it reports until ready is true.
5. Run the app on a simulator, an emulator, or my phone, and show me what you see.
6. Ask before creating Capgo apps, uploading bundles, or starting native builds. Never ask me to paste signing secrets into the chat.
If the Capgo MCP is not connected or you cannot run local tools, create a clean handoff document instead. Inspect the app and return:
1. The framework, package manager, production build process, and build output folder.
2. Whether the app can be exported or committed to a real Git repository.
3. The app name, bundle ID or package ID suggestion, app icon and splash-screen source, and any missing brand assets.
4. Auth, redirect, deep-link, storage, camera, push, payment, geolocation, file, or notification features that need native plugin planning.
5. Routing, environment variables, API URLs, and asset assumptions that could break inside a native WebView.
6. A proposed Capacitor configuration, including appId, appName, webDir, and required plugins, without inventing secrets.
7. A release-channel plan: production, staging, preview, and rollback expectations for web-layer updates.
8. A list of tasks that must happen outside this environment, such as Apple signing, Android keystore setup, native sync, store records, and signed builds.
9. A docs/mobile-release-handoff.md file with the exact checklist, open questions, and files that a developer or build service should handle next.
10. A short summary of what you changed, what you could not do in this environment, and the next human action. 使用 Capacitor 构建的应用
已在 Web 端运行的产品可以将相同的 code 用 Capacitor 封装,发布到 App Store 和 Google Play,并继续以 Live Updates 形式发布 Web 层改进。
一款在 Web 端和手机端使用的受众投票产品,演讲者和参与者都希望流程保持一致。
拥有大型 Web 产品的市场平台,其招聘、消息和账户页面也会在应用商店 App 中提供。
一家电视节目单服务商,网站访问量很大,应用商店里的 App 展示相同的节目指南和编辑内容。
设计,圆角半径 5
“Capgo Build 帮我们简化了 Capacitor 应用的发布流程。通过一套清晰的工作流,我们就能构建并发布 iOS 和 Android 应用。”
NuTriQ 创始人
“无需等待完整的 App Store 审核周期,就能即时推送生产环境的 OTA 更新,这为我们带来了巨大的运营优势。”
谁付钱,谁说了算
“自从开始使用 Capgo,一切都更快了,我也能在不耽误日常生活的情况下,把用户应得的时间留给他们。”
常见问题
为把现有 Web 应用上架 App Store 和 Google Play 的团队提供简短解答。
不需要。Capacitor 可以在原生 iOS 和 Android 项目中运行您现有的 Web build。您只需在需要设备功能时添加插件,即可让 Web 和移动端共用一套 codebase。
Web 应用转 Capacitor 指南是的,支持静态导出。Capacitor 从您的构建输出文件夹加载文件,因此请设置 output: 'export' 并将 webDir 指向导出文件夹。Vite、Angular 和 Vue 默认生成静态输出。
使用 Capacitor 的 Next.js不需要。Capgo Build 会在云端 Mac 机器上运行 iOS 构建,并将签名后的 build 上传到 App Store Connect。你仍然需要一个 Apple Developer 账号。
Capgo 构建文档JavaScript、HTML、CSS 和资源文件可以通过 Live Update 发布。但如果需要添加 plugin、更改权限或更新 Capacitor,则需要重新做一次 store build。
Live update 还是 Native Build?可以。在 GitHub Actions、GitLab CI 或任何 pipeline 完成 web build 后运行 bundle upload;当 native code 发生变化时,直接从同一个 pipeline 请求 Native Build 即可。
CI/CD 集成可以。连接托管的 Capgo MCP,让智能体将应用转换为 iOS 和 Android 应用。它会遵循包含设计和商店审核检查的计划,并在构建前运行就绪检查。您需要确认应用 ID,拥有商店账户,并批准原生构建。
使用 AI 指南将 Web 应用转换为移动应用开始 14 天免费试用,连接 Capgo MCP,让 AI 智能体将您的 Web 应用推向首次 iOS 和 Android 构建。 选择包含 14 天退款保证的计划,连接 Capgo MCP,让 AI 智能体将您的 Web 应用推向首次 iOS 和 Android 构建。
通过 Capgo Build 将您的 Web App 转化为 iOS 和 Android 应用。
来自 Martin 的人工支持
14 天无限免费试用。无需信用卡 14 天退款保证。随时取消。
有企业级需求? 联系我们的团队