Claude Skill

mcp-tools

Imported from mrpulor-gh/nuphus/plugin/skills/builtin/mcp-tools.

LLM Mart · 0 points · 10 views 5 listing impressions 0 install-command copies

#mcp

Virus-scanned Reviewed automatically before listing.

Full trust report

Download mrpulor-gh-nuphus-plugin_skills_builtin_mcp-tools-68c6441.zip · 1 KB
Part of mrpulor-gh/nuphus — 5 skills

Install

skills CLI npx skills add https://github.com/mrpulor-gh/nuphus/tree/main/plugin/skills/builtin/mcp-tools
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install mrpulor-gh-nuphus@llmmart
Git git clone https://github.com/mrpulor-gh/nuphus.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole mrpulor-gh/nuphus collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

MCP 工具参考

通过 skill_read mcp-tools 加载本文档。WorkAgent 设计工作流时按需查阅。

原理

Nuphus 通过 MCP (Model Context Protocol) 连接外部工具。每个 MCP server 暴露一组 tools,可在工作流中用 do.mcp 步骤调用(V2 格式,与内置工具同级别):

{ "id": "search", "name": "搜问题",
  "do": { "mcp": { "server": "github", "tool": "search_issues",
    "with": { "query": "repo:nuphus bug", "limit": 5 } } },
  "capture": "issues" }
  • server:plugin/mcp/servers.yaml 中的 key
  • tool:MCP 工具名
  • with:工具参数(支持 {{var}} 模板)
  • capture:字符串,输出存入变量(V2 规范,无 as_type 对象格式)

工具发现

servers.yaml 配置了新 server 但不确定其工具签名时,运行时自省:

{ "id": "list", "name": "列工具",
  "do": { "mcp": { "server": "github", "tool": "tools/list", "with": {} } },
  "capture": "tools" }

{{tools}} 含完整工具名与 inputSchema。

已配置的 Server

以下列表来自 plugin/mcp/servers.yaml。配置变更后需同步更新本文档。

暂无已配置的 MCP server。在 plugin/mcp/servers.yaml 配置后更新本段。

常用 Server 速查

Server 环境变量 常用工具
GitHub @modelcontextprotocol/server-github GITHUB_PERSONAL_ACCESS_TOKEN search_repositories / search_issues / create_issue / get_file_contents
Postgres @modelcontextprotocol/server-postgres DATABASE_URL query(执行 SQL)
Slack @modelcontextprotocol/server-slack SLACK_BOT_TOKEN send_message / list_channels / get_channel_history
Filesystem @modelcontextprotocol/server-filesystem 参数 --directory <允许目录> read_file / write_file / list_directory / search_files

设计原则

  • MCP 优先于 GUI:目标软件有 MCP server 时优先走 do.mcp,更快更稳且不依赖布局解析
  • MCP 优先于 system_shell:MCP 返回结构化 JSON,比 CLI 文本解析可靠
  • 降级路径:MCP server 不可用时降级到 system_shell 调用对应 CLI
  • MCP 调用超时/失败:用 on_error(retry / allow_codes)控制,勿用死循环重试
Files (nuphus)
  • skill.json 566 B
    {
      "name": "mcp-tools",
      "displayName": "MCP 工具参考",
      "description": "MCP (Model Context Protocol) 集成参考:V2 步骤格式 do.mcp(server/tool/with)、capture 字符串规范、工具发现(tools/list 自省)、已配置 server 列表。WorkAgent 设计工作流时按需查阅。",
      "version": "1.0.0",
      "author": "Nuphus",
      "keywords": ["mcp", "工具", "cli", "集成", "server", "model context protocol"],
      "triggers": {
        "auto_suggest": true,
        "context_hints": ["mcp", "MCP", "server", "工具", "集成", "外部工具"]
      }
    }
  • SKILL.md 2.3 KB
    ---
    title: MCP 工具参考
    id: mcp-tools
    type: skill
    tags: [mcp, 工具, 集成, server, 工作流]
    ---
    
    # MCP 工具参考
    
    > 通过 `skill_read mcp-tools` 加载本文档。WorkAgent 设计工作流时按需查阅。
    
    ## 原理
    
    Nuphus 通过 MCP (Model Context Protocol) 连接外部工具。每个 MCP server 暴露一组 `tools`,可在工作流中用 `do.mcp` 步骤调用(V2 格式,与内置工具同级别):
    
    ```json
    { "id": "search", "name": "搜问题",
      "do": { "mcp": { "server": "github", "tool": "search_issues",
        "with": { "query": "repo:nuphus bug", "limit": 5 } } },
      "capture": "issues" }
    ```
    
    - `server`:`plugin/mcp/servers.yaml` 中的 key
    - `tool`:MCP 工具名
    - `with`:工具参数(支持 `{{var}}` 模板)
    - `capture`:**字符串**,输出存入变量(V2 规范,无 `as_type` 对象格式)
    
    ## 工具发现
    
    servers.yaml 配置了新 server 但不确定其工具签名时,运行时自省:
    
    ```json
    { "id": "list", "name": "列工具",
      "do": { "mcp": { "server": "github", "tool": "tools/list", "with": {} } },
      "capture": "tools" }
    ```
    
    `{{tools}}` 含完整工具名与 inputSchema。
    
    ## 已配置的 Server
    
    以下列表来自 `plugin/mcp/servers.yaml`。配置变更后需同步更新本文档。
    
    > 暂无已配置的 MCP server。在 `plugin/mcp/servers.yaml` 配置后更新本段。
    
    ## 常用 Server 速查
    
    | Server | 环境变量 | 常用工具 |
    |--------|---------|---------|
    | GitHub `@modelcontextprotocol/server-github` | `GITHUB_PERSONAL_ACCESS_TOKEN` | `search_repositories` / `search_issues` / `create_issue` / `get_file_contents` |
    | Postgres `@modelcontextprotocol/server-postgres` | `DATABASE_URL` | `query`(执行 SQL) |
    | Slack `@modelcontextprotocol/server-slack` | `SLACK_BOT_TOKEN` | `send_message` / `list_channels` / `get_channel_history` |
    | Filesystem `@modelcontextprotocol/server-filesystem` | 参数 `--directory <允许目录>` | `read_file` / `write_file` / `list_directory` / `search_files` |
    
    ## 设计原则
    
    - **MCP 优先于 GUI**:目标软件有 MCP server 时优先走 `do.mcp`,更快更稳且不依赖布局解析
    - **MCP 优先于 system_shell**:MCP 返回结构化 JSON,比 CLI 文本解析可靠
    - **降级路径**:MCP server 不可用时降级到 system_shell 调用对应 CLI
    - **MCP 调用超时/失败**:用 `on_error`(retry / allow_codes)控制,勿用死循环重试
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related