mcp-server-builder – skill Agent & Tự động hóa cho agent AI
Thiết kế và triển khai MCP (Model Context Protocol) server sẵn sàng production từ hợp đồng OpenAPI thay vì wrapper tool viết tay. Hỗ trợ Python và TypeScript, kiểm tra schema, tiến hóa an toàn. Dùng khi đưa một API có sẵn thành MCP server, xây dựng tích hợp tool cho Claude, Codex hoặc Cursor, hoặc scaffoldi
Cài skill mcp-server-builder bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/mcp-server-builder-10669.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /mcp-server-builder – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/mcp-server-builder-10669.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $mcp-server-builder – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/mcp-server-builder-10669.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /mcp-server-builder – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/mcp-server-builder-10669.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /mcp-server-builder – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
MCP Server Builder
Tier: POWERFUL · Category: Engineering · Domain: AI / API Integration
Overview
Use this skill to design and ship production-ready MCP servers from API contracts instead of hand-written one-off tool wrappers. It focuses on fast scaffolding, schema quality, validation, and safe evolution.
The workflow supports both Python and TypeScript MCP implementations and treats OpenAPI as the source of truth.
Core Capabilities
- Convert OpenAPI paths/operations into MCP tool definitions
- Generate starter server scaffolds (Python or TypeScript)
- Enforce naming, descriptions, and schema consistency
- Validate MCP tool manifests for common production failures
- Apply versioning and backward-compatibility checks
- Separate transport/runtime decisions from tool contract design
When to Use
- You need to expose an internal/external REST API to an LLM agent
- You are replacing brittle browser automation with typed tools
- You want one MCP server shared across teams and assistants
- You need repeatable quality checks before publishing MCP tools
- You want to bootstrap an MCP server from existing OpenAPI specs
Key Workflows
1. OpenAPI to MCP Scaffold
1. Start from a valid OpenAPI spec.
2. Generate tool manifest + starter server code.
3. Review naming and auth strategy.
4. Add endpoint-specific runtime logic.
python3 scripts/openapi_to_mcp.py \
--input openapi.json \
--server-name billing-mcp \
--language python \
--output-dir ./out \
--format textSupports stdin as well:
cat openapi.json | python3 scripts/openapi_to_mcp.py --server-name billing-mcp --language typescript2. Validate MCP Tool Definitions
Run validator before integration tests:
python3 scripts/mcp_validator.py --input out/tool_manifest.json --strict --format textChecks include duplicate names, invalid schema shape, missing descriptions, empty required fields, and naming hygiene.
3. Runtime Selection
- Choose Python for fast iteration and data-heavy backends.
- Choose TypeScript for unified JS stacks and tighter frontend/backend contract reuse.
- Keep tool contracts stable even if transport/runtime changes.
4. Harden for Production
Key items before publishing:
- Keep secrets in env vars, not tool schemas
- Prefer outbound host allowlists over open proxies
- Use additive-only changes; never rename tool names in-place
Full hardening guidance: [references/production-hardening-guide.md](references/production-hardening-guide.md).
Script Interfaces
python3 scripts/openapi_to_mcp.py --help- Reads OpenAPI from stdin or
--input - Produces manifest + server scaffold
- Emits JSON summary or text report
python3 scripts/mcp_validator.py --help- Validates manifests and optional runtime config
- Returns non-zero exit in strict mode when errors exist
Reference Material
- [references/production-hardening-guide.md](references/production-hardening-guide.md) — auth & safety design, versioning strategy, common pitfalls, best practices, architecture decisions, contract quality gates, testing strategy, deployment practices, security controls
- [references/openapi-extraction-guide.md](references/openapi-extraction-guide.md)
- [references/python-server-template.md](references/python-server-template.md)
- [references/typescript-server-template.md](references/typescript-server-template.md)
- [references/validation-checklist.md](references/validation-checklist.md)
- [README.md](README.md)
Skill liên quan
- cursor-delegate – Giao tác vụ lập trình cho Cursor Agent CLI (`cursor-agent`) chỉ khi người dùng yêu cầu…
- scrapling – Thu thập dữ liệu website với trình duyệt tàng hình và vượt Cloudflare.
- memory-engineering – Dùng khi thiết kế, rà soát hoặc chi trả cho hệ thống bộ nhớ của agent — thêm bộ nhớ cho…
- memory-review – Phân tích auto-memory để tìm ứng viên thăng cấp, mục cũ, cơ hội hợp nhất và chỉ số sức…
- memory-status – Bảng điều khiển sức khỏe bộ nhớ: số dòng, file chủ đề, dung lượng, mục cũ và khuyến…
- merge – Hợp nhất nhánh của agent thắng cuộc vào base, lưu trữ các nhánh thua và dọn dẹp…
- datadog-automation – Tự động hóa tác vụ Datadog qua Rube MCP (Composio): truy vấn metric, tìm log, quản lý…
- datawebot – Tìm sản phẩm bán trên các cửa hàng trực tuyến, liệt kê giá của người bán kèm liên kết…