技能 chatgpt-app-builder
📦

chatgpt-app-builder

安全

使用小工具建立 ChatGPT 應用程式

也可從以下取得: BayramAnnakov

此技能提供使用 mcp-use 和 OpenAI Apps SDK 建立互動式小工具的完整文件。它引導開發者了解架構、設定、實作,以及建立豐富互動 ChatGPT 體驗的高級模式。

支援: Claude Codex Code(CC)
🥉 76 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「chatgpt-app-builder」。 如何建立顯示搜尋結果的小工具?

預期結果:

  • 在 server.tool() 處理程式中使用 widget() 輔助函式
  • 回傳 widget({ props: searchResults, output: text('找到 X 個結果') })
  • 在 resources/ 中建立接收 props 的 React 元件,透過 useWidget()

正在使用「chatgpt-app-builder」。 props 和 output 有什麼不同?

預期結果:

  • output:LLM 在對話中看到的內容(文字、物件、markdown)
  • props:傳送至小工具 UI 的資料(對 LLM 隱藏)

安全審計

安全
v1 • 2/22/2026

This skill is documentation/reference material for building ChatGPT apps with mcp-use. All static analyzer findings are false positives: (1) 'Weak cryptographic algorithm' triggers on 'sha' substring in words like 'shape' - no actual crypto usage; (2) 'Ruby/shell backtick execution' detects markdown code fences, not shell commands; (3) 'System reconnaissance' and 'Hardcoded URL' are documentation patterns; (4) The critical heuristic 'Code execution + Network + Credential access' is triggered by documentation showing code examples with URLs and environment variables - standard documentation practice, not malicious behavior. This skill contains no executable code.

18
已掃描檔案
2,127
分析行數
2
發現項
1
審計總數
低風險問題 (2)
Hardcoded URLs in Documentation
URLs appear in documentation files (references/setup.md, references/csp-and-metadata.md). These are legitimate API endpoint references in documentation, not security issues.
Environment Variable Access in Code Examples
Documentation shows process.env usage (e.g., process.env.MCP_URL). This is standard configuration pattern in code examples, not credential exfiltration.
審計者: claude

品質評分

45
架構
100
可維護性
87
內容
50
社群
100
安全
91
規範符合性

你能建構什麼

使用互動式小工具建立 ChatGPT 應用程式

開發者學習使用 mcp-use 框架建立具有豐富互動 UI 元件的 ChatGPT 應用程式

MCP 伺服器開發

開發者建立具有 AI 助手自訂 React 小工具的 MCP(模型上下文通訊協定)伺服器

ChatGPT 外掛程式架構

工程師設計 ChatGPT 或 Claude 對話的小工具互動

試試這些提示

小工具快速入門
我想使用 mcp-use 建立具有互動式小工具的 ChatGPT 應用程式。如何設定專案並建立我的第一個小工具?
架構決策
餐廳搜尋功能應該使用工具還是小工具,它會以列表顯示結果並允許使用者點擊查看詳情?
狀態管理
如何在小工具互動中保留跨對話的小工具狀態並觸發 LLM?
高級小工具模式
建立具有表單輸入、API 呼叫,並根據使用者選擇進行條件渲染的多步驟小工具。

最佳實務

  • 先從純工具開始,只有在需要視覺互動時才升級至小工具
  • 讓小工具專注於單一目的 - 多個簡單的小工具比一個複雜的小工具更容易擴展
  • 對 LLM 不應看到的敏感資料使用 props,對話上下文則使用 output

避免

  • 懶載入應該預先回傳的資料 - 工具呼叫昂貴
  • 使用工具管理小工具內部狀態 - 機票選擇、表單資料應保留在小工具狀態中
  • 為純對話功能建立小工具,不需要視覺呈現

常見問題

什麼是 mcp-use?
mcp-use 是一個使用模型上下文通訊協定(MCP)和 OpenAI Apps SDK 建立互動式小工具 ChatGPT 應用程式的框架。
為什麼此技能被廢棄?
此技能已被 mcp-app-builder 取代,提供相同功能但有更好的實作。使用者應改為安裝 mcp-app-builder。
我需要安裝任何東西嗎?
是的,您需要安裝 mcp-use 套件:npm install mcp-use。此技能提供使用該函式庫的文件。
工具和小工具有什麼不同?
工具是沒有 UI 的後端動作。小工具是具有 React UI 元件的工具,可在聊天介面中視覺化呈現。
我可以和 Claude Code 一起使用嗎?
是的,此技能支援 Claude、Codex 和 Claude Code 作為支援的 AI 工具。
這只適用於 ChatGPT 嗎?
此技能專為 ChatGPT 應用程式和 OpenAI Apps SDK 設計,但概念適用於任何支援互動式小工具的 AI 助手。