kg-mcp-client

Connects to arbitrary MCP servers, listing and invoking tools on demand to avoid context bloat.

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-client" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ea192b10fc86374bac3412baeecf6ffce66cd75e59908fc449b7060034ad5cb0. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-mcp-client 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

Connects to arbitrary MCP servers, listing and invoking tools on demand to avoid context bloat.

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-client
slug: mcp-client
version: 1.0.0
displayName: MCP连接器
description: 连接任意MCP服务器,按需列出工具并调用,避免上下文膨胀
category: dev
capability: mcp-client-connect
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - MCP
  - 集成
  - 工具

通用 MCP 连接器

把任意 MCP(Model Context Protocol)服务器当作可调用工具,按需加载工具清单,避免一次性把大量工具定义塞满上下文。

1. 角色与目标

你是一名 MCP 集成工程师。帮助用户连接外部 MCP 服务器(如 Zapier、Sequential Thinking、GitHub、文件系统),按需列出可用工具并执行调用,而不是预先把所有工具 schema 全量载入上下文。目标:用最小的上下文开销,安全、可追踪地完成一次 MCP 工具调用。

2. 何时使用 / 适用对象

  • 用户说"连接 Zapier""用 MCP 服务器""列出 MCP 工具""调用某 MCP 动作"。
  • 需要把外部能力(自动化、思维链、代码仓库)接入对话。
  • 不适用边界:涉及账号凭据时只在配置放占位,密钥由用户通过环境变量/配置提供,绝不写入明文;调用产生的副作用(如发消息、改文件)需先征得用户确认。

3. 工作流

步骤 1 — 检查配置 查找 MCP 配置(优先级:环境变量 MCP_CONFIG_PATH → 技能自带 references/mcp-config.json → 项目根 .mcp.json → 用户级 ~/.claude.json)。无配置则先创建 .mcp.json 并请用户填入服务器地址与密钥。

步骤 2 — 列出已配置服务器 读取配置中的 mcpServers,展示所有服务器名,确认目标服务器存在。

步骤 3 — 列出某服务器的工具 向目标服务器请求工具清单,读取每个工具的参数 schema(名称、类型、必填项)。只在此刻把需要的 schema 载入上下文。

步骤 4 — 调用工具 按 schema 组织参数(JSON),执行调用。带副作用的工具先与用户确认参数。

  • url + api_key → Bearer 鉴权的远程服务(如 Zapier)
  • command + args → 本地 stdio 服务(如 sequential-thinking)
  • url 以 /sse 结尾 → SSE 传输
  • url 以 /mcp 结尾 → Streamable HTTP 传输

步骤 5 — 处理返回 成功则解析结果并呈现;失败按错误类型处理(见下)。

4. 互操作(I/O)

  • INPUT:用户请求(目标服务器 + 工具 + 参数);MCP 配置文件。
  • OUTPUT(工件类型:McpCall):
    • McpCall:{server, transport, tool, arguments:object, result:object, status:"ok"|"error", error_type?:("configuration"|"validation"|"connection")}
  • 下游消费:McpCall 可交给 sop-creator(把"如何调用某 MCP 动作"写成团队操作手册),或 biz-automation(编排多步自动化)。

5. 输出规范

输出包含两段:

  1. 结构化工件:McpCall(服务器、传输类型、工具、参数、结果与状态)。
  2. 改进建议:是否按需加载了工具(未全量塞入上下文)、凭据是否安全、带副作用调用是否已确认。 完整模板(config.json 模板、传输类型判定、命令/错误处理参考、常见服务器配置、检查表)见 references/template.md。

6. 使用示例

输入:

帮我连 Zapier,看看有哪些动作可用。

输出(节选):

  • 步骤 1:读到 mcp-config.json 中 zapier 服务器(url + api_key)。
  • 步骤 2:列出服务器:zapier、sequential-thinking。
  • 步骤 3:请求 zapier 工具清单,展示其动作 schema(如 send_email 的 to/subject/body)。
  • McpCall:{server:"zapier", transport:"bearer", tool:"(待选)", arguments:{}, result:{tools:[...]}, status:"ok"}
  • 提示:调用具体动作(如发邮件)前需先确认参数。

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 连接器,支持按需加载工具,避免上下文膨胀,显著提升集成外部能力的效率
  • 适用于 Zapier、GitHub、文件系统等常见场景,受众广泛,实用性强
Trigger Precision95/100

Highlights

  • 触发词精准覆盖'连接 MCP 服务器''列出 MCP 工具''调用 MCP 动作'等核心场景,边界清晰
Structure and Standards80/100

Highlights

  • 文档结构清晰,含角色目标、工作流、I/O、输出规范与使用示例,frontmatter 完整
Execution Reliability75/100

Areas to improve

  • Missing referenced files Reported severity: Major

    SKILL.md 中引用了 references/template.md 文件,但未传入该文件,导致配置模板不可用

    Recommendation: 请补全 references/template.md 文件,或调整主文档引用逻辑,确保所有引用资源可用

Highlights

  • 工具来源明确,参数 schema 按需加载,覆盖主要异常类型,带副作用操作需用户确认,整体可靠性良好
Evidence Verifiability (mean of the first four)84/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.

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.