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.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-mcp-discovery-639884d90c75 ,按照其中的说明把「mcp-discovery」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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.
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.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.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.