跳到正文
Skillpedia
连接器(MCP)41k · #6542

mcp-discovery

它能做什么

当 AI 现有的工具都无法完成某项工作时,这个技能帮助它访问公共的现成工具服务器目录。适合需要 AI 使用其尚不具备的能力的人。

适用场景

  • ✓当 AI 需要当前工具和本地代码都无法提供的能力的时候。
  • ✓当任务需要会话中缺少的外部服务、数据库或协议客户端的时候。
  • ✓当你原本需要手动安装包或编写客户端的时候。

技能链接

https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/mcp-discovery/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/mcp-discovery/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请找一个能把这个视频文件转换为其他格式的本地工具,并替我启动它?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会指明缺少的能力,搜索公共注册表,请求批准,并且只有在能填补缺口时才安装并启动相应的服务器。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

mcp-discovery

The public MCP Registry ships hundreds of ready-made stdio servers (filesystems, databases, browsers, media processing, developer utilities, cloud APIs, SaaS integrations, …). This skill is how you reach one when the session is genuinely missing a capability.

It is a fallback, not a first step. Discovery costs a tool_search to load the deferred tools, a query, an approval, and an install — spend that only when it buys a capability you do not have.

When to use

  • An available tool, a project script or test, or a few lines of local code cannot do the job.
  • The task needs an external service, database, or protocol client that this session has no access to.
  • You would otherwise install a package or reimplement a well-known converter or client by hand.

When not to use

  • Ordinary work: writing and editing files, reading fixtures, running repo commands, and checking your own output. Do those directly.
  • A capability an already-loaded tool covers, even partially — try it first.
  • A near-miss row in a result list. A scored match is a suggestion; the missing capability is what decides.

Workflow

  1. Name the gap. State the capability you lack before searching. If you cannot name one, you do not need the Registry.
  2. Load and query. registry_sync and start_registry_mcp_server are deferred: load one with tool_search and use the returned schema. If a call only loads the schema without executing, retry once with that schema. Then call registry_sync {query: "<the missing capability>"}. It scores a host-side snapshot and returns at most eight matches; the full index never enters the conversation. Packages declaring any environment variable (including API keys/tokens) are excluded and never written to the cache.
  3. Judge the matches. Take a server when it covers the gap you named. If nothing does, refine the query once, then continue with local tools.
  4. Install + run transactionally. Call start_registry_mcp_server {registry_name: "<exact name>", arguments: {...}}. Supply only values listed in required_args; omit arguments when none are required. Never install or launch the package through the shell. Starting a server requires approval.
  5. Solve the task with the new tools. Their complete schemas are added to the current turn immediately after a successful connection; call the exact names returned by the start result.

If a server fails to start

start_registry_mcp_server reports when a package exits before the handshake (often CLI help output = incomplete launch args). Verify the exact required arguments, retry once with the corrected structured values, and if it still fails move on to the next candidate or to a local approach. Failed starts are rolled back, so retrying the same Registry name is safe.

Don't

  • Don't attempt to pass env vars or secrets; this flow has no env channel.
  • Don't reconstruct or edit the Registry-provided package command.
常见问题

这是 AI 首先尝试的方法吗?

不是。技能称之为备用方案,只有在现有工具、脚本或简单的本地代码都无法完成工作时才使用。

普通的文件工作也用注册表吗?

不用。技能说明,普通的文件编辑和代码仓库命令应直接完成。

需要我批准吗?

需要。技能在安装服务器之前包含一个批准步骤。

详情

作者的原始描述

Find and start a zero-environment local MCP server when the session lacks a capability that no available tool, project script, or ordinary local code can cover.

repo: codewhale-hq/Codewhale

热度

GitHub 星标
41k
排名
#6542
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能