[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74EQBX04G95W2YCC2K8KFW8":3,"skill-same:01M74EQBX04G95W2YCC2K8KFW8":151},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M74EQBX04G95W2YCC2K8KFW8","mcp-apps-builder",null,"**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns.\n\n**READ THIS FIRST** before any MCP server work, including:\n- Creating new MCP servers\n- Modifying existing MCP servers (adding\u002Fupdating tools, resources, prompts, widgets)\n- Debugging MCP server issues or errors\n- Reviewing MCP server code for quality, security, or performance\n- Answering questions about MCP development or mcp-use patterns\n- Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets\n\nThis skill contains critical architecture decisions, security patterns, and common pitfalls.\nAlways consult the relevant reference files BEFORE implementing MCP features.","lzy18001500226\u002FMoSim","lzy18001500226","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F152623587?v=4","01M71ZMEX36NK05B642131DEEK","01M71ZMEXSMX72KPVNJ572G0CM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: mcp-apps-builder\ndescription: |\n  **MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns.\n\n  **READ THIS FIRST** before any MCP server work, including:\n  - Creating new MCP servers\n  - Modifying existing MCP servers (adding\u002Fupdating tools, resources, prompts, widgets)\n  - Debugging MCP server issues or errors\n  - Reviewing MCP server code for quality, security, or performance\n  - Answering questions about MCP development or mcp-use patterns\n  - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets\n\n  This skill contains critical architecture decisions, security patterns, and common pitfalls.\n  Always consult the relevant reference files BEFORE implementing MCP features.\n---\n\n# IMPORTANT: How to Use This Skill\n\nThis file provides a NAVIGATION GUIDE ONLY. Before implementing any MCP server features, you MUST:\n\n1. Read this overview to understand which reference files are relevant\n2. **ALWAYS read the specific reference file(s)** for the features you're implementing\n3. Apply the detailed patterns from those files to your implementation\n\n**Do NOT rely solely on the quick reference examples in this file** - they are minimal examples only. The reference files contain critical best practices, security considerations, and advanced patterns.\n\n---\n\n# MCP Server Best Practices\n\nComprehensive guide for building production-ready MCP servers with tools, resources, prompts, and widgets using mcp-use.\n\n## ⚠️ FIRST: New Project or Existing Project?\n\n**Before doing anything else, determine whether you are inside an existing mcp-use project.**\n\n**Detection:** Check the workspace for a `package.json` that lists `\"mcp-use\"` as a dependency, OR any `.ts` file that imports from `\"mcp-use\u002Fserver\"`.\n\n```\n├─ mcp-use project FOUND → Do NOT scaffold. You are already in a project.\n│  └─ Skip to \"Quick Navigation\" below to add features.\n│\n├─ NO mcp-use project (empty dir, unrelated project, or greenfield)\n│  └─ Scaffold first with npx create-mcp-use-app, then add features.\n│     See \"Scaffolding a New Project\" below.\n│\n└─ Inside an UNRELATED project (e.g. Next.js app) and user wants an MCP server\n   └─ Ask the user where to create it, then scaffold in that directory.\n      Do NOT scaffold inside an existing unrelated project root.\n```\n\n**NEVER manually create `MCPServer` boilerplate, `package.json`, or project structure by hand.** The CLI sets up TypeScript config, dev scripts, inspector integration, hot reload, and widget compilation that are difficult to replicate manually.\n\n---\n\n### Scaffolding a New Project\n\n```bash\nnpx create-mcp-use-app my-server\ncd my-server\nnpm run dev\n```\n\nFor full scaffolding details and CLI flags, see **[quickstart.md](references\u002Ffoundations\u002Fquickstart.md)**.\n\n---\n\n## Quick Navigation\n\n**Choose your path based on what you're building:**\n\n### 🚀 Foundations\n**When:** ALWAYS read these first when starting MCP work in a new conversation. Reference later for architecture\u002Fconcept clarification.\n\n1. **[concepts.md](references\u002Ffoundations\u002Fconcepts.md)** - MCP primitives (Tool, Resource, Prompt, Widget) and when to use each\n2. **[architecture.md](references\u002Ffoundations\u002Farchitecture.md)** - Server structure (Hono-based), middleware system, server.use() vs server.app\n3. **[quickstart.md](references\u002Ffoundations\u002Fquickstart.md)** - Scaffolding, setup, and first tool example\n4. **[deployment.md](references\u002Ffoundations\u002Fdeployment.md)** - Deploying to Manufact Cloud, self-hosting, Docker, managing deployments\n\nLoad these before diving into tools\u002Fresources\u002Fwidgets sections.\n\n---\n\n### 🔐 Adding Authentication?\n**When:** Protecting your server with OAuth (Auth0, Better Auth, Clerk, WorkOS, Supabase, Keycloak, or any other provider)\n\n- **[overview.md](references\u002Fauthentication\u002Foverview.md)**\n  - When: First time adding auth, understanding `ctx.auth`, or choosing a provider \u002F integration mode\n  - Covers: Remote auth vs OAuth proxy, `oauth` config, `ctx.auth` shape, provider comparison, common mistakes\n\n- **[auth0.md](references\u002Fauthentication\u002Fauth0.md)**\n  - When: Using Auth0 — DCR (Early Access) or a standard Regular Web App via `oauthProxy`\n  - Covers: Setup for both modes, `extraAuthorizeParams.audience`, permissions via `rfc9068_profile_authz`\n\n- **[better-auth.md](references\u002Fauthentication\u002Fbetter-auth.md)**\n  - When: Using Better Auth with the `@better-auth\u002Foauth-provider` plugin (self-hosted OAuth 2.1)\n  - Covers: `oauthBetterAuthProvider`, auth URL \u002F metadata routes, login and consent flows\n\n- **[clerk.md](references\u002Fauthentication\u002Fclerk.md)**\n  - When: Using Clerk (DCR-based OAuth)\n  - Covers: `oauthClerkProvider`, enabling DCR, Frontend API URL, organization context\n\n- **[workos.md](references\u002Fauthentication\u002Fworkos.md)**\n  - When: Using WorkOS AuthKit (DCR only)\n  - Covers: Setup, env vars, roles\u002Fpermissions, multi-tenant org filtering, WorkOS API calls\n\n- **[supabase.md](references\u002Fauthentication\u002Fsupabase.md)**\n  - When: Using Supabase's OAuth 2.1 server\n  - Covers: Setup, publishable keys, ES256 vs HS256, hosting the consent UI, RLS-aware SDK calls\n\n- **[keycloak.md](references\u002Fauthentication\u002Fkeycloak.md)**\n  - When: Using Keycloak via native DCR\n  - Covers: DCR trusted hosts + web origins, audience enforcement, realm vs resource roles, userinfo\n\n- **[custom.md](references\u002Fauthentication\u002Fcustom.md)**\n  - When: Any other provider — DCR-capable via `oauthCustomProvider`, or pre-registered (Google, GitHub, Okta, Azure AD) via `oauthProxy`\n  - Covers: `oauthCustomProvider`, `oauthProxy` + `jwksVerifier`, provider examples, opaque-token verification\n\n---\n\n### 🔧 Building Server Backend (No UI)?\n**When:** Implementing MCP features (actions, data, templates). Read the specific file for the primitive you're building.\n\n- **[tools.md](references\u002Fserver\u002Ftools.md)**\n  - When: Creating backend actions the AI can call (send-email, fetch-data, create-user)\n  - Covers: Tool definition, schemas, annotations, context, error handling\n\n- **[resources.md](references\u002Fserver\u002Fresources.md)**\n  - When: Exposing read-only data clients can fetch (config, user profiles, documentation)\n  - Covers: Static resources, dynamic resources, parameterized resource templates, URI completion\n\n- **[prompts.md](references\u002Fserver\u002Fprompts.md)**\n  - When: Creating reusable message templates for AI interactions (code-review, summarize)\n  - Covers: Prompt definition, parameterization, argument completion, prompt best practices\n\n- **[response-helpers.md](references\u002Fserver\u002Fresponse-helpers.md)**\n  - When: Formatting responses from tools\u002Fresources (text, JSON, markdown, images, errors)\n  - Covers: `text()`, `object()`, `markdown()`, `image()`, `error()`, `mix()`\n\n- **[proxy.md](references\u002Fserver\u002Fproxy.md)**\n  - When: Composing multiple MCP servers into one unified aggregator server\n  - Covers: `server.proxy()`, config API, explicit sessions, sampling routing\n\n- **[architecture.md](references\u002Ffoundations\u002Farchitecture.md)**\n  - When: Adding cross-cutting logic (logging, auth checks, rate limiting, tool filtering) that spans multiple tools\u002Fresources\n  - Covers: `server.use('mcp:...')` middleware, `MiddlewareContext` (method, params, auth, state), pattern matching, HTTP vs MCP middleware\n\n---\n\n### 🎨 Building Visual Widgets (Interactive UI)?\n**When:** Creating React-based visual interfaces for browsing, comparing, or selecting data\n\n- **[basics.md](references\u002Fwidgets\u002Fbasics.md)**\n  - When: Creating your first widget or adding UI to an existing tool\n  - Covers: Widget setup, `useWidget()` hook, `isPending` checks, props handling\n\n- **[state.md](references\u002Fwidgets\u002Fstate.md)**\n  - When: Managing UI state (selections, filters, tabs) within widgets\n  - Covers: `useState`, `setState`, state persistence, when to use tool vs widget state\n\n- **[interactivity.md](references\u002Fwidgets\u002Finteractivity.md)**\n  - When: Adding buttons, forms, or calling tools from within widgets\n  - Covers: `useCallTool()`, form handling, action buttons, optimistic updates\n\n- **[ui-guidelines.md](references\u002Fwidgets\u002Fui-guidelines.md)**\n  - When: Styling widgets to support themes, responsive layouts, or accessibility\n  - Covers: `useWidgetTheme()`, light\u002Fdark mode, `autoSize`, layout patterns, CSS best practices\n\n- **[advanced.md](references\u002Fwidgets\u002Fadvanced.md)**\n  - When: Building complex widgets with async data, error boundaries, or performance optimizations\n  - Covers: Loading states, error handling, memoization, code splitting\n\n- **[model-context.md](references\u002Fwidgets\u002Fmodel-context.md)**\n  - When: Keeping the AI model aware of what the user is currently seeing (active tab, hovered item, selected product) without requiring tool calls\n  - Covers: `\u003CModelContext>` component, `modelContext.set\u002Fremove` imperative API, nesting, tree serialization, lifecycle rules\n- **[files.md](references\u002Fwidgets\u002Ffiles.md)**\n  - When: Uploading or downloading files from within a widget (ChatGPT Apps SDK only)\n  - Covers: `useFiles()` hook, `isSupported` guard, model visibility (`modelVisible`), storing `fileId`, temporary download URLs\n\n---\n\n### 📚 Need Complete Examples?\n**When:** You want to see full implementations of common use cases\n\n- **[common-patterns.md](references\u002Fpatterns\u002Fcommon-patterns.md)**\n  - End-to-end examples: weather app, todo list, recipe browser\n  - Shows: Server code + widget code + best practices in context\n\n---\n\n### 🔁 Testing from the Terminal (Agent Feedback Loops)\n**When:** You want to verify a tool or widget *without* the inspector UI — the canonical flow for AI agents iterating on MCP servers.\n\n- **`mcp-use client`** — drives MCP servers from the terminal. Auto-runs OAuth on 401, persists saved servers under a short name, and one-shot subcommands exit cleanly so they're safe to spawn from harnesses.\n\n  ```bash\n  npx mcp-use client connect dev http:\u002F\u002Flocalhost:3000\u002Fmcp\n  npx mcp-use client dev tools list\n  npx mcp-use client dev tools call get-weather city=Tokyo --screenshot\n  ```\n\n  Every per-server command takes the saved name as its first positional arg (`mcp-use client \u003Cname> \u003Cscope> \u003Caction>`) — there is no \"active session\". Args use `key=value` (with `key:='\u003Cjson>'` for nested values) or a single JSON object. When a tool renders a widget, pass `--screenshot` to also save a PNG (`.\u002F\u003Cview>-\u003Ctimestamp>.png` by default, or override with `--screenshot-output \u003Cpath>`).\n\n- **`mcp-use client screenshot`** — headless render of a widget tool to a PNG. Use this when you want to visually verify a widget change without opening the inspector, especially in loops where you call a tool, screenshot, eyeball the output, and edit. Two forms:\n\n  ```bash\n  # Saved-server form — reuses the auth from `mcp-use client connect`\n  npx mcp-use client dev screenshot --tool get-weather city=Tokyo \\\n    --width 800 --height 600 --theme light \\\n    --output .\u002Fweather.png\n\n  # Ad-hoc form — connect inline (use -H for headers on authenticated servers)\n  npx mcp-use client screenshot --mcp http:\u002F\u002Flocalhost:3000\u002Fmcp \\\n    --tool get-weather city=Tokyo\n  ```\n\n  Add `--device-scale-factor 2` for Retina output, or `--cdp-url \u003Cws>` plus `--inspector \u003Cpublicly-reachable-url>` to drive a remote Chromium (e.g. Notte) from a sandbox without a local Chrome install.\n\nBoth commands are documented in full at [docs\u002Ftypescript\u002Fclient\u002Fcli](https:\u002F\u002Fdocs.mcp-use.com\u002Ftypescript\u002Fclient\u002Fcli).\n\n---\n\n## Decision Tree\n\n```\nWhat do you need?\n\n├─ New project from scratch\n│  └─> quickstart.md (scaffolding + setup)\n│\n├─ OAuth \u002F user authentication\n│  └─> authentication\u002Foverview.md → provider-specific guide\n│\n├─ Simple backend action (no UI)\n│  └─> Use Tool: server\u002Ftools.md\n│\n├─ Read-only data for clients\n│  └─> Use Resource: server\u002Fresources.md\n│\n├─ Reusable prompt template\n│  └─> Use Prompt: server\u002Fprompts.md\n│\n├─ Cross-cutting logic (logging, auth checks, rate limiting, tool filtering)\n│  └─> Use Middleware: architecture.md#mcp-middleware\n│\n├─ Visual\u002Finteractive UI\n│  └─> Use Widget: widgets\u002Fbasics.md\n│\n├─ Keep model aware of what user is seeing in widget\n│  └─> widgets\u002Fmodel-context.md\n├─ Upload\u002Fdownload files in a widget\n│  └─> widgets\u002Ffiles.md (ChatGPT Apps SDK only)\n│\n├─ Verify a tool or widget from the terminal (agent feedback loop)\n│  └─> See \"Testing from the Terminal\" above — `mcp-use client` for tool runs,\n│      `mcp-use client \u003Cserver> screenshot --tool \u003Ctool>` for headless widget PNGs\n│\n└─ Deploy to production\n   └─> deployment.md (cloud deploy, self-hosting, Docker)\n```\n\n---\n\n## Core Principles\n\n1. **Tools for actions** - Backend operations with input\u002Foutput\n2. **Resources for data** - Read-only data clients can fetch\n3. **Prompts for templates** - Reusable message templates\n4. **Widgets for UI** - Visual interfaces when helpful\n5. **Mock data first** - Prototype quickly, connect APIs later\n\n---\n\n## ❌ Common Mistakes\n\nAvoid these anti-patterns found in production MCP servers:\n\n### Tool Definition\n- ❌ Returning raw objects instead of using response helpers\n  - ✅ Use `text()`, `object()`, `widget()`, `error()` helpers\n- ❌ Skipping Zod schema `.describe()` on every field\n  - ✅ Add descriptions to all schema fields for better AI understanding\n- ❌ No input validation or sanitization\n  - ✅ Validate inputs with Zod, sanitize user-provided data\n- ❌ Throwing errors instead of returning `error()` helper\n  - ✅ Use `error(\"message\")` for graceful error responses\n\n### Widget Development\n- ❌ Accessing `props` without checking `isPending`\n  - ✅ Always check `if (isPending) return \u003CLoading\u002F>`\n- ❌ Widget handles server state (filters, selections)\n  - ✅ Widgets manage their own UI state with `useState`\n- ❌ Missing `McpUseProvider` wrapper or `autoSize`\n  - ✅ Wrap root component: `\u003CMcpUseProvider autoSize>`\n- ❌ Inline styles without theme awareness\n  - ✅ Use `useWidgetTheme()` for light\u002Fdark mode support\n\n### Security & Production\n- ❌ Hardcoded API keys or secrets in code\n  - ✅ Use `process.env.API_KEY`, document in `.env.example`\n- ❌ No error handling in tool handlers\n  - ✅ Wrap in try\u002Fcatch, return `error()` on failure\n- ❌ Expensive operations without caching\n  - ✅ Cache API calls, computations with TTL\n- ❌ Missing CORS configuration\n  - ✅ Configure CORS for production deployments\n\n---\n\n## 🔒 Golden Rules\n\n**Opinionated architectural guidelines:**\n\n### 1. One Tool = One Capability\nSplit broad actions into focused tools:\n- ❌ `manage-users` (too vague)\n- ✅ `create-user`, `delete-user`, `list-users`\n\n### 2. Return Complete Data Upfront\nTool calls are expensive. Avoid lazy-loading:\n- ❌ `list-products` + `get-product-details` (2 calls)\n- ✅ `list-products` returns full data including details\n\n### 3. Widgets Own Their State\nUI state lives in the widget, not in separate tools:\n- ❌ `select-item` tool, `set-filter` tool\n- ✅ Widget manages with `useState` or `setState`\n\n### 4. `exposeAsTool` Defaults to `false`\nWidgets are registered as resources only by default. Use a custom tool (recommended) or set `exposeAsTool: true` to expose a widget to the model:\n\n```typescript\n\u002F\u002F ✅ ALL 4 STEPS REQUIRED for proper type inference:\n\n\u002F\u002F Step 1: Define schema separately\nconst propsSchema = z.object({\n  title: z.string(),\n  items: z.array(z.string())\n});\n\n\u002F\u002F Step 2: Reference schema variable in metadata\nexport const widgetMetadata: WidgetMetadata = {\n  description: \"...\",\n  props: propsSchema,  \u002F\u002F ← NOT inline z.object()\n  exposeAsTool: false\n};\n\n\u002F\u002F Step 3: Infer Props type from schema variable\ntype Props = z.infer\u003Ctypeof propsSchema>;\n\n\u002F\u002F Step 4: Use typed Props with useWidget\nexport default function MyWidget() {\n  const { props, isPending } = useWidget\u003CProps>();  \u002F\u002F ← Add \u003CProps>\n  \u002F\u002F ...\n}\n```\n\n⚠️ **Common mistake:** Only doing steps 1-2 but skipping 3-4 (loses type safety)\n\n### 5. Validate at Boundaries Only\n- Trust internal code and framework guarantees\n- Validate user input, external API responses\n- Don't add error handling for scenarios that can't happen\n\n### 6. Prefer Widgets for Browsing\u002FComparing\nWhen in doubt, add a widget. Visual UI improves:\n- Browsing multiple items\n- Comparing data side-by-side\n- Interactive selection workflows\n\n---\n\n## Quick Reference\n\n### Minimal Server\n```typescript\nimport { MCPServer, text } from \"mcp-use\u002Fserver\";\nimport { z } from \"zod\";\n\nconst server = new MCPServer({\n  name: \"my-server\",\n  title: \"My Server\",\n  version: \"1.0.0\"\n});\n\nserver.tool(\n  {\n    name: \"greet\",\n    description: \"Greet a user\",\n    schema: z.object({ name: z.string().describe(\"User's name\") })\n  },\n  async ({ name }) => text(\"Hello \" + name + \"!\"),\n);\n\nserver.listen();\n```\n\n---\n\n## Response Helpers\n\n| Helper | Use When | Example |\n|--------|----------|---------|\n| `text()` | Simple string response | `text(\"Success!\")` |\n| `object()` | Structured data | `object({ status: \"ok\" })` |\n| `markdown()` | Formatted text | `markdown(\"# Title\\nContent\")` |\n| `widget()` | Visual UI | `widget({ props: {...}, output: text(...) })` |\n| `mix()` | Multiple contents | `mix(text(\"Hi\"), image(url))` |\n| `error()` | Error responses | `error(\"Failed to fetch data\")` |\n| `resource()` | Embed resource refs | `resource(\"docs:\u002F\u002Fguide\", \"text\u002Fmarkdown\")` |\n\n**Server methods:**\n- `server.tool()` - Define executable tool\n- `server.resource()` - Define static\u002Fdynamic resource\n- `server.resourceTemplate()` - Define parameterized resource\n- `server.prompt()` - Define prompt template\n- `server.proxy()` - Compose\u002FProxy multiple MCP servers\n- `server.uiResource()` - Define widget resource\n- `server.listen()` - Start server\n- `server.use('mcp:tools\u002Fcall', fn)` - MCP middleware (tools, resources, prompts, list ops)\n- `server.use('mcp:*', fn)` - Catch-all MCP middleware\n- `server.use(fn)` - HTTP middleware (Hono)\n","# IMPORTANT: How to Use This Skill\n\nThis file provides a NAVIGATION GUIDE ONLY. Before implementing any MCP server features, you MUST:\n\n1. Read this overview to understand which reference files are relevant\n2. **ALWAYS read the specific reference file(s)** for the features you're implementing\n3. Apply the detailed patterns from those files to your implementation\n\n**Do NOT rely solely on the quick reference examples in this file** - they are minimal examples only. The reference files contain critical best practices, security considerations, and advanced patterns.\n\n---\n\n# MCP Server Best Practices\n\nComprehensive guide for building production-ready MCP servers with tools, resources, prompts, and widgets using mcp-use.\n\n## ⚠️ FIRST: New Project or Existing Project?\n\n**Before doing anything else, determine whether you are inside an existing mcp-use project.**\n\n**Detection:** Check the workspace for a `package.json` that lists `\"mcp-use\"` as a dependency, OR any `.ts` file that imports from `\"mcp-use\u002Fserver\"`.\n\n```\n├─ mcp-use project FOUND → Do NOT scaffold. You are already in a project.\n│  └─ Skip to \"Quick Navigation\" below to add features.\n│\n├─ NO mcp-use project (empty dir, unrelated project, or greenfield)\n│  └─ Scaffold first with npx create-mcp-use-app, then add features.\n│     See \"Scaffolding a New Project\" below.\n│\n└─ Inside an UNRELATED project (e.g. Next.js app) and user wants an MCP server\n   └─ Ask the user where to create it, then scaffold in that directory.\n      Do NOT scaffold inside an existing unrelated project root.\n```\n\n**NEVER manually create `MCPServer` boilerplate, `package.json`, or project structure by hand.** The CLI sets up TypeScript config, dev scripts, inspector integration, hot reload, and widget compilation that are difficult to replicate manually.\n\n---\n\n### Scaffolding a New Project\n\n```bash\nnpx create-mcp-use-app my-server\ncd my-server\nnpm run dev\n```\n\nFor full scaffolding details and CLI flags, see **[quickstart.md](references\u002Ffoundations\u002Fquickstart.md)**.\n\n---\n\n## Quick Navigation\n\n**Choose your path based on what you're building:**\n\n### 🚀 Foundations\n**When:** ALWAYS read these first when starting MCP work in a new conversation. Reference later for architecture\u002Fconcept clarification.\n\n1. **[concepts.md](references\u002Ffoundations\u002Fconcepts.md)** - MCP primitives (Tool, Resource, Prompt, Widget) and when to use each\n2. **[architecture.md](references\u002Ffoundations\u002Farchitecture.md)** - Server structure (Hono-based), middleware system, server.use() vs server.app\n3. **[quickstart.md](references\u002Ffoundations\u002Fquickstart.md)** - Scaffolding, setup, and first tool example\n4. **[deployment.md](references\u002Ffoundations\u002Fdeployment.md)** - Deploying to Manufact Cloud, self-hosting, Docker, managing deployments\n\nLoad these before diving into tools\u002Fresources\u002Fwidgets sections.\n\n---\n\n### 🔐 Adding Authentication?\n**When:** Protecting your server with OAuth (Auth0, Better Auth, Clerk, WorkOS, Supabase, Keycloak, or any other provider)\n\n- **[overview.md](references\u002Fauthentication\u002Foverview.md)**\n  - When: First time adding auth, understanding `ctx.auth`, or choosing a provider \u002F integration mode\n  - Covers: Remote auth vs OAuth proxy, `oauth` config, `ctx.auth` shape, provider comparison, common mistakes\n\n- **[auth0.md](references\u002Fauthentication\u002Fauth0.md)**\n  - When: Using Auth0 — DCR (Early Access) or a standard Regular Web App via `oauthProxy`\n  - Covers: Setup for both modes, `extraAuthorizeParams.audience`, permissions via `rfc9068_profile_authz`\n\n- **[better-auth.md](references\u002Fauthentication\u002Fbetter-auth.md)**\n  - When: Using Better Auth with the `@better-auth\u002Foauth-provider` plugin (self-hosted OAuth 2.1)\n  - Covers: `oauthBetterAuthProvider`, auth URL \u002F metadata routes, login and consent flows\n\n- **[clerk.md](references\u002Fauthentication\u002Fclerk.md)**\n  - When: Using Clerk (DCR-based OAuth)\n  - Covers: `oauthClerkProvider`, enabling DCR, Frontend API URL, organization context\n\n- **[workos.md](references\u002Fauthentication\u002Fworkos.md)**\n  - When: Using WorkOS AuthKit (DCR only)\n  - Covers: Setup, env vars, roles\u002Fpermissions, multi-tenant org filtering, WorkOS API calls\n\n- **[supabase.md](references\u002Fauthentication\u002Fsupabase.md)**\n  - When: Using Supabase's OAuth 2.1 server\n  - Covers: Setup, publishable keys, ES256 vs HS256, hosting the consent UI, RLS-aware SDK calls\n\n- **[keycloak.md](references\u002Fauthentication\u002Fkeycloak.md)**\n  - When: Using Keycloak via native DCR\n  - Covers: DCR trusted hosts + web origins, audience enforcement, realm vs resource roles, userinfo\n\n- **[custom.md](references\u002Fauthentication\u002Fcustom.md)**\n  - When: Any other provider — DCR-capable via `oauthCustomProvider`, or pre-registered (Google, GitHub, Okta, Azure AD) via `oauthProxy`\n  - Covers: `oauthCustomProvider`, `oauthProxy` + `jwksVerifier`, provider examples, opaque-token verification\n\n---\n\n### 🔧 Building Server Backend (No UI)?\n**When:** Implementing MCP features (actions, data, templates). Read the specific file for the primitive you're building.\n\n- **[tools.md](references\u002Fserver\u002Ftools.md)**\n  - When: Creating backend actions the AI can call (send-email, fetch-data, create-user)\n  - Covers: Tool definition, schemas, annotations, context, error handling\n\n- **[resources.md](references\u002Fserver\u002Fresources.md)**\n  - When: Exposing read-only data clients can fetch (config, user profiles, documentation)\n  - Covers: Static resources, dynamic resources, parameterized resource templates, URI completion\n\n- **[prompts.md](references\u002Fserver\u002Fprompts.md)**\n  - When: Creating reusable message templates for AI interactions (code-review, summarize)\n  - Covers: Prompt definition, parameterization, argument completion, prompt best practices\n\n- **[response-helpers.md](references\u002Fserver\u002Fresponse-helpers.md)**\n  - When: Formatting responses from tools\u002Fresources (text, JSON, markdown, images, errors)\n  - Covers: `text()`, `object()`, `markdown()`, `image()`, `error()`, `mix()`\n\n- **[proxy.md](references\u002Fserver\u002Fproxy.md)**\n  - When: Composing multiple MCP servers into one unified aggregator server\n  - Covers: `server.proxy()`, config API, explicit sessions, sampling routing\n\n- **[architecture.md](references\u002Ffoundations\u002Farchitecture.md)**\n  - When: Adding cross-cutting logic (logging, auth checks, rate limiting, tool filtering) that spans multiple tools\u002Fresources\n  - Covers: `server.use('mcp:...')` middleware, `MiddlewareContext` (method, params, auth, state), pattern matching, HTTP vs MCP middleware\n\n---\n\n### 🎨 Building Visual Widgets (Interactive UI)?\n**When:** Creating React-based visual interfaces for browsing, comparing, or selecting data\n\n- **[basics.md](references\u002Fwidgets\u002Fbasics.md)**\n  - When: Creating your first widget or adding UI to an existing tool\n  - Covers: Widget setup, `useWidget()` hook, `isPending` checks, props handling\n\n- **[state.md](references\u002Fwidgets\u002Fstate.md)**\n  - When: Managing UI state (selections, filters, tabs) within widgets\n  - Covers: `useState`, `setState`, state persistence, when to use tool vs widget state\n\n- **[interactivity.md](references\u002Fwidgets\u002Finteractivity.md)**\n  - When: Adding buttons, forms, or calling tools from within widgets\n  - Covers: `useCallTool()`, form handling, action buttons, optimistic updates\n\n- **[ui-guidelines.md](references\u002Fwidgets\u002Fui-guidelines.md)**\n  - When: Styling widgets to support themes, responsive layouts, or accessibility\n  - Covers: `useWidgetTheme()`, light\u002Fdark mode, `autoSize`, layout patterns, CSS best practices\n\n- **[advanced.md](references\u002Fwidgets\u002Fadvanced.md)**\n  - When: Building complex widgets with async data, error boundaries, or performance optimizations\n  - Covers: Loading states, error handling, memoization, code splitting\n\n- **[model-context.md](references\u002Fwidgets\u002Fmodel-context.md)**\n  - When: Keeping the AI model aware of what the user is currently seeing (active tab, hovered item, selected product) without requiring tool calls\n  - Covers: `\u003CModelContext>` component, `modelContext.set\u002Fremove` imperative API, nesting, tree serialization, lifecycle rules\n- **[files.md](references\u002Fwidgets\u002Ffiles.md)**\n  - When: Uploading or downloading files from within a widget (ChatGPT Apps SDK only)\n  - Covers: `useFiles()` hook, `isSupported` guard, model visibility (`modelVisible`), storing `fileId`, temporary download URLs\n\n---\n\n### 📚 Need Complete Examples?\n**When:** You want to see full implementations of common use cases\n\n- **[common-patterns.md](references\u002Fpatterns\u002Fcommon-patterns.md)**\n  - End-to-end examples: weather app, todo list, recipe browser\n  - Shows: Server code + widget code + best practices in context\n\n---\n\n### 🔁 Testing from the Terminal (Agent Feedback Loops)\n**When:** You want to verify a tool or widget *without* the inspector UI — the canonical flow for AI agents iterating on MCP servers.\n\n- **`mcp-use client`** — drives MCP servers from the terminal. Auto-runs OAuth on 401, persists saved servers under a short name, and one-shot subcommands exit cleanly so they're safe to spawn from harnesses.\n\n  ```bash\n  npx mcp-use client connect dev http:\u002F\u002Flocalhost:3000\u002Fmcp\n  npx mcp-use client dev tools list\n  npx mcp-use client dev tools call get-weather city=Tokyo --screenshot\n  ```\n\n  Every per-server command takes the saved name as its first positional arg (`mcp-use client \u003Cname> \u003Cscope> \u003Caction>`) — there is no \"active session\". Args use `key=value` (with `key:='\u003Cjson>'` for nested values) or a single JSON object. When a tool renders a widget, pass `--screenshot` to also save a PNG (`.\u002F\u003Cview>-\u003Ctimestamp>.png` by default, or override with `--screenshot-output \u003Cpath>`).\n\n- **`mcp-use client screenshot`** — headless render of a widget tool to a PNG. Use this when you want to visually verify a widget change without opening the inspector, especially in loops where you call a tool, screenshot, eyeball the output, and edit. Two forms:\n\n  ```bash\n  # Saved-server form — reuses the auth from `mcp-use client connect`\n  npx mcp-use client dev screenshot --tool get-weather city=Tokyo \\\n    --width 800 --height 600 --theme light \\\n    --output .\u002Fweather.png\n\n  # Ad-hoc form — connect inline (use -H for headers on authenticated servers)\n  npx mcp-use client screenshot --mcp http:\u002F\u002Flocalhost:3000\u002Fmcp \\\n    --tool get-weather city=Tokyo\n  ```\n\n  Add `--device-scale-factor 2` for Retina output, or `--cdp-url \u003Cws>` plus `--inspector \u003Cpublicly-reachable-url>` to drive a remote Chromium (e.g. Notte) from a sandbox without a local Chrome install.\n\nBoth commands are documented in full at [docs\u002Ftypescript\u002Fclient\u002Fcli](https:\u002F\u002Fdocs.mcp-use.com\u002Ftypescript\u002Fclient\u002Fcli).\n\n---\n\n## Decision Tree\n\n```\nWhat do you need?\n\n├─ New project from scratch\n│  └─> quickstart.md (scaffolding + setup)\n│\n├─ OAuth \u002F user authentication\n│  └─> authentication\u002Foverview.md → provider-specific guide\n│\n├─ Simple backend action (no UI)\n│  └─> Use Tool: server\u002Ftools.md\n│\n├─ Read-only data for clients\n│  └─> Use Resource: server\u002Fresources.md\n│\n├─ Reusable prompt template\n│  └─> Use Prompt: server\u002Fprompts.md\n│\n├─ Cross-cutting logic (logging, auth checks, rate limiting, tool filtering)\n│  └─> Use Middleware: architecture.md#mcp-middleware\n│\n├─ Visual\u002Finteractive UI\n│  └─> Use Widget: widgets\u002Fbasics.md\n│\n├─ Keep model aware of what user is seeing in widget\n│  └─> widgets\u002Fmodel-context.md\n├─ Upload\u002Fdownload files in a widget\n│  └─> widgets\u002Ffiles.md (ChatGPT Apps SDK only)\n│\n├─ Verify a tool or widget from the terminal (agent feedback loop)\n│  └─> See \"Testing from the Terminal\" above — `mcp-use client` for tool runs,\n│      `mcp-use client \u003Cserver> screenshot --tool \u003Ctool>` for headless widget PNGs\n│\n└─ Deploy to production\n   └─> deployment.md (cloud deploy, self-hosting, Docker)\n```\n\n---\n\n## Core Principles\n\n1. **Tools for actions** - Backend operations with input\u002Foutput\n2. **Resources for data** - Read-only data clients can fetch\n3. **Prompts for templates** - Reusable message templates\n4. **Widgets for UI** - Visual interfaces when helpful\n5. **Mock data first** - Prototype quickly, connect APIs later\n\n---\n\n## ❌ Common Mistakes\n\nAvoid these anti-patterns found in production MCP servers:\n\n### Tool Definition\n- ❌ Returning raw objects instead of using response helpers\n  - ✅ Use `text()`, `object()`, `widget()`, `error()` helpers\n- ❌ Skipping Zod schema `.describe()` on every field\n  - ✅ Add descriptions to all schema fields for better AI understanding\n- ❌ No input validation or sanitization\n  - ✅ Validate inputs with Zod, sanitize user-provided data\n- ❌ Throwing errors instead of returning `error()` helper\n  - ✅ Use `error(\"message\")` for graceful error responses\n\n### Widget Development\n- ❌ Accessing `props` without checking `isPending`\n  - ✅ Always check `if (isPending) return \u003CLoading\u002F>`\n- ❌ Widget handles server state (filters, selections)\n  - ✅ Widgets manage their own UI state with `useState`\n- ❌ Missing `McpUseProvider` wrapper or `autoSize`\n  - ✅ Wrap root component: `\u003CMcpUseProvider autoSize>`\n- ❌ Inline styles without theme awareness\n  - ✅ Use `useWidgetTheme()` for light\u002Fdark mode support\n\n### Security & Production\n- ❌ Hardcoded API keys or secrets in code\n  - ✅ Use `process.env.API_KEY`, document in `.env.example`\n- ❌ No error handling in tool handlers\n  - ✅ Wrap in try\u002Fcatch, return `error()` on failure\n- ❌ Expensive operations without caching\n  - ✅ Cache API calls, computations with TTL\n- ❌ Missing CORS configuration\n  - ✅ Configure CORS for production deployments\n\n---\n\n## 🔒 Golden Rules\n\n**Opinionated architectural guidelines:**\n\n### 1. One Tool = One Capability\nSplit broad actions into focused tools:\n- ❌ `manage-users` (too vague)\n- ✅ `create-user`, `delete-user`, `list-users`\n\n### 2. Return Complete Data Upfront\nTool calls are expensive. Avoid lazy-loading:\n- ❌ `list-products` + `get-product-details` (2 calls)\n- ✅ `list-products` returns full data including details\n\n### 3. Widgets Own Their State\nUI state lives in the widget, not in separate tools:\n- ❌ `select-item` tool, `set-filter` tool\n- ✅ Widget manages with `useState` or `setState`\n\n### 4. `exposeAsTool` Defaults to `false`\nWidgets are registered as resources only by default. Use a custom tool (recommended) or set `exposeAsTool: true` to expose a widget to the model:\n\n```typescript\n\u002F\u002F ✅ ALL 4 STEPS REQUIRED for proper type inference:\n\n\u002F\u002F Step 1: Define schema separately\nconst propsSchema = z.object({\n  title: z.string(),\n  items: z.array(z.string())\n});\n\n\u002F\u002F Step 2: Reference schema variable in metadata\nexport const widgetMetadata: WidgetMetadata = {\n  description: \"...\",\n  props: propsSchema,  \u002F\u002F ← NOT inline z.object()\n  exposeAsTool: false\n};\n\n\u002F\u002F Step 3: Infer Props type from schema variable\ntype Props = z.infer\u003Ctypeof propsSchema>;\n\n\u002F\u002F Step 4: Use typed Props with useWidget\nexport default function MyWidget() {\n  const { props, isPending } = useWidget\u003CProps>();  \u002F\u002F ← Add \u003CProps>\n  \u002F\u002F ...\n}\n```\n\n⚠️ **Common mistake:** Only doing steps 1-2 but skipping 3-4 (loses type safety)\n\n### 5. Validate at Boundaries Only\n- Trust internal code and framework guarantees\n- Validate user input, external API responses\n- Don't add error handling for scenarios that can't happen\n\n### 6. Prefer Widgets for Browsing\u002FComparing\nWhen in doubt, add a widget. Visual UI improves:\n- Browsing multiple items\n- Comparing data side-by-side\n- Interactive selection workflows\n\n---\n\n## Quick Reference\n\n### Minimal Server\n```typescript\nimport { MCPServer, text } from \"mcp-use\u002Fserver\";\nimport { z } from \"zod\";\n\nconst server = new MCPServer({\n  name: \"my-server\",\n  title: \"My Server\",\n  version: \"1.0.0\"\n});\n\nserver.tool(\n  {\n    name: \"greet\",\n    description: \"Greet a user\",\n    schema: z.object({ name: z.string().describe(\"User's name\") })\n  },\n  async ({ name }) => text(\"Hello \" + name + \"!\"),\n);\n\nserver.listen();\n```\n\n---\n\n## Response Helpers\n\n| Helper | Use When | Example |\n|--------|----------|---------|\n| `text()` | Simple string response | `text(\"Success!\")` |\n| `object()` | Structured data | `object({ status: \"ok\" })` |\n| `markdown()` | Formatted text | `markdown(\"# Title\\nContent\")` |\n| `widget()` | Visual UI | `widget({ props: {...}, output: text(...) })` |\n| `mix()` | Multiple contents | `mix(text(\"Hi\"), image(url))` |\n| `error()` | Error responses | `error(\"Failed to fetch data\")` |\n| `resource()` | Embed resource refs | `resource(\"docs:\u002F\u002Fguide\", \"text\u002Fmarkdown\")` |\n\n**Server methods:**\n- `server.tool()` - Define executable tool\n- `server.resource()` - Define static\u002Fdynamic resource\n- `server.resourceTemplate()` - Define parameterized resource\n- `server.prompt()` - Define prompt template\n- `server.proxy()` - Compose\u002FProxy multiple MCP servers\n- `server.uiResource()` - Define widget resource\n- `server.listen()` - Start server\n- `server.use('mcp:tools\u002Fcall', fn)` - MCP middleware (tools, resources, prompts, list ops)\n- `server.use('mcp:*', fn)` - Catch-all MCP middleware\n- `server.use(fn)` - HTTP middleware (Hono)\n",{"name":5,"description":7},"main","e0ec177d00f087cb04e90206b2f7d3aa2f5a1350","References\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim","https:\u002F\u002Fgithub.com\u002Flzy18001500226","2026-08-31 23:29:00",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add lzy18001500226\u002FMoSim --skill mcp-apps-builder",{"tool":36,"command":37},"bunx","bunx skills add lzy18001500226\u002FMoSim --skill mcp-apps-builder",{"tool":39,"command":40},"pnpm","pnpm dlx skills add lzy18001500226\u002FMoSim --skill mcp-apps-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002FSKILL.md",true,[44,49,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":15},"LICENSE.txt","LICENSE","许可证",9164,{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fauthentication\u002Fauth0.md","REFERENCE","参考文档",7338,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fauth0.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fauthentication\u002Fbetter-auth.md",7780,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fbetter-auth.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fauthentication\u002Fclerk.md",4192,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fclerk.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fauthentication\u002Fcustom.md",13057,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fcustom.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fauthentication\u002Fkeycloak.md",8273,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fkeycloak.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fauthentication\u002Foverview.md",8649,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Foverview.md",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fauthentication\u002Fsupabase.md",8363,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fsupabase.md",{"path":80,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fauthentication\u002Fworkos.md",6213,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fauthentication\u002Fworkos.md",{"path":84,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Ffoundations\u002Farchitecture.md",8456,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Ffoundations\u002Farchitecture.md",{"path":88,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Ffoundations\u002Fconcepts.md",3395,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Ffoundations\u002Fconcepts.md",{"path":92,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Ffoundations\u002Fdeployment.md",2695,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Ffoundations\u002Fdeployment.md",{"path":96,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Ffoundations\u002Fquickstart.md",6155,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Ffoundations\u002Fquickstart.md",{"path":100,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fpatterns\u002Fcommon-patterns.md",21203,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fpatterns\u002Fcommon-patterns.md",{"path":104,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fserver\u002Fprompts.md",16730,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fserver\u002Fprompts.md",{"path":108,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fserver\u002Fproxy.md",3292,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fserver\u002Fproxy.md",{"path":112,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fserver\u002Fresources.md",11592,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fserver\u002Fresources.md",{"path":116,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fserver\u002Fresponse-helpers.md",12685,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fserver\u002Fresponse-helpers.md",{"path":120,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fserver\u002Ftools.md",12839,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fserver\u002Ftools.md",{"path":124,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fwidgets\u002Fadvanced.md",19955,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Fadvanced.md",{"path":128,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fwidgets\u002Fbasics.md",20275,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Fbasics.md",{"path":132,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fwidgets\u002Ffiles.md",4793,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Ffiles.md",{"path":136,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fwidgets\u002Finteractivity.md",22793,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Finteractivity.md",{"path":140,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fwidgets\u002Fmodel-context.md",5499,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Fmodel-context.md",{"path":144,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":145,"sourceHtmlUrl":146},"references\u002Fwidgets\u002Fstate.md",15923,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Fstate.md",{"path":148,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":149,"sourceHtmlUrl":150},"references\u002Fwidgets\u002Fui-guidelines.md",15818,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FGateway\u002Fmcp-use\u002Fskills\u002Fmcp-apps-builder\u002Freferences\u002Fwidgets\u002Fui-guidelines.md",[152,161,169,177,185,193],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":156,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":160},"01M78RK6JGRPTD3TDSMTQWDQ9P","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-installer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":165,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":160},"01M78RK29KVRDQXSMVZX1GQTJN","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":173,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":160},"01M78RJPF3210Y5DA9VJ6JMMG6","openai-docs","Use for Codex models\u002Fpricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs\u002Fproducts and ChatGPT Work. Also use for model choice\u002Fmigration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat\u002FWork\u002FCodex comparisons. Do not use for generic app\u002Fsoftware tasks that merely mention Codex.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":181,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":160},"01M78RJH7X67C5AY8ZVS7RQNWJ","imagegen","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FSKILL.md",[],[],{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":189,"sourceHtmlUrl":190,"categories":191,"keywords":192,"publishedAt":160},"01M78RBBAYMJ6T3ZMAYHCFM6G7","skill-creator-cc","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fskill-creator-cc\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fskill-creator-cc\u002FSKILL.md",[],[],{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":197,"licenseFileUrl":198,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":202},"01M76VV9V2R9FZTVGMJZV7Y996","prd-writing-guide","Write complete, unambiguous PRDs that development teams can implement without guesswork. Includes requirement discovery framework, structured documentation methodology, completeness checklists, and common pitfall avoidance. Use when: writing new PRDs, reviewing PRD drafts, validating requirement completeness, preparing for engineering handoff. Triggers: 'write PRD', '写PRD', '产品需求文档', '需求文档', '需求规格', '需求评审', '完善需求', 'create requirements doc', 'product requirements', 'feature spec', 'requirements document'. Anti-triggers: 'technical design doc', 'architecture design', 'implementation plan', 'API design', '架构设计', '技术方案', '实现方案', '接口设计'.","MIT","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fprd-writing-guide\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fprd-writing-guide\u002FSKILL.md",[],[],"2026-11-12 13:55:43"]