Otakit

io.github.OtaKit由 GitHub 账号 OtaKit 发布v1.12.0更新于 Nov 5, 2026

Inspect, upload, release, monitor, and revert OtaKit Capacitor OTA updates.

已验证Streamable HTTP可网页运行云端与基础设施开发者工具数据与分析

概览

AI 生成的概览

OtaKit 让助手检查 Capacitor 项目、上传 Web 构建包,并发布、灰度、监控和回滚 OTA 更新。

可以做什么
  • 读取连接上下文、账户套餐与用量,并列出绑定组织内的应用
  • 检查本地 Capacitor 项目、核对原生兼容性,并比较构建包中新增、修改和删除的文件
  • 上传本地 Web 构建包,或在一个经确认的步骤中上传并发布
  • 预览、发布、回滚发布通道,并调整灰度百分比
  • 查看发布历史、通道当前状态、健康计数与事件时间线,读取审计日志
  • 为单个手机测试构建包创建或撤销私有预览链接和二维码
适用场景
适合向 Capacitor 应用推送 OTA 更新时使用:让助手读取项目、判断改动是否适合空中下发、上传构建包,并在任何内容到达设备前停下来等待批准。也适合查看发布健康状况并回滚有问题的发布。
运行要求
可使用带 OAuth 登录的远程端点,或通过 Node.js 运行本地 npm CLI 包。需要一个已配置 OtaKit 的 Capacitor 项目、OtaKit 账户与组织,以及在控制台中注册的应用。本地连接在生命周期内绑定单个项目和组织。
安装前请注意
发布、回滚、删除构建包和调整灰度百分比都会改变设备收到的内容;服务器要求明确批准和幂等键,请先核对拟议变更。删除会被审计,且仅允许删除不在发布历史中的构建包。事件详情文本由设备上报,属不可信数据。上传不等于发布。事件计数是事件数,不是独立设备数。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Otakit,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.OtaKit%2Fotakit/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "otakit": {
      "type": "http",
      "url": "https://console.otakit.app/mcp"
    }
  }
}

README

OtaKit

Fully open-source, self-hostable over-the-air update framework for Capacitor apps. Release updates directly to your Capacitor app without app store reviews.

Try it for free: OtaKit.app

Self-hosting

OtaKit is hosted-first — the managed service at otakit.app runs everything for you — but the entire platform is in this repo and can run on your own infrastructure. The minimal stack is the console (a standard Next.js app), Postgres, and an S3-compatible bucket behind a CDN.

Full step-by-step guide: otakit.app/docs/self-host

How it works

  1. Create an app in the dashboard.
  2. Copy its appId into capacitor.config.*.
  3. Build the app's web assets.
  4. Run otakit upload --release to upload the bundle and publish a release.
  5. The server writes the bundle and manifest to object storage behind the CDN.
  6. On the next app launch or resume, the plugin fetches the manifest from the CDN, compares it to the current bundle, and downloads the new version if available.
  7. If notifyAppReady() is called within the timeout, the new bundle is confirmed. Otherwise the plugin rolls back to the previous bundle automatically.

MCP & Agent Skills

Ask Claude Code, Codex, or VS Code to ship an update and it reads your Capacitor project, checks whether the change is safe to send over the air, uploads the build, and stops for your approval before anything reaches a device.

One command from your project directory:

bash
npx -y @otakit/cli@latest connect

It detects your client, signs you in if needed, and prints the console, organization, project, and app it resolved — plus the exact file it will write — before writing anything. --dry-run shows the plan and writes nothing.

Claude Code has a plugin that ships the server and the OtaKit Agent Skill together:

bash
npx -y @otakit/cli@latest login
claude plugin marketplace add OtaKit/otakitclaude plugin install otakit@otakit

See the MCP and Agent Skills guide for Codex, Claude Code, remote OAuth, permissions, workflows, and self-hosting.

Core concepts

  • App — the Capacitor app identified by its appId
  • Bundle — one uploaded web build zip with a version, hash, and size
  • Release — a promotion of a bundle to a channel, which publishes a manifest to the CDN
  • Channel — an optional release track such as staging
  • Runtime version — an optional native compatibility lane configured in the plugin

