MCP 工具

AirBuild MCP 伺服器的位址、傳輸方式和協定版本,用戶端的 OAuth 登入,以及所有工具都可能傳回的錯誤。

AirBuild MCP 伺服器讓 MCP 用戶端以登入者的身分在 AirBuild 中操作:讀取和傳送聊天訊息、管理團隊、操控團隊的模擬器,以及處理團隊在 App Store 上的 App。本頁說明每個用戶端在第一次呼叫工具前需要了解的內容。若要在 Claude、ChatGPT、Cursor 或 Codex 中設定,請參閱 MCP 伺服器。

伺服器網址 https://mcp.air.build/mcp
傳輸方式 Streamable HTTP:僅限 POST
登入 使用 PKCE(S256)的 OAuth 2.1 授權碼,簽發者為 https://air.build
範圍 airbuild(唯一的範圍)
協定版本 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26
伺服器名稱 airbuild(“AirBuild”)

傳輸方式

  • 每個請求都是一次送往 https://mcp.air.build/mcp 的 POST,攜帶一則 JSON-RPC 2.0 訊息,並帶有 Authorization: Bearer <access token>。
  • 伺服器是無狀態的。它從不簽發 Mcp-Session-Id,也沒有可以用 GET 開啟的串流:對伺服器網址發出 GET 會傳回 405,並帶有 Allow: POST, OPTIONS。
  • 批次請求(訊息的 JSON 陣列)會被拒絕。
  • 通知和回應(沒有 id 的訊息)會以 202 接受,且沒有本文。
  • 如果用戶端要求的協定版本是上面四個之一,initialize 就以該版本回答,否則以最新版本(2026-07-28)回答。回答中還帶有給模型的簡短說明。
  • ping、tools/list 和 tools/call 依 MCP 規格運作。prompts/list、resources/list 和 resources/templates/list 會傳回空清單。
  • 以瀏覽器為基礎的用戶端可以從任何來源呼叫伺服器(CORS 是開放的,並且公開了 WWW-Authenticate)。
  • 對 https://mcp.air.build/ 發出 GET 會以 JSON 傳回伺服器的名稱和它的 MCP 網址。

大多數工具會以一個 JSON 回應回答。可能需要數分鐘的工具(目前是 wait_message),在請求的 Accept 標頭包含 text/event-stream 時,會以 Server-Sent Events 串流回答:串流中每 15 秒有一則保持連線的註解;當有進度且用戶端在呼叫的 _meta 中傳送了 progressToken 時,會有一則 notifications/progress 訊息;最後是結果。如果 Accept 中沒有 text/event-stream,同一個工具會在完成時以一般 JSON 回答。

使用 OAuth 登入

伺服器本身不保存任何金鑰:用戶端讓使用者在 air.build 上登入,並傳送取得的存取權杖。除了伺服器網址之外,不需要任何設定。支援 MCP 授權流程的用戶端會自行完成以下所有步驟:

  1. 用戶端在沒有權杖或權杖已失效的情況下呼叫伺服器。伺服器會傳回 401,帶有 WWW-Authenticate: Bearer resource_metadata="https://mcp.air.build/.well-known/oauth-protected-resource/mcp",本文為 {"error":"invalid_token","error_description":"Sign in to AirBuild to use this connector."}。
  2. 用戶端讀取該受保護資源中繼資料(RFC 9728)。其中指明資源 https://mcp.air.build/mcp、授權伺服器 https://air.build、範圍 airbuild 以及 header bearer 方式。同一份文件也位於 https://mcp.air.build/.well-known/oauth-protected-resource。
  3. 用戶端讀取 https://air.build/.well-known/oauth-authorization-server(RFC 8414),取得下方的端點。
  4. 沒有用戶端 ID 的用戶端會在註冊端點自行註冊(動態用戶端註冊,RFC 7591)。
  5. 用戶端在瀏覽器中開啟授權端點,帶上 response_type=code、它的 client_id 和 redirect_uri、一個 state、一個 PKCE code_challenge 及 code_challenge_method=S256,也可以帶上 resource=https://mcp.air.build/mcp 和 scope=airbuild。
  6. 如果使用者尚未登入 AirBuild,會先登入,然後看到授權同意頁面(見下文)。Allow 會把瀏覽器帶回 redirect_uri,附帶 code、state 和 iss=https://air.build;Deny 會帶著 error=access_denied 返回。
  7. 用戶端在權杖端點以授權碼交換權杖(grant_type=authorization_code,附帶 PKCE code_verifier),取得存取權杖和重新整理權杖。它在每次呼叫時都以 Authorization: Bearer … 傳送存取權杖。
  8. 存取權杖過期後,伺服器會再次傳回 401,用戶端以 grant_type=refresh_token 在權杖端點取得一組新的權杖。
