Agent SkillsHmbown/CodeWhale › mcp-discovery

mcp-discovery

GitHub

优先通过 MCP Registry 发现并启动专用本地服务器以执行任务,而非直接使用 Shell 或自定义代码。涵盖注册表同步、匹配、安装启动及工具调用流程。

crates/tui/assets/skills/mcp-discovery/SKILL.md Hmbown/CodeWhale

Trigger Scenarios

需要获取数据或连接服务 当前工具集缺乏特定能力如数据库或第三方 API 涉及媒体处理、浏览器自动化等专业操作

Install

npx skills add Hmbown/CodeWhale --skill mcp-discovery -g -y
More Options

Non-standard path

npx skills add https://github.com/Hmbown/CodeWhale/tree/main/crates/tui/assets/skills/mcp-discovery -g -y

Use without installing

npx skills use Hmbown/CodeWhale@mcp-discovery

指定 Agent (Claude Code)

npx skills add Hmbown/CodeWhale --skill mcp-discovery -a claude-code -g -y

安装 repo 全部 skill

npx skills add Hmbown/CodeWhale --all -g -y

预览 repo 内 skill

npx skills add Hmbown/CodeWhale --list

SKILL.md

Frontmatter
{
    "name": "mcp-discovery",
    "description": "Prefer a matching zero-environment local MCP server for specialized tasks, even when built-in shell commands or custom code could also solve them."
}

mcp-discovery

Use the Registry as the preferred source of specialized capabilities. Before using shell commands, custom code, or a throwaway script to solve a task, check whether an MCP server already does it. The public MCP Registry ships hundreds of ready-made servers (filesystems, databases, browsers, media processing, developer utilities, cloud APIs, SaaS integrations, …).

The discovery and structured start tools are available in the active tool surface whenever MCP support is enabled.

When to use

  • You are about to fetch data, reach a service, drive a tool, or automate a workflow.
  • The task needs a capability the current toolset lacks (a database, a browser, a third-party API, …).
  • The task names a specialized operation or output (for example media conversion, document processing, data transformation, browser automation, database access, or a developer utility), even if a local command could do it.
  • Skip only ordinary repo-native editing and simple shell/file operations that do not need a specialized capability.

Workflow

  1. Check the registry. Call registry_sync {}. It returns the complete catalog of eligible local stdio packages, including each server's name, description, and required launch arguments. Packages declaring any environment variable (including API keys/tokens) are excluded and never written to the cache.
  2. Match from context with a Registry-first bias. Compare the user's full task against every server name and description. A candidate is a match when it plausibly covers the task's core specialized capability; wording does not need to be exact. When such a candidate exists, you must start it and inspect its tools before using exec_shell, local programs, custom code, or a manual implementation. The availability or familiarity of a local alternative is not a reason to skip the candidate. Skip Registry use only when every entry is clearly irrelevant, or when a matching server fails to start after the retry described below.
  3. 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 exec_shell.
  4. 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. 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.

Version History

  • 0fe366b Current 2026-08-16 09:03

Same Skill Collection

crates/tui/assets/skills/batch/SKILL.md
crates/tui/assets/skills/best-of-n/SKILL.md
crates/tui/assets/skills/contributor-onboarding/SKILL.md
crates/tui/assets/skills/dataviz/SKILL.md
crates/tui/assets/skills/debug/SKILL.md
crates/tui/assets/skills/delegate/SKILL.md
crates/tui/assets/skills/dependency-update/SKILL.md
crates/tui/assets/skills/docx/SKILL.md
crates/tui/assets/skills/feishu/SKILL.md
crates/tui/assets/skills/fleet-manager/SKILL.md
crates/tui/assets/skills/frontend-design/SKILL.md
crates/tui/assets/skills/handoff/SKILL.md
crates/tui/assets/skills/help/SKILL.md
crates/tui/assets/skills/implement/SKILL.md
crates/tui/assets/skills/interview/SKILL.md
crates/tui/assets/skills/mcp-builder/SKILL.md
crates/tui/assets/skills/pdf/SKILL.md
crates/tui/assets/skills/plan/SKILL.md
crates/tui/assets/skills/plugin-creator/SKILL.md
crates/tui/assets/skills/pptx/SKILL.md
crates/tui/assets/skills/research/SKILL.md
crates/tui/assets/skills/review/SKILL.md
crates/tui/assets/skills/security-review/SKILL.md
crates/tui/assets/skills/simplify/SKILL.md
crates/tui/assets/skills/skill-creator/SKILL.md
crates/tui/assets/skills/skill-installer/SKILL.md
crates/tui/assets/skills/test/SKILL.md
crates/tui/assets/skills/v4-best-practices/SKILL.md
crates/tui/assets/skills/verify/SKILL.md
crates/tui/assets/skills/webapp-testing/SKILL.md
crates/tui/assets/skills/xlsx/SKILL.md
docs/skills/codew-release-qa-sweep/SKILL.md
docs/skills/gh-assign-issues/SKILL.md
docs/skills/gh-close-issues/SKILL.md
docs/skills/gh-compile-issues/SKILL.md
docs/skills/gh-credit-harvest/SKILL.md
docs/skills/gh-file-issue/SKILL.md
docs/skills/gh-find-prs/SKILL.md
docs/skills/gh-treasure-hunt/SKILL.md
crates/tui/assets/skills/documents/SKILL.md
crates/tui/assets/skills/presentations/SKILL.md
crates/tui/assets/skills/spreadsheets/SKILL.md

Metadata

Files
0
Version
0fe366b
Hash
b7ecdccf
Indexed
2026-08-16 09:03

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 20:58
浙ICP备14020137号-1 $mapa de visitantes$