bricks-ctor 包含一個內建 MCP server,在執行Documentation Index
Fetch the complete documentation index at: https://docs.bricks.tools/llms.txt
Use this file to discover all available pages before exploring further.
bun install 期間會自動完成設定。postinstall 指令碼會在您的 .mcp.json 中加入 bricks-ctor 項目:
請參閱 CTOR MCP 參考文件,深入了解 MCP server 的設定與管理方式。
可用工具
compile
compile
執行型別檢查並編譯專案。在專案目錄中執行
bun compile 並回傳建置輸出。preview
preview
編譯並以無頭模式啟動應用程式預覽,然後截圖。
| 參數 | 預設值 | 說明 |
|---|---|---|
delay | 3000 | 截圖前的等待毫秒數 |
width | 600 | 截圖寬度 |
height | 480 | 截圖高度 |
responseImage | false | 以 base64 圖片內容回傳截圖 |
testId | — | 要觸發的自動化測試 ID |
testTitleLike | — | 以部分標題比對尋找自動化測試 |
icon_search
icon_search
以關鍵字搜尋內建的 FontAwesome 6 Pro 圖示集。
回傳符合的圖示名稱、Unicode 代碼及可用樣式。
| 參數 | 預設值 | 說明 |
|---|---|---|
query | — | 搜尋關鍵字 |
limit | 10 | 最大結果數 |
style | — | 依樣式篩選:brands、duotone、light、regular、solid、thin |
lottie_search / lottie_popular / lottie_get_details
lottie_search / lottie_popular / lottie_get_details
從 LottieFiles 搜尋與瀏覽 Lottie 動畫。
- lottie_search — 以關鍵字搜尋,支援分頁
- lottie_popular — 瀏覽本週熱門動畫
- lottie_get_details — 依 ID 取得特定動畫的完整詳細資訊
huggingface_search / huggingface_select
huggingface_search / huggingface_select
從 Hugging Face 搜尋並選取 AI 模型,用於 BRICKS 產生器。huggingface_search — 依產生器類型篩選搜尋模型。
huggingface_select — 取得特定模型檔案的下載 URL 與中繼資料。支援 GGUF 和 ONNX 模型、分割檔案、多模態投影檔案,以及語者嵌入。
| 參數 | 預設值 | 說明 |
|---|---|---|
generatorType | GeneratorLLM | 產生器類型(GeneratorLLM、GeneratorVectorStore、GeneratorReranker、GeneratorGGMLTTS、GeneratorGGMLTTSVocoder、GeneratorOnnxLLM、GeneratorOnnxSTT、GeneratorTTS) |
query | — | 搜尋關鍵字 |
limit | 20 | 最大結果數 |
includeFiles | false | 包含模型檔案清單 |
media_boxes / media_files / media_file / media_get_box / media_upload_files
media_boxes / media_files / media_file / media_get_box / media_upload_files
透過 CLI 管理您 BRICKS 工作區中的媒體資產。
- media_boxes — 列出所有 media box
- media_get_box — 取得特定 media box 的詳細資訊
- media_files — 列出 box 中的檔案(可依類型、標籤篩選,支援分頁)
- media_file — 取得特定檔案的詳細資訊
- media_upload_files — 上傳檔案至 box,支援選用的圖片縮放、AI 分析和標籤功能