MCP 工具

创建或编辑正在准备的 App Store 版本:版本号、构建版本、发布方式、分阶段发布、版权信息以及 App 审核所需的内容。

创建或编辑正在为 App Store 准备的版本:版本号、随版本发布的构建版本、发布方式(手动、获批后立即发布,或在指定日期发布,可选择在 7 天内分阶段发布)、版权信息,以及 App 审核所需的内容(联系人、演示账户、备注)。只有发送的输入会被更改。

没有正在准备的版本时,它会新建一个,此时 versionString 为必填。已有正在准备的版本时,传入不同的 versionString 会修改它的版本号。它不会改动商店信息文本或截屏(见 appstore_update_store_listing 和 appstore_upload_screenshots),也不会提交(见 appstore_submit_for_review)。

只读 破坏性 幂等
否 否 是

输入

输入 类型 必填 默认值 作用
teamId 字符串(UUID) yes — 团队,来自 list_teams。
projectId 字符串(UUID) 与 appId 二选一 — 这个 App 所属的项目,来自 list_projects:这是指定 App 的常用方式。App 是 App Store Connect 上 bundle ID 与该项目构建的 bundle ID 相同的那个。两者都发送时,使用 projectId。
appId string 与 projectId 二选一 — 来自 appstore_list_apps 的 App Store Connect App ID,用于没有项目构建的 App。
appleTeamId 字符串(UUID) no 所有已连接的 Apple 团队 团队的某个 Apple 团队,来自 appstore_list_apple_teams。配合 appId 时,只在这个 Apple 团队中查找该 App。配合 projectId 时不需要:由项目的 App 决定。
platform 字符串:IOS、MAC_OS、TV_OS、VISION_OS no IOS 哪个平台的 App Store 版本。
versionString string 新建版本时必填 — 版本号,例如 1.2.0。
buildId string no — 附加这个构建版本,来自 appstore_list_builds。
buildNumber string no — 附加使用这个构建号的最新未过期构建版本,例如 42。
useLatestBuild boolean no — 附加该版本号的最新未过期构建版本。
release 字符串:manual、afterApproval、scheduled no — 版本获批后如何发布。scheduled 需要 scheduledDate。
scheduledDate 字符串(ISO 8601 日期时间) 配合 scheduled 时必填 — 最早发布时间,例如 2026-11-01T09:00:00Z。
phasedRelease boolean no — true 会在 7 天内把更新逐步推送给开启了自动更新的用户;false 关闭此功能。
copyright string no — 例如 2026 Example Inc.
reviewContact 对象:firstName、lastName、phone、email(字符串) no — App 审核的联系人。只有发送的字段会被更改。
demoAccount 对象 name、password(都必填),或 null no — App 审核可以使用的登录信息;App 不需要登录时为 null。
reviewNotes 字符串,最多 4,000 个字符 no — 给 App 审核的备注。

每个工具对输入所做的检查见 服务器与登录。

结果

一个 JSON 对象,同时以文本和 structuredContent 返回。

字段 说明
version 更改之后的版本(字段见下文)
review App 审核获得的内容;没有设置任何内容时为 null:contact(firstName、lastName、phone、email)、demoAccount(name,password 只显示为 "(set)";不需要演示账户时为 null)以及 notes

版本的字段:

