# appstore_list_apps

> 列出團隊已連結的 Apple 團隊中 App Store Connect 上的所有 App，以及建置每個 App 的專案。

Source: https://air.build/tw/docs/mcp-tools/appstore_list_apps/

列出團隊每個已連結 Apple 團隊中 App Store Connect 上的所有 App，以及建置每個 App 的專案，依 bundle ID 比對。大多數 App Store 工具以 `projectId` 指定 App；沒有專案建置的 App 則以這裡的 `appId` 指定。它不會變更任何內容。

未連結的 Apple 團隊會被略過。某個已連結的 Apple 團隊無法讀取時，其他團隊仍會列出，無法讀取的那個會寫在 `unreachable` 中。

| 唯讀 | 破壞性 | 冪等 |
| --- | --- | --- |
| 是 | 否 | 是 |

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | yes | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/)。 |

每個工具對輸入進行的檢查，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 結果

一個 JSON 物件，同時以文字和 `structuredContent` 傳回。

| 欄位 | 說明 |
| --- | --- |
| `apps` | 找到的所有 App，每個 Apple 團隊最多 1,000 個 |
| `apps[].appId` | App Store Connect 為該 App 指定的 ID |
| `apps[].name` | 它的 App Store 名稱 |
| `apps[].bundleId` | 它的 bundle ID |
| `apps[].sku` | 它的 SKU |
| `apps[].primaryLocale` | 它的主要語言，例如 `en-US` |
| `apps[].appleTeamId`, `apps[].appleTeam` | 它所屬的 Apple 團隊 |
| `apps[].projectId`, `apps[].project` | 建置它的專案；團隊中沒有專案使用它的 bundle ID 時為 null |
| `unreachable` | 僅在有 Apple 團隊無法讀取時出現：每個 Apple 團隊一行，包含名稱和原因 |

```json
{
  "apps": [
    {
      "appId": "1234567890",
      "name": "Notes",
      "bundleId": "com.example.notes",
      "sku": "com.example.notes",
      "primaryLocale": "en-US",
      "appleTeamId": "00000000-0000-0000-0000-000000000000",
      "appleTeam": "Example Inc.",
      "projectId": "00000000-0000-0000-0000-000000000000",
      "project": "Notes"
    }
  ]
}
```

## 錯誤

拒絕存取的 Apple 團隊會在 `unreachable` 中回報，而不會讓呼叫失敗。沒有已連結的 Apple 團隊時，`apps` 為空：請參閱 [appstore_list_apple_teams](https://air.build/tw/docs/mcp-tools/appstore_list_apple_teams/)。

## 範例

```json
{
  "name": "appstore_list_apps",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000"
  }
}
```
