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

mcp-builder

Skill này làm gì

Skill này hướng dẫn việc tạo máy chủ MCP, thứ cấp cho trợ lý AI quyền truy cập công cụ và dữ liệu. Skill dành cho lập trình viên muốn xây dựng máy chủ MCP bằng mcp-use. Mô tả cho biết skill này đã lỗi thời và được thay bằng skill khác.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một máy chủ MCP với tool, resource hoặc prompt.
  • ✓Khi bạn cần một widget hình ảnh tương tác bên trong máy chủ MCP.
  • ✓Khi bạn cần định nghĩa resource theo kiểu URL có tham số.

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

“Xây dựng một máy chủ MCP với một tool chuyển đổi số tiền tệ, và hiển thị kết quả trong một widget nhỏ.”

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

Cách hoạt động

Skill giúp bạn lập kế hoạch phần nào cần widget hình ảnh và phần nào chỉ cần văn bản, rồi chỉ agent đến các hướng dẫn viết tool, resource và widget.

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.

MCP Server Builder

Build production-ready MCP servers with tools, resources, prompts, and interactive widgets using mcp-use.

Before You Code

Decompose user requests into tools, widgets, and resources. Decide what needs UI vs text.

Read design-and-architecture.md: when planning what to build, deciding tool vs widget, or designing UX flows.

Implementation

  • Tools, resources, prompts → tools-and-resources.md: when writing server-side server.tool(), server.resource(), server.prompt() code
  • Visual widgets (React TSX) → widgets.md: when creating interactive UI widgets in resources/ folder
  • Response helper API → response-helpers.md: when choosing how to format tool/resource return values
  • URI template patterns → resource-templates.md: when defining parameterized resources

Quick Reference

import {
  MCPServer,
  text,
  object,
  markdown,
  html,
  image,
  widget,
  error,
} from "mcp-use/server";
import { z } from "zod";

const server = new MCPServer({ name: "my-server", version: "1.0.0" });

// Tool
server.tool(
  {
    name: "my-tool",
    description: "...",
    schema: z.object({ param: z.string().describe("...") }),
  },
  async ({ param }) => text("result"),
);

// Resource
server.resource(
  { uri: "config://settings", name: "Settings", mimeType: "application/json" },
  async () => object({ key: "value" }),
);

// Prompt
server.prompt(
  {
    name: "my-prompt",
    description: "...",
    schema: z.object({ topic: z.string() }),
  },
  async ({ topic }) => text(`Write about ${topic}`),
);

server.listen();

Response helpers: text(), object(), markdown(), html(), image(), audio(), binary(), error(), mix(), widget()

Server methods: server.tool(), server.resource(), server.resourceTemplate(), server.prompt(), server.listen()

Câu hỏi thường gặp

Đây có phải phiên bản hiện tại của skill không?

Không. Mô tả cho biết nó đã lỗi thời và chỉ đến mcp-app-builder thay thế.

Nó có thể thêm widget hình ảnh không?

Có. Nó có hướng dẫn xây dựng widget React cho máy chủ MCP.

Nó có giải thích cách định dạng phản hồi không?

Có. Nó bao gồm các tùy chọn trợ giúp phản hồi cho kết quả của tool và resource.

Chi tiết

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

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build Model Context Protocol (MCP) servers with mcp-use framework. Use when creating MCP servers, defining tools/resources/prompts, working with mcp-use, bootstrapping MCP projects, or when user mentions MCP development, tools, resources, or prompts.

repo: Shubhamsaboo/awesome-llm-apps

Độ phổ biến

Sao GitHub
144k
Vị trí xếp hạng
#682
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ự