Token导航 LogoToken导航

Agent Skill · 前端设计

build-mcp-use-apps-widgets(构建 MCP USE apps widgets)

build-mcp-use-apps-widgets 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

build-mcp-use-apps-widgets 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 7,705。

总安装 349周安装 14GitHub Stars 5下载 113核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:build-mcp-use-apps-widgets(构建 MCP USE apps widgets)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/build-mcp-use-apps-widgets
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-mcp-use-apps-widgets
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-mcp-use-apps-widgets

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于构建或修复返回 React 组件的 mcp-use 应用,适用于 ChatGPT Plus 及 Claude、Goose 等平台。适合创建新 widget 应用、添加组件到现有服务,或修复 useWidget、widgetMetadata 等关键行为。

通过 npx skills add 命令从 GitHub 安装,建议结合仓库 README 查看具体用例和边界条件。注意权限范围和维护状态,避免触发不必要的联网、命令执行或文件读写操作。build-mcp-use-apps-widgets 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/build-mcp-use-apps-widgets

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

build-mcp-use-apps-widgets 怎么安装?

在终端执行 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-mcp-use-ap…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

build-mcp-use-apps-widgets 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

build-mcp-use-apps-widgets 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

build-mcp-use-apps-widgets 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

build-mcp-use-apps-widgets 用的人多吗?

公开数据是累计安装 349 次,近一周安装 14 次,下载 113 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

build-mcp-use-apps-widgets 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
build-mcp-use-apps-widgets

构建 MCP USE apps widgets · 本页

3495操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Build MCP Apps & Widgets

Build or repair mcp-use apps that return React widgets from resources/ and run in ChatGPT plus MCP Apps hosts such as Claude and Goose.

Not building UI? Use build-mcp-use-server. Building a client that connects to MCP servers? Use build-mcp-use-client.

Trigger boundary

Use this skill when the task is about:

  • creating a new mcp-use widget app from scratch
  • adding widgets to an existing mcp-use server
  • fixing useWidget, useCallTool, widget(), widgetMetadata, CSP, theme, streaming, or display-mode behavior
  • shipping the same widget flow to ChatGPT and MCP Apps-compatible clients

Do not use this skill when:

  • the task is a plain MCP server with no widgets
  • the task is an MCP client app that connects to existing servers
  • the user only needs a raw non-widget transport or SDK explanation

Operating defaults

  • Node 18+ is supported. Prefer Node 22 LTS when you want the closest match to current examples.
  • Install zod explicitly alongside mcp-use.
  • mcp-use is HTTP-first here: server.listen() serves /mcp; this workflow does not assume stdio transport.
  • Default layout: root index.ts, resources/<widget-name>/widget.tsx, shared code in src/lib/.
  • Keep .mcp-use/**/* in tsconfig.json so generated tool types are available to widget code.

Workflow

1. Detect the starting point

  • Inspect the current working tree first.
  • Look for an existing widget app: mcp-use dependency, resources/ folders with widget.tsx, widgetMetadata exports, mcp-use/react imports, and tools with widget: {name:...}.
  • Branch early:

- Existing app present: audit and fix it in place. - No widget app present: gather only the missing product decisions, then scaffold the smallest working slice.

2. If an app already exists, audit it across four passes

  • Cover these areas even if you do the work sequentially:

- Server bindings and schemas: tool definitions, widget() responses, output/message, Zod descriptions, baseUrl, middleware, auth. - Widget lifecycle and host integration: useWidget, isPending, isStreaming, theming, McpUseProvider, Image, widgetMetadata. - Widget-to-tool flows: useCallTool, callTool, persistent state, follow-up messages, display modes, subscriptions or notifications if present. - Deployment and verification: Inspector flow, CSP, transport, production config, common failure cases.

  • If the runtime supports safe parallel delegation, you can split those passes. If it does not, do them one by one. Do not depend on delegation.
  • Prioritize fixes in this order:

- broken install or build - widget does not render or crashes on pending state - tool and widget folder are mis-bound - widget has no useful text fallback for non-widget clients - CSP, baseUrl, or host-specific compatibility gaps - deployment and hardening gaps

  • Apply fixes directly. Do not stop at a review list unless the user explicitly asked for review-only output.

3. If no widget app exists, build the smallest working baseline first

  • Ask only the questions needed to define one working vertical slice. Stop once these are clear:

- what the first widget shows - whether the widget must call another tool from inside the UI - whether external APIs, auth, or deployment constraints are already required

  • For a greenfield app, prefer the scaffolded path:

- npx create-mcp-use-app <name> --template mcp-apps --no-skills

  • Run the first build gate immediately after scaffolding:

- npm install - npm run build - npx mcp-use generate-types

  • Do not add product features on top of a failing template.
  • If the generated demo widget or demo tool blocks the build on current dependencies, replace or remove that demo before adding custom logic.