字段 说明
versionId Apple 给该版本的 ID
version 版本号,例如 1.2.0
state Apple 给出的版本状态,例如 PREPARE_FOR_SUBMISSION、WAITING_FOR_REVIEW、IN_REVIEW、PENDING_DEVELOPER_RELEASE、READY_FOR_SALE、REJECTED
releaseType MANUAL、AFTER_APPROVAL 或 SCHEDULED,或 null
scheduledRelease 定时发布的最早发布日期,或 null
copyright 版权信息,或 null
build 附加的构建版本,buildId 和 buildNumber,或 null
phasedRelease 分阶段发布,state(INACTIVE、ACTIVE、PAUSED、COMPLETE)和 day(7 天中的第几天),或 null
createdAt 版本的创建时间
{
  "version": {
    "versionId": "00000000-0000-0000-0000-000000000000",
    "version": "1.2.0",
    "state": "PREPARE_FOR_SUBMISSION",
    "releaseType": "AFTER_APPROVAL",
    "scheduledRelease": null,
    "copyright": "2026 Example Inc.",
    "build": {
      "buildId": "00000000-0000-0000-0000-000000000000",
      "buildNumber": "42"
    },
    "phasedRelease": null,
    "createdAt": "2026-11-18T09:00:00Z"
  },
  "review": {
    "contact": {
      "firstName": "Alex",
      "lastName": "Doe",
      "phone": "+1 555 0100",
      "email": "review@example.com"
    },
    "demoAccount": null,
    "notes": "Notes"
  }
}

错误

每个错误都以工具错误(isError: true)返回。斜体 文字代表句中的具体值。所有工具都可能返回的错误见 服务器与登录。

消息 何时出现 怎么办
No version is being prepared: pass versionString to start one, e.g. 1.2.0. 没有可以更改的版本,且没有发送 versionString 发送 versionString
App Store Connect did not create the version. Apple 的回答中没有新版本 用 appstore_app_status 查看状态,然后重试
release must be manual, afterApproval or scheduled. release 是其他值 发送这三个值之一
scheduledDate is required. release: "scheduled" 但没有 scheduledDate 发送 scheduledDate
Build number is state: only a processed build can be attached. 构建版本仍在处理中,或处理失败 等待处理完成(appstore_list_builds),或选择另一个构建版本
No build number of version version on App Store Connect. See appstore_list_builds. 此版本中没有构建版本使用该 buildNumber 用 appstore_list_builds 查看
No build of version version has reached App Store Connect yet. ask in the Project’s channel (send_message) for a TestFlight build. 使用了 useLatestBuild,但该版本号没有任何构建版本 用 send_message 请项目的智能体构建一个版本
No such build. buildId 没有对应的构建版本 从 appstore_list_builds 获取 buildId
No build number on App Store Connect. See appstore_list_builds. 没有未过期的构建版本使用该 buildNumber 用 appstore_list_builds 查看
No build of this app has reached App Store Connect yet. Uploading one is the Team’s Agents’ work: ask in the Project’s channel (send_message) for a TestFlight build. App 完全没有未过期的构建版本 用 send_message 请项目的智能体构建一个 TestFlight 版本
Pass projectId, or appId from appstore_list_apps. projectId 和 appId 都没有发送 发送其中一个
This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team’s Agent to build it, or pass appId. 该项目从未构建过 iOS 版本 请项目的智能体构建一个 iOS 版本(send_message),或用 appId 指定 App
This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project’s), or pass appId. 团队已连接的 Apple 团队中没有 App 的 bundle ID 与项目相同,或没有连接任何 Apple 团队 用 appstore_create_app 创建 App,或用 appId 指定另一个 App
No connected Apple team of this Team has that app. See appstore_list_apps. appId 不是任何已连接 Apple 团队(或 appleTeamId)中的 App 从 appstore_list_apps 获取 ID
platform must be IOS, MAC_OS, TV_OS or VISION_OS. platform 是其他值 发送这四个值之一
App Store Connect: Apple’s sentence Apple 拒绝了请求。后面最多附上 Apple 自己的五句话,Apple 指明相关字段时会在括号中注明。App Store Connect 中有待接受的 Apple 协议时,也会这样被拒绝 按 Apple 的说明处理。协议由 Apple Developer 账户的账户持有人在 App Store Connect 中接受(商务 › 协议)
App Store Connect answered status. Try again in a moment. Apple 拒绝了,但没有说明原因 稍后再试

示例

{
  "name": "appstore_prepare_version",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "versionString": "1.2.0",
    "useLatestBuild": true,
    "release": "afterApproval",
    "reviewContact": {
      "firstName": "Alex",
      "lastName": "Doe",
      "phone": "+1 555 0100",
      "email": "review@example.com"
    },
    "demoAccount": null
  }
}