Chuyển đến nội dung
Skillpedia
Trình kết nối (MCP)144k · #681

mcp-apps-builder

Skill này làm gì

Skill này cung cấp cho agent của bạn các thực hành tốt nhất để xây dựng máy chủ MCP, thứ kết nối trợ lý AI với công cụ và dữ liệu. Skill dành cho lập trình viên tạo hoặc thay đổi một máy chủ MCP.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent tạo một máy chủ MCP mới.
  • ✓Khi bạn muốn thêm hoặc thay đổi tool, resource, prompt hoặc widget trong máy chủ MCP.
  • ✓Khi bạn cần giúp gỡ lỗi hoặc rà soát một máy chủ MCP.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: 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 Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thêm một tool vào máy chủ MCP của tôi để tra cứu trạng thái đơn hàng, và hiển thị kết quả dưới dạng widget đơn giản.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill trước hết kiểm tra xem bạn đã có dự án mcp-use chưa. Sau đó nó chỉ agent đến các hướng dẫn tham khảo cho từng tính năng, như tool, widget hoặc bảo mật, trước khi viết code.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Nó có tạo dự án mới cho tôi không?

Chỉ khi bạn chưa ở trong một dự án mcp-use. Trong dự án có sẵn, nó thêm tính năng vào dự án đó.

Nó bao gồm những gì?

Tool, resource, prompt, widget, gỡ lỗi, rà soát code và các câu hỏi về phát triển MCP.

Vì sao nó yêu cầu agent đọc các file tham khảo?

Các file tham khảo chứa các mẫu chi tiết và lưu ý an toàn mà các ví dụ ngắn bỏ qua.

Chi tiết

Mô tả gốc của tác giả

**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

Độ phổ biến

Sao GitHub
144k
Vị trí xếp hạng
#681
Giấy phép
Apache-2.0
Cập nhật
22/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự