# create_project

> 這個 AirBuild MCP 工具會建立一個專案，專案有自己的聊天，團隊的 Agent 會加入其中。

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

`create_project` 會建立一個專案：團隊要建置的一個 App，附帶自己的聊天。團隊中的人和 Agent 都會加入新的聊天，所以你可以馬上對傳回的 `channelId` 使用 [send_message](https://air.build/tw/docs/mcp-tools/send_message/)，告訴 Agent 要建置什麼。它只會建立一個空專案：在有人於聊天中發言之前，它不會建置任何內容，也不會啟動任何 Agent。團隊中的任何人都可以呼叫。

每次呼叫都會建立新專案，即使名稱已被使用：重試失敗呼叫的用戶端最後可能會有兩個專案。重試之前，請先用 [list_projects](https://air.build/tw/docs/mcp-tools/list_projects/) 查看。

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

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |
| `name` | 字串，1 到 80 個字元 | 是 | — | 專案名稱。首尾的空格會被移除；不能包含換行或控制字元 |

## 結果

| 欄位 | 說明 |
| --- | --- |
| `project.projectId` | 新專案的 ID |
| `project.name` | 它的名稱，依儲存的內容 |
| `project.channelId` | 它的聊天：`proj.` 加上專案的 ID |
| `project.agentIds` | 已加入其聊天的 Agent |
| `project.appBundleId` | 在第一次 iOS 建置之前為 `null` |
| `project.hasPicture` | `false` |

```json
{
  "project": {
    "projectId": "00000000-0000-0000-0000-000000000000",
    "name": "Notes",
    "channelId": "proj.00000000-0000-0000-0000-000000000000",
    "agentIds": ["designer"],
    "appBundleId": null,
    "hasPicture": false
  }
}
```

## 錯誤

_斜體_ 文字代表句中的實際值。

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| name is required. | 缺少 `name`，或只有空格 | 傳送名稱 |
| Project names must be 1..._N_ characters after trimming. | `name` 過長 | 選擇較短的名稱 |
| Project names must not contain control or directional-override characters. | `name` 包含換行、控制字元或文字方向標記 | 使用純文字 |
| This Team already has _N_ Projects, the most a Team can hold. Delete one you no longer need first. | 團隊已滿 | 用 [delete_project](https://air.build/tw/docs/mcp-tools/delete_project/) 刪除不再需要的專案 |
| Team not found. | 團隊不存在，或你不在其中 | 使用 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) 傳回的 `teamId` |

所有工具都可能傳回的錯誤，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 範例

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