mcp-apps-builder
它能做什么
这项技能为你的智能体提供构建 MCP 服务器的最佳实践。MCP 服务器把 AI 助手与工具和数据连接起来。适合创建或修改 MCP 服务器的开发者。
适用场景
- ✓你要求智能体创建新的 MCP 服务器的时候。
- ✓你想在 MCP 服务器中添加或修改工具、资源、提示词或小组件的时候。
- ✓你需要调试或审查 MCP 服务器的帮助的时候。
技能链接
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/generative_ui_agents/ai-mcp-app-builder/apps/mcp-use-server/.agent/skills/mcp-apps-builder/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的 MCP 服务器中添加一个查询订单状态的工具,并把结果显示为一个简单的小组件。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能首先检查你是否已经有一个 mcp-use 项目。然后,在编写代码之前,它会指引智能体查阅每项功能的参考指南,例如工具、小组件或安全性。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
IMPORTANT: How to Use This Skill
This file provides a NAVIGATION GUIDE ONLY. Before implementing any MCP server features, you MUST:
- Read this overview to understand which reference files are relevant
- ALWAYS read the specific reference file(s) for the features you're implementing
- Apply the detailed patterns from those files to your implementation
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.
MCP Server Best Practices
Comprehensive guide for building production-ready MCP servers with tools, resources, prompts, and widgets using mcp-use.
⚠️ FIRST: New Project or Existing Project?
Before doing anything else, determine whether you are inside an existing mcp-use project.
Detection: Check the workspace for a package.json that lists "mcp-use" as a dependency, OR any .ts file that imports from "mcp-use/server".
├─ mcp-use project FOUND → Do NOT scaffold. You are already in a project.
│ └─ Skip to "Quick Navigation" below to add features.
│
├─ NO mcp-use project (empty dir, unrelated project, or greenfield)
│ └─ Scaffold first with npx create-mcp-use-app, then add features.
│ See "Scaffolding a New Project" below.
│
└─ Inside an UNRELATED project (e.g. Next.js app) and user wants an MCP server
└─ Ask the user where to create it, then scaffold in that directory.
Do NOT scaffold inside an existing unrelated project root.
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.
Scaffolding a New Project
npx create-mcp-use-app my-server
cd my-server
npm run dev
For full scaffolding details and CLI flags, see quickstart.md.
Quick Navigation
Choose your path based on what you're building:
🚀 Foundations
When: ALWAYS read these first when starting MCP work in a new conversation. Reference later for architecture/concept clarification.
- concepts.md - MCP primitives (Tool, Resource, Prompt, Widget) and when to use each
- architecture.md - Server structure (Hono-based), middleware system, server.use() vs server.app
- quickstart.md - Scaffolding, setup, and first tool example
- deployment.md - Deploying to Manufact Cloud, self-hosting, Docker, managing deployments
Load these before diving into tools/resources/widgets sections.
🔐 Adding Authentication?
When: Protecting your server with OAuth (WorkOS, Supabase, or custom)
-
- When: First time adding auth, understanding
ctx.auth, or choosing a provider - Covers:
oauthconfig, user context shape, provider comparison, common mistakes
- When: First time adding auth, understanding
-
- When: Using WorkOS AuthKit for authentication
- Covers: Setup, env vars, DCR vs pre-registered, roles/permissions, WorkOS API calls
-
- When: Using Supabase for authentication
- Covers: Setup, env vars, HS256 vs ES256, RLS-aware API calls
-
- When: Using any other identity provider (GitHub, Okta, Azure AD, Google, etc.)
- Covers: Custom verification, user info extraction, provider examples
🔧 Building Server Backend (No UI)?
When: Implementing MCP features (actions, data, templates). Read the specific file for the primitive you're building.
-
- When: Creating backend actions the AI can call (send-email, fetch-data, create-user)
- Covers: Tool definition, schemas, annotations, context, error handling
-
- When: Exposing read-only data clients can fetch (config, user profiles, documentation)
- Covers: Static resources, dynamic resources, parameterized resource templates, URI completion
-
- When: Creating reusable message templates for AI interactions (code-revie
常见问题
它会为我创建新项目吗?
只有当你不在 mcp-use 项目中时才会。在已有的项目中,它会向该项目添加功能。
它涵盖哪些内容?
工具、资源、提示词、小组件、调试、代码审查,以及有关 MCP 开发的问题。
为什么要让智能体阅读参考文件?
参考文件包含简短示例所省略的详细模式和安全注意事项。
详情
作者的原始描述
**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pi
热度
- GitHub 星标
- 144k
- 排名
- #681
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/22
评论
- …
同一仓库的更多技能
advisor-orchestrator-worker
144k帮你的智能体把非常庞大的任务分配给一组 AI 模型,由较强的模型负责规划和检查,较便宜的模型负责执行。
commit-archaeologist
144k帮你的智能体通过阅读本地 git 历史,解释某段代码存在的原因,包括是谁添加的以及之后发生了哪些改动。
dependency-doctor
144k帮你的智能体检查 requirements.txt、pyproject.toml 或 package.json 文件中常见的依赖问题,并提出小而便于审阅的修复建议。
first-reader
144k帮你的智能体模拟真实读者的阅读体验来测试草稿,指出读者可能在哪里失去兴趣,以及他们会记住什么。