Index of every page on this site: llms.txt
All skills
mcp-use avatar

/mcp-apps-builder

@338b9a7 official
by Manufactmcp-use/mcp-use11k stars
1,535
Run it yourself

Build, modify, debug, migrate, review, or verify TypeScript MCP servers and MCP Apps with mcp-use. Use for tools, resources, prompts, middleware, Views, authentication, Skills over MCP, scaffolding, and advanced features.

Use this Skill: https://skilld.dev/gh/mcp-use/mcp-use/mcp-apps-builder

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesmigration.md

≈825 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Migrate older mcp-use patterns

Read this reference only when the project contains retired or compatibility-only patterns that are absent from or no longer preferred by the installed package. Migrate behavior, not names alone, and verify every changed boundary against installed types.

Replace retired patterns

Older or compatibility pattern Current replacement
Server imports from mcp-use/server Import public server APIs from mcp-use
Tool schema Tool inputSchema; prompt arguments still use schema
Inline callback fields Pass the callback as the registration method's second argument
Chained server.tool(...).tool(...) Register separately; tool() returns a ToolRef
Nested resource-template configuration Top-level uriTemplate and complete fields
Response helpers as the default result path Raw tool, resource, or prompt protocol envelopes
resources/<name>/widget.tsx views/<name>/view.tsx
Tool widget: { name } Tool view: { name }
widget({ props, output }) { content, structuredContent, _meta? }
useWidget() or useWidgetProps() Destructured useToolContext<"tool-name">()
Aggregate provider wrapper Runtime bootstrap plus focused React hooks and components
Aggregate widget state and host methods useViewState, useHostContext, useDisplayMode, and focused hooks

Do not mechanically rename every schema: prompts intentionally retain that field. Confirm resource and prompt callback signatures independently from tools.

Rebuild interactive UI

For each rendering tool:

  1. Move the entry to views/<name>/view.tsx.
  2. Export the tool ref from the server entry.
  3. Add outputSchema and view: { name }.
  4. Put model-readable text in content, typed render data in structuredContent, and View-only invocation data in _meta.
  5. Destructure useToolContext() and handle pending, error, and ready states before reading toolOutput.
  6. Replace aggregate UI methods with focused hooks.
  7. Move CSP to view.csp and resolve public assets through the framework base.

Remove transport and session assumptions

Treat callbacks as request-scoped and potentially concurrent. Replace active-session registries, session affinity, in-memory user identity, and post-response client targeting with request context or an external store. Use ctx.client only for self-reported capabilities and ctx.auth for verified identity.

Use basePath for the MCP endpoint path and MCP_URL for the externally visible public origin. Do not reconstruct public URLs from localhost assumptions.

Migration checklist

  1. Search source, tests, examples, and project documentation for the retired identifiers above.
  2. Confirm public imports and registration signatures against the installed package.
  3. Run type generation and typechecking before interpreting downstream errors.
  4. Exercise every migrated tool, resource template, and prompt through a real client.
  5. Render each migrated View and test pending, error, ready, interaction, asset, and CSP behavior.
  6. Test authentication, notifications, and elicitation through supported clients when those boundaries changed.
  7. Pack and import from a clean consumer when package exports or dependencies changed.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning11d5 checks · Risk SAFE
  • Gen Agent Trust Hub11d

    This skill provides comprehensive instructions for building and maintaining TypeScript MCP servers using the mcp-use framework, including scaffolding, authentication, and UI components.

  • Socket11d

    No alerts

  • Snyk11d

    Risk: LOW · No issues

  • Runlayer8mo

    6/20 files flagged

  • ZeroLeaks6mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 338b9a7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 2 weeks ago
  • MCP
  • TypeScript
  • mcp-use
  • server
  • tools
  • resources
  • prompts
  • widgets
  • authentication

README badge

README badge for mcp-use/mcp-use/mcp-apps-builder

Provides architecture patterns, best practices, and reference guides for building MCP servers with the mcp-use framework, covering tools, resources, prompts, widgets, authentication, and deployment. Essential reading before implementing any MCP server feature—use the navigation guide to find the specific reference file for your task.

Generated from the current SKILL.md.

Is this skill for building MCP servers or using them?
This skill is for building MCP servers with mcp-use. It provides architecture patterns, authentication setup, and implementation guides for tools, resources, prompts, and widgets.
Do I need to read all the reference files before starting?
No. Start with concepts.md and architecture.md for foundations, then read only the specific reference file for the feature you're implementing (e.g., tools.md for creating a tool, authentication/overview.md for adding auth).
Can I manually create MCP server boilerplate instead of using the CLI?
No. Always use `npx create-mcp-use-app` to scaffold new projects. The CLI sets up TypeScript, dev scripts, inspector integration, and widget compilation that are difficult to replicate manually.
How do I test my MCP server without the inspector UI?
Use the `mcp-use client` CLI tool to drive your server from the terminal. Commands like `npx mcp-use client connect dev http://localhost:3000/mcp` let you list and call tools directly, optionally saving a screenshot with `--screenshot`.
Does this cover widget development?
Yes. The skill includes guides for building React-based widgets covering basics, state management, interactivity, theming, file uploads, and keeping the AI model aware of UI state.

Generated from the current SKILL.md. These answers refresh after source changes.