端點 位址
授權 https://air.build/oauth/authorize
權杖 https://air.build/oauth/token
註冊 https://air.build/oauth/register
撤銷 https://air.build/oauth/revoke
中繼資料欄位 值
response_types_supported code
grant_types_supported authorization_code, refresh_token
code_challenge_methods_supported S256(必須提供 challenge)
token_endpoint_auth_methods_supported none, client_secret_post, client_secret_basic
revocation_endpoint_auth_methods_supported none, client_secret_post, client_secret_basic
scopes_supported airbuild
authorization_response_iss_parameter_supported true
  • 權杖、註冊和撤銷端點只接受 POST,並接受來自任何來源的呼叫。權杖端點接受表單編碼或 JSON 格式的本文。
  • 重新整理權杖會輪替:每次重新整理都會傳回一個新的重新整理權杖,用戶端必須保存最新的那一個。在撤銷端點撤銷重新整理權杖會結束連線。
  • 一個人對每個 App 只有一個連線:再次授權同一個 App 會取代它的權杖。

頁面標題為 Allow app name to use AirBuild as you?。頁面會寫明 App 的名稱;對於 AirBuild 尚未驗證的 App,會加上「AirBuild has not verified this app.」(已驗證的 App 名稱旁會顯示 Verified);頁面還會顯示瀏覽器將返回的主機,並說明該 App 將以已登入帳號的身分,在此人所在的每個團隊中操作,權限與此人在那裡的權限相同。airbuild 範圍只能全部授予或全部不授予;它允許 App:

  • 以此人的身分讀取和搜尋聊天、回應,以及傳送訊息和檔案;
  • 建立、重新命名、封存和刪除專案及群組聊天,下載專案建置的 App,以及在聊天中加入或移除人和 Agent;
  • 僱用、編輯和移除 Agent,並管理它們的排程;
  • 重新命名團隊、變更圖片、邀請他人、讓申請加入的人加入、移除成員,以及查看團隊的 AI 用量;
  • 啟動和控制團隊的模擬器、在上面安裝 App 以及錄製螢幕;
  • 使用團隊擁有者的 Apple 帳號存取 App Store Connect。

Use another account 會登出並返回登入頁面,同時保留請求。Allow 和 Deny 會完成請求。

登入錯誤

使用者或用戶端看到的內容 何時出現 處理方式
頁面:This sign-in link is incomplete 授權請求缺少必要的參數 從用戶端重新開始連線
頁面:This sign-in link is too long 授權請求太長,無法在登入過程中保留 以更短的請求重新開始(更少或更短的參數)
頁面:This app is not registered with AirBuild 不明的 client_id 先註冊用戶端(第 4 步),然後重新開始
頁面:This app asked to return somewhere unexpected redirect_uri 不是用戶端註冊過的位址 使用已註冊的重新導向 URI。這種情況下 AirBuild 從不重新導向
頁面:This sign-in has expired 從開始到完成超過了 10 分鐘,或瀏覽器遺失了請求 從用戶端重新開始
頁面:This app is no longer available 用戶端已被停用,或它的重新導向 URI 已不再註冊 重新註冊,或聯絡用戶端的開發者
“Another connection was started in this browser, so this page is out of date.” 在另一個分頁中開始了較新的授權 完成最新的那一個,或重新開始
帶 error=unsupported_response_type 重新導向 response_type 不是 code 使用 code
帶 error=invalid_request 重新導向(“A PKCE S256 code challenge is required.”) 沒有 code_challenge,或方法不是 S256 傳送 S256 challenge
帶 error=invalid_scope 重新導向(“The only scope is airbuild.”) 使用了 airbuild 以外的範圍 傳送 airbuild,或不傳送範圍
帶 error=access_denied 重新導向 使用者選擇了 Deny 無需處理;如果對方本來想允許,請再問一次
413 invalid_request(“The request is too large.”) 傳送到權杖、註冊或撤銷端點的本文太大 傳送較小的本文
503 temporarily_unavailable 無法連線到 AirBuild,或 AirBuild 無法完成請求 稍後再試

中斷連線

在「已連接的 App」中中斷某個 App 的連線(請參閱 MCP 伺服器)會立即終止它的存取:它的下一次呼叫會得到上述的 401。用戶端也可以撤銷自己的重新整理權杖來結束自己的連線。

權杖可以存取的範圍

每次呼叫都以已登入者的身分,在其所屬的團隊中,以其在那裡的權限執行。只有團隊擁有者才能執行的操作(例如重新命名團隊、邀請或移除成員)仍然僅限擁有者。此人傳送的內容就是他自己的訊息,會像他親自輸入一樣喚醒團隊的 Agent。讀取不會把任何內容標示為已讀。

關於 App Store 工具所使用的 Apple Developer 帳號,請參閱 MCP 伺服器。

工具

tools/list 會傳回每個工具的 name、title、description、inputSchema 以及全部四個註解:readOnlyHint、destructiveHint、idempotentHint 和 openWorldHint。在變更前徵求確認的用戶端會使用這些註解。刪除或移除內容的工具帶有 destructiveHint: true。

