otakit

v1.12.0
io.github.OtaKit/otakit Checked 54 minutes ago Published 26 days ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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.

ParameterTypeDescription
cursorstringThe previous page's nextCursor; omit for the first page
limitintegerMaximum apps (1-50, default 20)
slugstringReturn only the app with exactly this slug

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.

ParameterTypeDescription
slug *stringApp slug, unique in the organization: 3-120 letters, digits, dots, underscores or hyphens

list_bundles List OtaKit bundles

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

ParameterTypeDescription
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
cursorstringThe previous page's nextCursor; omit for the first page
limitintegerMaximum results in one page
versionstringReturn only bundles with exactly this version

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.

ParameterTypeDescription
bundleId *stringOtaKit bundle ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.

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.

ParameterTypeDescription
bundleId *stringBundle to inspect (the newer one)
againststringBundle to compare with; omit to use channel or the previous upload
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
channelCompare with the stable bundle this channel runs for the bundle's runtime version; null for the base channel

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.

ParameterTypeDescription
bundleId *stringOtaKit bundle ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.

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.

ParameterTypeDescription
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
channelNamed channel, or null for the base channel
cursorstringThe previous page's nextCursor; omit for the first page
limitintegerMaximum results in one page

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.

ParameterTypeDescription
channel *Named channel, or null for the base channel
runtimeVersion *Native runtime lane, or null for the default runtime
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.

prepare_release Prepare an OtaKit release

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

ParameterTypeDescription
bundleId *stringOtaKit bundle ID
channel *Named channel, or null for the base channel
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
autoRevertbooleanEnable rollback-share based automatic revert for this release
autoRevertMinSampleintegerWith autoRevert: completed trials (applied plus rolled back) needed before the share is trusted (10-100000, default 50)
autoRevertRatePercentintegerWith autoRevert: share of completed update trials that rolled back, over 24 hours, that triggers the revert (1-95, default 20)
compatibilityDecisionstringWhen the bundle's native dependencies differ from the lane's current release: block (default) refuses; proceed publishes anyway, only after confirming no store build is needed; skip does not compare
forceImmediatebooleanMake devices apply and reload on their next check
notesPlain-text release notes, up to 2,000 characters, delivered with the release. Apps on plugin 3.3+ can show them to their users. Null or omitted for none.
replaceRolloutbooleanRevert the lane's active rollout and publish this bundle in its place
rolloutPercentintegerShare of devices (1-100, default 100) that receive this release; below 100 starts a gradual rollout on a lane that already has a release

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.

ParameterTypeDescription
bundleId *stringOtaKit bundle ID
channel *Named channel, or null for the base channel
expectedCurrentReleaseId *Release ID shown by prepare, or null when the lane had no release
idempotencyKey *stringStable key reused only when retrying this exact mutation
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
autoRevertbooleanEnable rollback-share based automatic revert for this release
autoRevertMinSampleintegerWith autoRevert: completed trials (applied plus rolled back) needed before the share is trusted (10-100000, default 50)
autoRevertRatePercentintegerWith autoRevert: share of completed update trials that rolled back, over 24 hours, that triggers the revert (1-95, default 20)
compatibilityDecisionstringWhen the bundle's native dependencies differ from the lane's current release: block (default) refuses; proceed publishes anyway, only after confirming no store build is needed; skip does not compare
forceImmediatebooleanMake devices apply and reload on their next check
notesPlain-text release notes, up to 2,000 characters, delivered with the release. Apps on plugin 3.3+ can show them to their users. Null or omitted for none.
replaceRolloutbooleanRevert the lane's active rollout and publish this bundle in its place
rolloutPercentintegerShare of devices (1-100, default 100) that receive this release; below 100 starts a gradual rollout on a lane that already has a release

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.

ParameterTypeDescription
releaseId *stringOtaKit release ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
windowstringPeriod the counts cover, ending now (default 24h)

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.

ParameterTypeDescription
releaseId *stringOtaKit release ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
platformstringOnly count events from this platform (default both)
rangestringPeriod ending now: 24h or 7d in hourly buckets, 30d in daily UTC buckets (default 24h for releases published in the last two days, otherwise 7d)

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.

ParameterTypeDescription
actionstringOnly events of this kind
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
bundleVersionstringOnly events for this bundle version
channelNamed channel, or null for the base channel
includeDetailbooleanSet false to leave out each event's raw client-reported detail text, which is included by default
limitintegerMaximum events (1-200, default 50)
platformstringOnly events from this platform
releaseIdstringOtaKit release ID
runtimeVersionNative runtime lane, or null for the default runtime
sincestringOnly events after this ISO 8601 time; takes precedence over timeframe
timeframestringHow far back to look when since is not set (default 24h)

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.