4. Use the minimal architecture that proves the flow

  • Start with one widget-bound tool and one plain follow-up tool callable from the widget.
  • Put shared business logic and validation in src/lib/.
  • From a root index.ts entrypoint, import files under src/ with Node ESM relative .js paths such as ./src/lib/math.js.
  • Keep widgets in resources/<widget-name>/widget.tsx; the folder name must match tool.widget.name.
  • Use minimal-interactive-widget.md when the user needs the smallest calculator/form-style pattern that edits local state and calls a non-widget tool from the UI.
  • Only add extra widgets, auth, subscriptions, or deployment-specific complexity after the baseline flow works.

5. Verify before stopping

  • Run npm run build.
  • Run npx mcp-use generate-types.
  • Run npx mcp-use dev.
  • Open the Inspector at http://localhost:3000/inspector and exercise at least one widget-bound tool.
  • If a host-specific feature could not be verified in the current environment, say exactly what was not tested.

Critical rules

  1. tool.widget.name must match resources/<name>/widget.tsx exactly.
  2. Always give the LLM and text-only clients a useful message or output; props alone is not enough.
  3. Always guard widget rendering with isPending before you trust props.
  4. Treat streaming preview as optional. ChatGPT does not expose partialToolInput, so the widget must still work with only isPending.
  5. Use useCallTool() or useWidget().callTool() for widget-to-tool calls. Do not use raw fetch() against MCP endpoints.
  6. Wrap the widget root in McpUseProvider. If the widget uses React Router, add BrowserRouter manually inside that provider.
  7. Declare every external domain in widgetMetadata.metadata.csp. Missing domains fail silently in hosted widget iframes.
  8. Set baseUrl or MCP_URL for deployed builds so widget assets and CSP resolve correctly.
  9. Use Image for files from public/ instead of raw <img>.
  10. Keep secrets, tokens, and other sensitive data out of widget props and widget state.
  11. Prefer type: "mcpApps" for dual-protocol compatibility; do not start new work with type: "appsSdk".
  12. Keep shared code browser-safe if you import it into widget bundles; otherwise keep it server-only in src/lib/.

Reference routing

Load the smallest relevant set for the branch you are in.

Start here

SituationRead
Fastest greenfield path, scaffold verification, or first-run build gatereferences/guides/quick-start.md, references/examples/project-templates.md, references/examples/minimal-interactive-widget.md
Need a larger end-to-end server or widget example after the baseline worksreferences/examples/server-recipes.md, references/examples/widget-recipes.md

Server and build surface

SituationRead
Tool definitions, Zod schemas, annotations, widget configreferences/guides/tools-and-schemas.md
widget(), text(), object(), mix(), MIME behaviorreferences/guides/response-helpers.md
Server config, baseUrl, CORS, middleware, env varsreferences/guides/server-configuration.md
Resources, prompts, or uiResource() decisionsreferences/guides/resources-and-prompts.md
Session stores or stream managersreferences/guides/session-management.md
OAuth or ctx.authreferences/guides/authentication.md
HTTP vs serverless transport, proxying, /mcp behaviorreferences/guides/transports.md
CLI commands, generate-types, dev, build, deployreferences/guides/cli-reference.md
Capability checks, proxy patterns, advanced server featuresreferences/guides/advanced-features.md

Widget surface

SituationRead
Core widget lifecycle, host context, useWidget, useCallToolreferences/guides/widgets-and-ui.md
McpUseProvider, Image, ErrorBoundary, WidgetMetadatareferences/guides/widget-components.md
Streaming preview, partialToolInput, three-phase renderingreferences/guides/streaming-and-preview.md
ChatGPT compatibility, metadata mapping, migration from appsSdkreferences/guides/chatgpt-apps-flow.md

Interaction and orchestration

SituationRead
ctx.elicit() or ctx.sample() inside toolsreferences/guides/elicitation-and-sampling.md
Notifications, progress, resource subscriptions, rootsreferences/guides/notifications-and-subscriptions.md
Multi-widget composition, follow-up patterns, widget state patternsreferences/patterns/mcp-apps-patterns.md

Testing, deployment, and failure recovery

SituationRead
Inspector workflow, curl checks, widget debuggingreferences/guides/testing-and-debugging.md
Deployment targets and production environment choicesreferences/patterns/deployment.md
Production reliability, caching, rate limiting, distributed Redis patternsreferences/patterns/production-patterns.md
Common implementation mistakes to avoidreferences/patterns/anti-patterns.md
Exact error messages and concrete fixesreferences/troubleshooting/common-errors.md

Guardrails

  • Do not assume delegation or subagents exist.
  • Do not keep a broken scaffold and pile custom code on top of it.
  • Do not return a widget response with no meaningful text fallback.
  • Do not access window.openai directly; use the mcp-use/react hooks.
  • Do not skip npm run build and npx mcp-use generate-types.
  • Do not use fetch() from the widget to talk to your own MCP server when a tool call is the right abstraction.
  • Do not store secrets or privileged backend-only data in widget state.
  • Do not default to server.uiResource() when resources/<name>/widget.tsx plus a custom tool gives a cleaner result.

平台分布

Codex

36.69%
按下载量换算41

Claude

31.26%
按下载量换算35

Cursor

20.26%
按下载量换算23

Gemini CLI

9.59%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills