跳到正文
Skillpedia
连接器(MCP)144k · #681

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我: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 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. Read this overview to understand which reference files are relevant
  2. ALWAYS read the specific reference file(s) for the features you're implementing
  3. 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.

  1. concepts.md - MCP primitives (Tool, Resource, Prompt, Widget) and when to use each
  2. architecture.md - Server structure (Hono-based), middleware system, server.use() vs server.app
  3. quickstart.md - Scaffolding, setup, and first tool example
  4. 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)

  • overview.md

    • When: First time adding auth, understanding ctx.auth, or choosing a provider
    • Covers: oauth config, user context shape, provider comparison, common mistakes
  • workos.md

    • When: Using WorkOS AuthKit for authentication
    • Covers: Setup, env vars, DCR vs pre-registered, roles/permissions, WorkOS API calls
  • supabase.md

    • When: Using Supabase for authentication
    • Covers: Setup, env vars, HS256 vs ES256, RLS-aware API calls
  • custom.md

    • 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.

  • tools.md

    • When: Creating backend actions the AI can call (send-email, fetch-data, create-user)
    • Covers: Tool definition, schemas, annotations, context, error handling
  • resources.md

    • When: Exposing read-only data clients can fetch (config, user profiles, documentation)
    • Covers: Static resources, dynamic resources, parameterized resource templates, URI completion
  • prompts.md

    • 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

repo: Shubhamsaboo/awesome-llm-apps

热度

GitHub 星标
144k
排名
#681
许可证
Apache-2.0
更新时间
2026/10/22

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能