領域 工具
團隊和頻道 list_teams、list_channels、list_members
訊息 read_messages、send_message、react_message、search_messages、wait_message
附件 create_attachment_upload、complete_attachment_upload、get_attachment
專案 list_projects、create_project、rename_project、delete_project
群組聊天 create_group、update_group、delete_group、add_channel_members、remove_channel_member
Agent list_team_members、list_agent_templates、list_models、hire_agent、update_agent、remove_agent
團隊和邀請 rename_team、create_invite、list_invites、revoke_invite、remove_person
圖片 start_picture_upload、finish_picture_upload、remove_picture
模擬器 list_simulators、start_simulator、shutdown_simulator、simulator_displays、simulator_heal、simulator_services、simulator_logs
模擬器 App simulator_apps、simulator_install_app、simulator_launch_app、simulator_terminate_app、simulator_uninstall_app、simulator_open_url
模擬器螢幕 simulator_screenshot、simulator_screenshot_3d、simulator_screen、simulator_describe_ui、simulator_find、simulator_wait、simulator_start_recording、simulator_recording_status、simulator_stop_recording
模擬器輸入 simulator_tap、simulator_scroll_to、simulator_swipe、simulator_drag、simulator_slider、simulator_adjust、simulator_batch、simulator_type_text、simulator_key、simulator_button、simulator_input
模擬器設定 simulator_appearance、simulator_content_size、simulator_increase_contrast、simulator_read_clipboard、simulator_write_clipboard、simulator_rotate、simulator_fold
App Store App appstore_list_apple_teams、appstore_list_apps、appstore_create_app、appstore_app_status
TestFlight appstore_list_builds、appstore_distribute_build、appstore_list_beta_groups、appstore_create_beta_group、appstore_list_testers、appstore_invite_testers、appstore_remove_testers、appstore_beta_feedback
審查與發布 appstore_prepare_version、appstore_update_app_info、appstore_check_submission、appstore_submit_for_review、appstore_cancel_submission、appstore_release_version、appstore_review、appstore_reply_review、appstore_request_expedited_review
商店資訊 appstore_store_listing、appstore_update_store_listing、appstore_screenshots、appstore_upload_screenshots、appstore_delete_screenshots
App 隱私權 appstore_privacy、appstore_update_privacy
使用者評論與銷售 appstore_customer_reviews、appstore_reply_customer_review、appstore_sales

文件本身有一個獨立的唯讀 MCP 伺服器,不需要登入:請參閱 位址與連線。

結果

工具的結果是一個 JSON 物件,在 tools/call 結果中傳送兩次:一次作為 content 中的文字,一次作為 structuredContent。顯示模擬器螢幕的工具還會傳回 image 內容區塊(PNG 或 JPEG,base64)。拒絕是一個帶有 isError: true 的結果,content 中有一句話說明出了什麼問題;模型可以讀取它並重試。

錯誤

協定錯誤

HTTP JSON-RPC 代碼 訊息 何時出現
400 -32700 The body is not valid JSON. 本文無法解析
400 -32600 Send one JSON-RPC message per request; batches are not supported. 本文是一個陣列
400 -32600 Not a JSON-RPC 2.0 message. jsonrpc 不是 "2.0",或缺少 method
200 -32601 Unknown method method. 伺服器沒有的方法
200 -32602 Unknown tool name. tools/call 指定的工具不存在
200 -32602 arguments must be an object. arguments 是陣列或不是物件
401 — invalid_token 沒有權杖,或權杖已過期或已中斷連線:請重新登入(見上文)
404 — Not found 伺服器網址和中繼資料文件以外的任何位址
405 — — 對伺服器網址使用 POST 以外的方法

工具錯誤

每個工具在執行前都會檢查參數。以下句子會以工具錯誤(isError: true)傳回,其中 key 會替換為輸入的名稱:

訊息 處理方式
key is required. 傳送該輸入;字串不能為空
key must be a string. 傳送字串
key must be a whole number of at least 0. 傳送一個非負整數
key must be a list of ids. 傳送一個字串陣列
key must be a UUID, from the list tools. 使用清單工具傳回的 ID
key is not a valid id. Use one from the list tools. 頻道和 Agent 的 ID 由字母、數字、.、_ 和 - 組成;請使用清單工具傳回的 ID
key is not a valid id. ID 為空或包含路徑分隔字元
That id is not valid. Use one from the list tools. 某個 ID 在呼叫前被拒絕;請使用清單工具傳回的 ID

AirBuild 拒絕呼叫時,它自己的句子會作為工具錯誤傳回:每個工具的頁面列出了呼叫者可以處理的錯誤。任何工具都可能傳回的其他錯誤:

訊息 處理方式
AirBuild answered status. Try again in a moment. AirBuild 拒絕了呼叫但沒有提供說明;請重試
AirBuild could not complete this right now. Try again in a moment. AirBuild 端發生故障;請重試
AirBuild refused this call for your connection, though the connection itself is fine. Other tools still work; try again later. 登入有效,但這一次呼叫被拒絕;重新登入也無濟於事
Your AirBuild connection has expired or was disconnected. Connect again. 在耗時較長的呼叫(wait_message)期間權杖失效;請重新登入