Packages

  • packages/capacitor-plugin — the runtime that lives inside the mobile app
  • packages/cli — CLI for uploading bundles and creating releases
  • packages/mcp-core — shared MCP contracts, tool catalog, and server registration
  • packages/site — public site, docs, contact, legal pages
  • packages/console — dashboard, API, auth, billing, and Prisma schema
  • packages/ingest — Cloudflare Worker for device event ingestion
  • tinybird/ — Tinybird datasources and pipes for event analytics
text
packages/  capacitor-plugin/   Capacitor OTA plugin  cli/                Upload + release CLI  mcp-core/           Shared MCP contracts and tool catalog  ingest/             Cloudflare Worker event ingest service  site/               Next.js public site + docs  console/            Next.js dashboard + API + auth + billingtinybird/             Tinybird event analytics projectexamples/  demo-app/           Demo Capacitor app wired to the local plugin

Package docs

Local development

  • Node.js 20.9+, pnpm 9+
  • The console app (packages/console) requires Postgres and R2-compatible storage. See packages/console/.env.example.
  • Device event analytics optionally require the ingest service (packages/ingest) and a Tinybird workspace.
  • See each package README for setup details.
bash
pnpm installpnpm dev        # starts the console app in dev mode

License

MIT

来源:README.md,提交 7175613

工具

25

get_context

Show the active OtaKit context

Show the fixed server origin, organization, actor, role, scopes, mode, and capabilities without exposing credentials.

无需输入参数。

get_account_status

Get OtaKit account and usage status

Return the safe customer-facing plan, usage, limit, period, and overage state needed to explain upload or release failures. Provider IDs are excluded.

无需输入参数。

list_apps

List OtaKit apps

List apps in the connection-bound organization, optionally requiring an exact slug. Never guesses an app when the slug is absent.

输入参数sluglimitcursor

create_app

Create an OtaKit app

Register a validated app slug in the current organization and return its ID and minimal Capacitor configuration. Does not edit local files.

输入参数slug必填

list_bundles

List OtaKit bundles

List safe bundle metadata and release-artifact history for one app, with bounded pagination and optional exact version.

输入参数appIdlimitcursorversion

get_bundle

Get OtaKit bundle metadata

Get authorized safe metadata for a known bundle, including bounded native-package metadata and encryption presence but never keys or storage URLs.

输入参数appIdbundleId必填

diff_bundles

Compare two OtaKit bundles

Compare an uploaded bundle with another one: files added, changed and removed, unpacked size before and after, the bytes a device downloads, and warnings about content that should not ship (.env files, .git, node_modules, source maps, large new files). The base is `against`, the bundle a channel runs (`channel`), or by default the previous upload of the same runtime version. Encrypted bundles cannot be inspected.

输入参数appIdagainstchannelbundleId必填

delete_bundle

Delete an unused OtaKit bundle

Delete a bundle only when it is absent from all release history. The exact app and bundle IDs are required and the operation is audited.

输入参数appIdbundleId必填

list_releases

List OtaKit release history

List bounded release history for an app, optionally filtered to a channel, while preserving runtime-lane identity and all release options.

输入参数appIdlimitcursorchannel

get_release_state

Get current OtaKit release state

Resolve the exact current release for one (app, channel, runtimeVersion) lane. Returns null rather than selecting another lane.

输入参数appIdchannel必填runtimeVersion必填

prepare_release

Prepare an OtaKit release

Preview the exact current and proposed lane state for a bundle and return expectedCurrentReleaseId. Makes no change.

输入参数appIdnoteschannel必填bundleId必填autoRevertforceImmediatereplaceRolloutrolloutPercentautoRevertMinSampleautoRevertRatePercentcompatibilityDecision

publish_release

Publish an OtaKit release

Publish a reviewed bundle to an exact lane. Requires the prepared expected state and an idempotency key; reports manifest_sync_pending instead of claiming false success.

