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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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:
- 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
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
Độ 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
Bình luận
- …
Thêm skill từ kho mã này
advisor-orchestrator-worker
144kGiúp agent của bạn chia một tác vụ rất lớn cho nhóm model AI, model mạnh lập kế hoạch và kiểm tra, còn model rẻ hơn làm phần việc.
commit-archaeologist
144kGiúp agent của bạn giải thích lý do một đoạn code tồn tại bằng cách đọc lịch sử git cục bộ, gồm ai đã thêm nó và điều gì thay đổi sau đó.
dependency-doctor
144kGiúp agent của bạn kiểm tra file requirements.txt, pyproject.toml hoặc package.json để tìm lỗi phụ thuộc thường gặp và gợi ý sửa nhỏ.
first-reader
144kGiúp agent của bạn kiểm thử bản nháp bằng cách mô phỏng cách độc giả thật trải nghiệm nó, chỉ ra chỗ họ có thể mất hứng thú và điều họ ghi nhớ.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.