ParameterTypeDescription
cursorstringThe previous page's nextCursor; omit for the first page
limitintegerMaximum results in one page

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.

ParameterTypeDescription
releaseId *stringOtaKit release ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.

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.

ParameterTypeDescription
expectedCurrentReleaseId *stringOtaKit release ID
idempotencyKey *stringStable key reused only when retrying this exact mutation
releaseId *stringOtaKit release ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
expectedRolloutPercentintegerWhen cancelling a rollout: the rollout percentage that was reviewed. The revert is refused if the rollout changed or completed meanwhile.
forceImmediatebooleanMake devices apply and reload on their next check

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.

ParameterTypeDescription
expectedPercent *integerRollout percentage shown by get_release_state when the change was reviewed
idempotencyKey *stringStable key reused only when retrying this exact mutation
percent *integerRollout percentage (1-100); 100 completes the rollout
releaseId *stringOtaKit release ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.

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.

ParameterTypeDescription
bundleId *stringOtaKit bundle ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
expiresInstringHow long the link works (default 7d)
urlSchemestringThe app's custom URL scheme (for example myapp), needed once per app so the link can open it

revoke_preview Revoke an OtaKit preview link

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

ParameterTypeDescription
previewId *stringOtaKit preview link ID
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.

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.

ParameterTypeDescription
channel *Named channel, or null for the base channel
runtimeVersion *Native runtime lane, or null for the default runtime
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
nodeModulesPathstringnode_modules holding those dependencies; defaults to the one beside package.json
packageJsonPathstringpackage.json that declares the app's native dependencies; defaults to the project root's

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.

ParameterTypeDescription
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
encryptbooleanRequire encryption with OTAKIT_ENCRYPTION_KEY and fail if it is not set; bundles are encrypted whenever that variable is set
nodeModulesPathstringnode_modules holding those dependencies; defaults to the one beside package.json
packageJsonPathstringpackage.json that declares the app's native dependencies; defaults to the project root's
runtimeVersionNative runtime lane, or null for the default runtime
sourcePathstringBuilt web assets directory in the project; defaults to Capacitor's webDir
strategystringzip uploads one archive; deltas uploads files separately so devices download only changed ones. Defaults to the project's updateStrategy, then zip
versionstringBundle version; defaults to OTAKIT_VERSION, then a generated one
versionModestringstrict requires version or OTAKIT_VERSION; auto (default) generates a version when neither is set

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.

ParameterTypeDescription
channel *Named channel, or null for the base channel
expectedCurrentReleaseId *Release ID shown by prepare, or null when the lane had no release
idempotencyKey *stringStable key reused only when retrying this exact mutation
appIdstringOtaKit app ID. Optional on a local connection whose project configures one; required otherwise.
autoRevertbooleanEnable rollback-share based automatic revert for this release
autoRevertMinSampleintegerWith autoRevert: completed trials (applied plus rolled back) needed before the share is trusted (10-100000, default 50)
autoRevertRatePercentintegerWith autoRevert: share of completed update trials that rolled back, over 24 hours, that triggers the revert (1-95, default 20)
compatibilityDecisionstringWhen the bundle's native dependencies differ from the lane's current release: block (default) refuses; proceed publishes anyway, only after confirming no store build is needed; skip does not compare
encryptbooleanRequire encryption with OTAKIT_ENCRYPTION_KEY and fail if it is not set; bundles are encrypted whenever that variable is set
forceImmediatebooleanMake devices apply and reload on their next check
nodeModulesPathstringnode_modules holding those dependencies; defaults to the one beside package.json
notesPlain-text release notes, up to 2,000 characters, delivered with the release. Apps on plugin 3.3+ can show them to their users. Null or omitted for none.
packageJsonPathstringpackage.json that declares the app's native dependencies; defaults to the project root's
replaceRolloutbooleanRevert the lane's active rollout and publish this bundle in its place
rolloutPercentintegerShare of devices (1-100, default 100) that receive this release; below 100 starts a gradual rollout on a lane that already has a release
runtimeVersionNative runtime lane, or null for the default runtime
sourcePathstringBuilt web assets directory in the project; defaults to Capacitor's webDir
strategystringzip uploads one archive; deltas uploads files separately so devices download only changed ones. Defaults to the project's updateStrategy, then zip
versionstringBundle version; defaults to OTAKIT_VERSION, then a generated one
versionModestringstrict requires version or OTAKIT_VERSION; auto (default) generates a version when neither is set