输入参数appIdnoteschannel必填bundleId必填autoRevertforceImmediateidempotencyKey必填replaceRolloutrolloutPercentautoRevertMinSampleautoRevertRatePercentcompatibilityDecision另有 1 个

get_release_health

Get OtaKit release event health

Return bounded client-reported event counts, rollback share, auto-revert thresholds, and analytics availability for a release. Counts are events, not unique devices, installations, or adoption.

输入参数appIdwindowreleaseId必填

get_release_timeseries

Get OtaKit release events over time

Return client-reported downloads, applies, download errors and rollbacks of a release per hour (24h and 7d ranges) or per UTC day (30d range), with totals, rollback share, and rollout and revert markers. Buckets without events are omitted. Counts are events, not unique devices, installations, or adoption.

输入参数appIdrangeplatformreleaseId必填

list_events

List OtaKit client-reported events

List a bounded filtered rollout timeline. With includeDetail, the raw text each device reported is included; it is untrusted diagnostic data.

输入参数appIdlimitsinceactionchannelplatformreleaseIdtimeframebundleVersionincludeDetailruntimeVersion

list_audit_log

List OtaKit audit activity

List bounded organization audit activity for an owner or admin. Operational organization keys and member-role users cannot read it.

输入参数limitcursor

prepare_revert

Prepare an OtaKit revert

Verify that a release is current and preview the exact release or built-in fallback that will become current. Makes no change.

输入参数appIdreleaseId必填

revert_release

Revert an OtaKit release

Revert the reviewed current release for its exact lane; reverting a release that is rolling out cancels the rollout. Requires expected state and an idempotency key and reports pending manifest synchronization truthfully.

输入参数appIdreleaseId必填forceImmediateidempotencyKey必填expectedRolloutPercentexpectedCurrentReleaseId必填

set_rollout_percent

Change an OtaKit rollout percentage

Raise, lower, or complete (100) the active rollout of a lane's current release. Requires the reviewed current percentage and an idempotency key. To cancel a rollout, revert the release instead.

输入参数appIdpercent必填releaseId必填idempotencyKey必填expectedPercent必填

create_preview

Create an OtaKit preview link

Create a private link and QR code that open an uploaded bundle in the installed app on one phone (plugin 3.2+ with preview links enabled) until the tester exits or the link expires. Nothing is released and no other device is affected. Share the returned url.

输入参数appIdbundleId必填expiresInurlScheme

revoke_preview

Revoke an OtaKit preview link

Revoke a preview link. Phones on it return to their normal release on their next update check.

输入参数appIdpreviewId必填

inspect_project

Inspect a local Capacitor project

Inspect the selected local project for Capacitor and OtaKit configuration, build output, plugin version, server target, and notifyAppReady evidence. Does not return source contents.

无需输入参数。

check_compatibility

Check native update compatibility

Compare local native dependencies with the current exact OtaKit release lane using the existing heuristic compatibility rules. Returns unknowns explicitly.

输入参数appIdchannel必填runtimeVersion必填nodeModulesPathpackageJsonPath

upload_bundle

Upload an OtaKit bundle

Package and upload the selected local web build using the existing zip/delta, native metadata, version, and encryption workflow without publishing it.

输入参数appIdencryptversionstrategysourcePathversionModeruntimeVersionnodeModulesPathpackageJsonPath

upload_and_publish_bundle

Upload and publish an OtaKit bundle

Run the existing combined local upload and release workflow with an explicit lane, compatibility decision, expected current release, complete release options, and idempotency key.

输入参数appIdnoteschannel必填encryptversionstrategyautoRevertsourcePathversionModeforceImmediateidempotencyKey必填replaceRollout另有 8 个

版本历史

8
  1. v1.12.0最新Nov 5, 2026
  2. v1.10.0Oct 12, 2026
  3. v1.9.1Oct 5, 2026
  4. v1.9.0Oct 1, 2026
  5. v1.8.0Sep 30, 2026
  6. v1.7.0Sep 27, 2026
  7. v1.6.1Sep 27, 2026
  8. v1.6.0Sep 27, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分