AgentSkillsCN

mcp

管理和交互远程 MCP(模型上下文协议)服务器。支持列出服务器、查询状态、连接新服务器,并触发身份认证流程。

SKILL.md
--- frontmatter
name: mcp
description: >
  Manage and interact with remote MCP (Model Context Protocol) servers.
  List servers, check status, connect new servers, and trigger authentication.
user-invocable: true
command-dispatch: tool
command-tool: mcp_manage
command-arg-mode: raw
metadata:
  {
    "openclaw": {
      "requires": {
        "config": ["plugins.entries.mcp-client.enabled"]
      },
      "emoji": "🔌"
    }
  }

MCP Server Management

You have access to remote MCP (Model Context Protocol) servers that provide additional tools beyond your built-in capabilities. These tools appear in your tool list with a <server>__<tool> naming pattern (e.g., tavily__search, github__create_issue).

When to Use MCP Tools

  • When the user asks you to perform a task that matches an MCP tool's description
  • Treat MCP tools exactly like built-in tools — call them directly
  • If a tool call returns a 401 or 403 error, inform the user they need to authenticate with /mcp auth <server>

Available Commands

Users can manage MCP servers with these commands:

CommandDescription
/mcp serversList all configured MCP servers and their status
/mcp tools [server]List available tools from MCP servers
/mcp status <server>Show detailed status for a specific server
/mcp disconnect <server>Disconnect from an MCP server
/mcp refresh [server]Re-discover tools from a server
/mcp auth <server>Trigger OAuth authentication for a server
/mcp connect <url>Connect to a new MCP server
/mcp helpShow available commands

Error Handling

  • If a tool call fails with a connection error, suggest the user check /mcp status <server> for details
  • If authentication is required, guide the user to run /mcp auth <server>
  • Do not retry failed tool calls more than once