chatgpt-app-builder by mcp-use/mcp-use
npx skills add https://github.com/mcp-use/mcp-use --skill chatgpt-app-builder使用 mcp-use 构建带有交互式小组件的 ChatGPT 应用。零配置小组件开发,支持自动注册和内置 React Hooks。
该应用由两位用户同时使用:人类用户和ChatGPT 大语言模型。他们通过小组件进行协作——人类用户与之交互,大语言模型则能看到其状态。小组件是你们的共享界面。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
// 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>;
}
每周安装量
6.3K
代码仓库
GitHub 星标数
9.5K
首次出现
2026年2月2日
安全审计
安装于
codex6.3K
cursor6.3K
claude-code6.3K
gemini-cli154
opencode154
github-copilot151
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>;
}
Weekly Installs
6.3K
Repository
GitHub Stars
9.5K
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex6.3K
cursor6.3K
claude-code6.3K
gemini-cli154
opencode154
github-copilot151
97,600 周安装