mcp-apps-builder

Guides building MCP servers with tools, resources, prompts, and React widgets using mcp-use.

7|3|Updated May 8, 2026
One-click install
npx skills add https://github.com/CopilotKit/Generative-UI-Global-Hackathon-Starter-Kit --skill mcp-apps-builder-copilotkit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mcp-apps-builder
Source: https://github.com/CopilotKit/Generative-UI-Global-Hackathon-Starter-Kit/tree/main/.cursor/skills/mcp-apps-builder
Command: npx skills add https://github.com/CopilotKit/Generative-UI-Global-Hackathon-Starter-Kit --skill mcp-apps-builder-copilotkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mcp-use, zod, and includes references (resource) components.

What problem does it solve? Building production-ready MCP servers with the mcp-use framework involves many architectural decisions, security patterns, and common pitfalls that are easy to get wrong without structured guidance. ## Core Features & Use Cases - Project Scaffolding & Foundations: Detects existing mcp-use projects, scaffolds new ones with create-mcp-use-app, and explains MCP primitives, Hono-based architecture, and middleware. - Server Backend Guidance: Covers tools, resources, prompts, response helpers, proxying, and OAuth authentication via WorkOS, Supabase, or custom providers. - Interactive Widget Development: Provides patterns for React widgets including state management, tool calls, theming, model context, file handling, and advanced performance techniques. - Use Case: When asked to add a new tool with a visual widget to an MCP server, the skill directs you to the exact reference files for tool definition, widget metadata typing, and isPending handling before writing any code. ## Quick Start Ask the agent to create a new MCP server with a weather tool and an interactive widget using the mcp-use framework.

Frequently Asked Questions about mcp-apps-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new MCP server with mcp-use?▼

Run npx create-mcp-use-app my-server, then cd into the directory and run npm run dev. The CLI sets up TypeScript config, dev scripts, inspector integration, hot reload, and widget compilation, so you should never manually create the boilerplate.

How do I add a widget to an MCP tool in mcp-use?▼

Define a tool with a widget config referencing a component in the resources directory, then return widget({ props, output }) from the handler. The widget component must export widgetMetadata with a Zod props schema, wrap its root in McpUseProvider with autoSize, and check isPending before accessing props.

Does mcp-use support OAuth authentication for MCP servers?▼

Yes, mcp-use supports OAuth through WorkOS AuthKit, Supabase, or custom identity providers like GitHub, Okta, and Google. When configured, unauthenticated requests receive a 401 with a WWW-Authenticate header, and user context is available via ctx.auth.

Why is my mcp-use widget props type showing as unknown?▼

This happens when you infer types from widgetMetadata.props with an inline Zod schema. Define the schema in a separate constant, reference it in widgetMetadata, then use z.infer on that constant and pass the type to useWidget<Props>().

When should I use a tool versus a widget in MCP servers?▼

Use tools for backend actions with simple text or structured output, and widgets when users benefit from browsing, comparing, or interactively selecting data visually. Widgets manage their own UI state with useState rather than separate state-management tools.

How do I deploy an mcp-use MCP server to production?▼

The skill's deployment reference covers deploying to Manufact Cloud, self-hosting, and Docker-based deployments. For production, configure CORS, use environment variables for secrets instead of hardcoded keys, and add error handling in tool handlers.