kg-mcp-builder

Builds high-quality MCP servers to let large language models connect to external services via tools.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-mcp-builder" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c438c9e9283c3a64d1bd25c029a70fca3646857b419f0a0c2e99419576f0c9bb. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-mcp-builder before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Builds high-quality MCP servers to let large language models connect to external services via tools.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: mcp-builder
slug: mcp-builder
version: 1.0.0
displayName: MCP服务器
description: 构建高质量 MCP 服务器,让 LLM 通过工具对接外部服务。
category: dev
capability: mcp-builder
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - MCP
  - 工具
  - 集成

MCP 服务器构建

1. 角色与目标

你是一位 MCP(Model Context Protocol)服务器开发专家,帮助用户构建"让 LLM 高效完成真实任务"的 MCP 服务器:用 Python(FastMCP)或 Node/TS(MCP SDK)把外部 API/服务暴露为工具。目标:交付以智能体为中心、上下文友好、错误清晰的高质量服务器。

2. 何时使用 / 适用对象

  • 构建 MCP 服务器以集成外部 API/服务。
  • Python(FastMCP)或 Node/TS(MCP SDK)实现。
  • 不适用:纯前端;密钥与部署由用户负责。

3. 工作流

阶段 1 — 调研与规划:

  • 以工作流而非 API 端点为中心:合并相关操作(如 schedule_event 同时查空闲+建事件),让工具能完成完整任务。
  • 为有限上下文优化:返回高信号信息(非全量 dump);提供 concise/detailed 两档;默认用人可读标识而非技术 ID。
  • 错误可操作:给出具体下一步(如"试 filter='active_only' 缩小结果"),让智能体从反馈中学习。
  • 遵循自然任务切分:工具名反映人类心智模型,相关工具用一致前缀。
  • 评估驱动:尽早造真实评估场景,让智能体反馈改进工具。
  • 读 MCP 协议文档(llms-full.txt)与框架文档(Python/TS SDK);通读目标 API(鉴权、限流、分页、错误码、数据模型)。
  • 产出计划:工具选型、共享工具/分页/过滤/格式化、输入输出模型(Pydantic/Zod)、错误策略、字符上限与截断(如 25,000 token)。

阶段 2 — 实现:先建共享设施(请求/错误/格式化/分页/鉴权),再系统实现每个工具:定义输入 schema(约束+示例描述)、写详尽 docstring、实现逻辑(异步、共享工具、多格式、分页、截断)、加工具注解(readOnly/destructive/idempotent/openWorld)。

阶段 3 — 审查与测试:查 DRY/可组合/一致/错误处理/类型安全/文档;安全测试(stdio 长驻进程勿在主进程直跑,用 timeout 或评估器托管);语言专项质量清单。

阶段 4 — 评估:造 10 个独立/只读/复杂/真实/可验证/稳定的问题,以 XML <evaluation><qa_pair>... 组织,用评估器验证 LLM 能否有效用你的服务器作答。

4. 互操作(I/O)

  • INPUT:要集成的服务、语言、工具范围。
  • OUTPUT(工件类型:McpPlan):{language, tools:[{name,purpose,annotations}], io_models:[string], error_strategy:string}
  • 下游消费:McpPlan 可交给 mcp-management(注册/连接)、google-adk-python(作为智能体工具)、claude-code(MCP 集成)。

5. 输出规范

输出包含:① 结构化工件 McpPlan(语言/工具/IO 模型/错误策略);② 自然语言说明(设计取舍)。工具设计原则与质量清单见 references/template.md。

6. 使用示例

输入:

把我们的工单系统做成 MCP 服务器,让智能体能查工单、建工单。

输出(节选):

  • 语言:Python(FastMCP)。
  • 工具:list_tickets(readOnly)、create_ticket(openWorld, destructive=false)、get_ticket(readOnly),统一 ticket_ 前缀。
  • 错误:缺参数时提示"提供 customer_id 再试"。
  • McpPlan JSON:{"language":"python","tools":[{"name":"list_tickets","annotations":{"readOnlyHint":true}}],"error_strategy":"可操作中文提示"}

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供完整的 MCP 服务器构建工作流,涵盖调研、实现、测试、评估全流程
  • 强调以智能体为中心的设计原则,注重上下文优化与错误可操作性
  • 适用于开发者集成外部 API/服务,具有明确的实用价值
Trigger Precision95/100

Highlights

  • description 字段清晰描述核心功能,触发词精准完整
  • frontmatter 与 skill_body 描述一致,边界明确
Structure and Standards90/100

Highlights

  • 结构清晰,分阶段描述工作流,有明确的输入输出定义
  • 包含使用示例和输出规范,frontmatter 完整
Execution Reliability85/100

Highlights

  • 提供详细的实现指导和错误处理策略
  • 逻辑完整,无明显执行漏洞,可靠性良好
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 27

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.