Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计异常

mcp-clientMCP client CLI

Agent Skill

mcp-client 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,176

周安装

50

GitHub Stars

683

下载量

412
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mcp-client(MCP client CLI)
来源仓库:https://github.com/coleam00/second-brain-skills
仓库路径:skills/mcp-client
安装命令:
npx skills add https://github.com/coleam00/second-brain-skills --skill mcp-client
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/coleam00/second-brain-skills --skill mcp-client

简介

mcp-client 用于连接任意 MCP 服务器,支持按需加载工具模式以节省上下文 token,适合大规模工具集场景。

  • 适用于需要通过标准化协议对接多种外部服务的 Agent 环境,如 API 网关或数据源。
  • 配置文件优先读取 references/mcp-config.json,支持环境变量覆盖路径,脚本位于 scripts/mcp_client.py。
  • 使用前应检查目标 MCP 服务的安全策略,避免暴露敏感凭证或执行未授权操作。
  • mcp-client 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Universal MCP Client

Connect to any MCP server with progressive disclosure - load tool schemas on-demand instead of dumping thousands of tokens into context upfront.

Skill Location

This skill is located at: .claude/skills/mcp-client/

Script path: .claude/skills/mcp-client/scripts/mcp_client.py

Configuration

The script looks for config in this order:

  1. MCP_CONFIG_PATH env var (custom path)
  2. references/mcp-config.json (this skill's config - recommended)
  3. .mcp.json in project root
  4. ~/.claude.json

Your config file: .claude/skills/mcp-client/references/mcp-config.json

Edit this file to add your API keys. The example file (example-mcp-config.json) is kept as a reference template.

If the user hasn't provided their Zapier API key yet, ask them for it.

Running Commands

All commands use the script at .claude/skills/mcp-client/scripts/mcp_client.py:

# List configured servers
python .claude/skills/mcp-client/scripts/mcp_client.py servers

# List tools from a server
python .claude/skills/mcp-client/scripts/mcp_client.py tools <server_name>

# Call a tool
python .claude/skills/mcp-client/scripts/mcp_client.py call <server> <tool> '{"arg": "value"}'

Workflow

  1. Check config exists - Run servers command. If error, create .mcp.json
  2. List servers - See what MCP servers are configured
  3. List tools - Get tool schemas from a specific server
  4. Call tool - Execute a tool with arguments

Commands Reference

CommandDescription
serversList all configured MCP servers
tools <server>List tools with full parameter schemas
call <server> <tool> '<json>'Execute a tool with arguments

Example: Zapier

# 1. List servers to confirm Zapier is configured
python .claude/skills/mcp-client/scripts/mcp_client.py servers

# 2. List Zapier tools
python .claude/skills/mcp-client/scripts/mcp_client.py tools zapier

# 3. Call a Zapier tool
python .claude/skills/mcp-client/scripts/mcp_client.py call zapier <tool_name> '{"param": "value"}'

Example: Sequential Thinking

# 1. List tools
python .claude/skills/mcp-client/scripts/mcp_client.py tools sequential-thinking

# 2. Use sequential thinking
python .claude/skills/mcp-client/scripts/mcp_client.py call sequential-thinking sequentialthinking '{"thought": "Breaking down the problem...", "thoughtNumber": 1, "totalThoughts": 5, "nextThoughtNeeded": true}'

Config Format

Config file format (references/mcp-config.json):

{
  "mcpServers": {
    "zapier": {
      "url": "https://mcp.zapier.com/api/v1/connect",
      "api_key": "your-api-key"
    },
    "sequential-thinking": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
    }
  }
}

Transport detection:

  • url + api_key → FastMCP with Bearer auth (Zapier)
  • command + args → stdio (local servers like sequential-thinking)
  • url ending in /sse → SSE transport
  • url ending in /mcp → Streamable HTTP

Error Handling

Errors return JSON:

{"error": "message", "type": "configuration|validation|connection"}
  • configuration - Config file not found. Create .mcp.json
  • validation - Invalid server or tool name
  • connection - Failed to connect to server

Dependencies

pip install mcp fastmcp

References

  • references/example-mcp-config.json - Template config file
  • references/mcp-servers.md - Common server configurations
  • references/python-mcp-sdk.md - Python SDK documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.99%
按下载量换算140

Claude

30.19%
按下载量换算124

Cursor

17.85%
按下载量换算74

Gemini CLI

8.33%
按下载量换算34

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills