build-mcp-use-server
Installation
SKILL.md
Build mcp-use Server
Server-side mechanics for mcp-use/server TypeScript MCP servers. This skill owns API surface; sister skills own structure, clients, agents, and raw SDK.
When to use this skill
Trigger when the target code or request involves any of these:
- Imports from
mcp-use/server(MCPServer,text,object,mix,error,widget,Logger). - Defining or refining
server.tool(),server.resource(),server.prompt(),server.uiResource()with Zod schemas. - Server-side
ctxwork —ctx.auth,ctx.elicit(),ctx.sample(),ctx.notify(),ctx.client.can(),ctx.client.supportsApps(). - Configuring transports (Streamable HTTP, stateless, stdio), session stores, OAuth (DCR or proxy), CORS, allowedOrigins, DNS rebinding.
- MCP Apps / ChatGPT Apps widgets —
widgetMetadata,text/html;profile=mcp-app,text/html+skybridge,McpUseProvider,useCallTool,useWidget, CSP. - Running
mcp-use dev,mcp-use build,mcp-use start,mcp-use deploy,mcp-use generate-types, or debugging via Inspector / curl handshake on/mcp. - Hardening for production: health/readiness routes, graceful shutdown, rate limits, deploy to mcp-use Cloud, Vercel, Cloud Run, Fly, Cloudflare Workers, Deno Deploy, Supabase.
- Migrating from raw
@modelcontextprotocol/sdkserver code,mcp-usev1, orappsSdkwidgets to currentmcp-use/server.
Do not use this skill when: