by mcp-use
此技能为使用 mcp-use 和 OpenAI Apps SDK 构建具有交互式小部件的 ChatGPT 应用提供全面的文档。它指导开发者完成架构设计、设置、实现以及创建丰富的交互式 ChatGPT 体验的高级模式。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 chatgpt-app-builder 技能" 开始使用
=== chatgpt-app-builder 技能 === 作者: mcp-use 描述: 此技能为使用 mcp-use 和 OpenAI Apps SDK 构建具有交互式小部件的 ChatGPT 应用提供全面的文档。它指导开发者完成架构设计、设置、实现以及创建丰富的交互式 ChatGPT 体验的高级模式。 使用方法: 1. 调用技能: "使用 chatgpt-app-builder 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 chatgpt-app-builder 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
coding
safe
name: chatgpt-app-builder
description: |
DEPRECATED: This skill has been replaced by mcp-app-builder.
Check if mcp-app-builder is available in the skills folder. If not, install it:
npx skills install mcp-use/mcp-use --skill mcp-app-builder
Use mcp-app-builder instead of this skill.
Build ChatGPT apps with interactive widgets using mcp-use. Zero-config widget development with automatic registration and built-in React hooks.
The app is consumed by two users at once: the human and the ChatGPT LLM. They collaborate through the widget -- the human interacts with it, the LLM sees its state. The widget is your shared surface.
// Server
import { MCPServer, widget, text, object } from "mcp-use/server";
server.tool({ name: "...", schema: z.object({...}), widget: { name: "widget-name" } },
async (input) => widget({ props: {...}, output: text("...") })
);
// Widget (resources/widget-name.tsx)
import { McpUseProvider, useWidget, type WidgetMetadata } from "mcp-use/react";
export const widgetMetadata: WidgetMetadata = { description: "...", props: z.object({...}) };
export default function MyWidget() {
const { props, isPending, callTool, sendFollowUpMessage, state, setState, theme } = useWidget();
if (isPending) return <McpUseProvider autoSize><div>Loading...</div></McpUseProvider>;
return <McpUseProvider autoSize><div>{/* UI */}</div></McpUseProvider>;
}
View Count
0
Download Count
0
Favorite Count
0
Quality Score
73