mcp-management by mrgoonie/claudekit-skills
npx skills add https://github.com/mrgoonie/claudekit-skills --skill mcp-management用于管理和与模型上下文协议(MCP)服务器交互的技能。
MCP 是一个开放协议,使 AI 代理能够连接到外部工具和数据源。此技能提供脚本和实用程序,用于从配置的服务器发现、分析和执行 MCP 功能,而不会污染主上下文窗口。
主要优势:
在以下情况使用此技能:
MCP 服务器在 .claude/.mcp.json 中配置。
Gemini CLI 集成(推荐):创建指向 .gemini/settings.json 的符号链接:
mkdir -p .gemini && ln -sf .claude/.mcp.json .gemini/settings.json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
npx tsx scripts/cli.ts list-tools # 保存到 assets/tools.json
npx tsx scripts/cli.ts list-prompts
npx tsx scripts/cli.ts list-resources
从多个服务器聚合功能,并标识服务器来源。
LLM 直接分析 assets/tools.json - 优于关键词匹配算法。
主要方式:Gemini CLI(如果可用)
gemini -y -m gemini-2.5-flash -p "Take a screenshot of https://example.com"
次要方式:直接脚本
npx tsx scripts/cli.ts call-tool memory create_entities '{"entities":[...]}'
备用方案:mcp-manager 子代理
完整示例请参见 references/gemini-cli-integration.md。
使用 Gemini CLI 进行自动工具发现和执行。完整指南请参见 references/gemini-cli-integration.md。
快速示例:
gemini -y -m gemini-2.5-flash -p "Take a screenshot of https://example.com"
优势:自动工具发现、自然语言执行、比子代理编排更快。
当 Gemini CLI 不可用时,使用 mcp-manager 代理。子代理发现工具、选择相关工具、执行任务并报告结果。
优势:主上下文保持清洁,仅在需要时加载相关工具定义。
LLM 读取 assets/tools.json,利用上下文理解、同义词和意图识别智能选择相关工具。
跨多个服务器协调工具。每个工具都知道其来源服务器,以便正确路由。
核心 MCP 客户端管理器类。处理:
.claude/.mcp.json 加载配置用于 MCP 操作的命令行界面。命令:
list-tools - 显示所有工具并保存到 assets/tools.jsonlist-prompts - 显示所有提示list-resources - 显示所有资源call-tool <server> <tool> <json> - 执行一个工具注意:list-tools 将完整的工具目录持久化到 assets/tools.json,包含完整的模式,以便快速参考、离线浏览和版本控制。
方法 1:Gemini CLI(推荐)
npm install -g gemini-cli
mkdir -p .gemini && ln -sf .claude/.mcp.json .gemini/settings.json
gemini -y -m gemini-2.5-flash -p "Take a screenshot of https://example.com"
方法 2:脚本
cd .claude/skills/mcp-management/scripts && npm install
npx tsx cli.ts list-tools # 保存到 assets/tools.json
npx tsx cli.ts call-tool memory create_entities '{"entities":[...]}'
方法 3:mcp-manager 子代理
完整指南请参见 references/gemini-cli-integration.md。
有关以下内容,请参见 references/mcp-protocol.md:
* 检查:`command -v gemini`
* 执行:`gemini -y -m gemini-2.5-flash -p "<task>"`
* 最佳适用场景:所有任务(当可用时)
2. 直接 CLI 脚本(次要):手动指定工具
* 适用场景:需要特定工具/服务器控制时
* 执行:`npx tsx scripts/cli.ts call-tool <server> <tool> <args>`
3. mcp-manager 子代理(备用):上下文高效委托
* 适用场景:Gemini 不可用或失败时
* 保持主上下文清洁
mcp-manager 代理使用此技能来:
gemini 命令执行这保持了主代理上下文的清洁,并实现了高效的 MCP 集成。
每周安装数
170
代码仓库
GitHub 星标数
1.9K
首次出现
2026年1月22日
安全审计
安装于
claude-code143
opencode136
gemini-cli131
codex128
cursor120
antigravity110
Skill for managing and interacting with Model Context Protocol (MCP) servers.
MCP is an open protocol enabling AI agents to connect to external tools and data sources. This skill provides scripts and utilities to discover, analyze, and execute MCP capabilities from configured servers without polluting the main context window.
Key Benefits :
Use this skill when:
MCP servers configured in .claude/.mcp.json.
Gemini CLI Integration (recommended): Create symlink to .gemini/settings.json:
mkdir -p .gemini && ln -sf .claude/.mcp.json .gemini/settings.json
See references/configuration.md and references/gemini-cli-integration.md.
npx tsx scripts/cli.ts list-tools # Saves to assets/tools.json
npx tsx scripts/cli.ts list-prompts
npx tsx scripts/cli.ts list-resources
Aggregates capabilities from multiple servers with server identification.
LLM analyzes assets/tools.json directly - better than keyword matching algorithms.
Primary: Gemini CLI (if available)
gemini -y -m gemini-2.5-flash -p "Take a screenshot of https://example.com"
Secondary: Direct Scripts
npx tsx scripts/cli.ts call-tool memory create_entities '{"entities":[...]}'
Fallback: mcp-manager Subagent
See references/gemini-cli-integration.md for complete examples.
Use Gemini CLI for automatic tool discovery and execution. See references/gemini-cli-integration.md for complete guide.
Quick Example :
gemini -y -m gemini-2.5-flash -p "Take a screenshot of https://example.com"
Benefits : Automatic tool discovery, natural language execution, faster than subagent orchestration.
Use mcp-manager agent when Gemini CLI unavailable. Subagent discovers tools, selects relevant ones, executes tasks, reports back.
Benefit : Main context stays clean, only relevant tool definitions loaded when needed.
LLM reads assets/tools.json, intelligently selects relevant tools using context understanding, synonyms, and intent recognition.
Coordinate tools across multiple servers. Each tool knows its source server for proper routing.
Core MCP client manager class. Handles:
.claude/.mcp.jsonCommand-line interface for MCP operations. Commands:
list-tools - Display all tools and save to assets/tools.jsonlist-prompts - Display all promptslist-resources - Display all resourcescall-tool <server> <tool> <json> - Execute a toolNote : list-tools persists complete tool catalog to assets/tools.json with full schemas for fast reference, offline browsing, and version control.
Method 1: Gemini CLI (recommended)
npm install -g gemini-cli
mkdir -p .gemini && ln -sf .claude/.mcp.json .gemini/settings.json
gemini -y -m gemini-2.5-flash -p "Take a screenshot of https://example.com"
Method 2: Scripts
cd .claude/skills/mcp-management/scripts && npm install
npx tsx cli.ts list-tools # Saves to assets/tools.json
npx tsx cli.ts call-tool memory create_entities '{"entities":[...]}'
Method 3: mcp-manager Subagent
See references/gemini-cli-integration.md for complete guide.
See references/mcp-protocol.md for:
Gemini CLI (Primary): Fast, automatic, intelligent tool selection
command -v geminigemini -y -m gemini-2.5-flash -p "<task>"Direct CLI Scripts (Secondary): Manual tool specification
npx tsx scripts/cli.ts call-tool <server> <tool> <args>mcp-manager Subagent (Fallback): Context-efficient delegation
The mcp-manager agent uses this skill to:
gemini command if availableThis keeps main agent context clean and enables efficient MCP integration.
Weekly Installs
170
Repository
GitHub Stars
1.9K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code143
opencode136
gemini-cli131
codex128
cursor120
antigravity110
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装