MCP协议配置

# MCP Skill - Model Context Protocol 使用技能

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "MCP协议配置" with this command: npx skills add godzff/mcp-protocol

MCP Skill - Model Context Protocol 使用技能

概述

本技能用于配置和管理 MCP (Model Context Protocol) 服务器,让 AI 能够调用外部工具。


1. 安装 mcporter

npm install -g clawhub

确保 uvx 可用:

which uvx
# 如果没有:
curl -LsSf https://astral.sh/uv/install.sh | sh

2. 配置 MCP 服务器

2.1 创建配置文件

mkdir -p ~/.config/mcporter

2.2 MiniMax MCP 配置示例

{
  "mcpServers": {
    "MiniMax": {
      "type": "stdio",
      "command": "uvx",
      "args": ["minimax-coding-plan-mcp"],
      "env": {
        "MINIMAX_API_KEY": "你的API密钥",
        "MINIMAX_MCP_BASE_PATH": "/tmp/mcporter-output",
        "MINIMAX_API_HOST": "https://api.minimaxi.com"
      }
    }
  }
}

保存到 ~/.config/mcporter/mcporter.json


3. 验证配置

npx mcporter --config ~/.config/mcporter/mcporter.json list

成功会显示:

✔ Listed 1 server (1 healthy)

4. 调用工具

4.1 视觉理解

npx mcporter --config ~/.config/mcporter/mcporter.json call MiniMax.understand_image \
  "prompt: 描述图片内容" \
  "image_source: /path/to/image.jpg"

4.2 网络搜索

npx mcporter --config ~/.config/mcporter/mcporter.json call MiniMax.web_search \
  "query: 搜索内容"

5. 常用 MCP 服务器

MCP 包名功能
minimax-coding-plan-mcp视觉理解、网络搜索
linear-mcpLinear 项目管理
filesystem-mcp文件系统操作
github-mcpGitHub 操作

6. 常见问题

6.1 MCP 服务器离线

  • 检查 API Key 是否正确
  • 检查网络连接
  • 确认 MCP 包名正确

6.2 参数错误

查看可用参数:

npx mcporter list <服务器名> --schema

6.3 权限问题

  • 确保目录存在
  • 确保有写入权限

最后更新: 2026-02-24

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated
General

Thought-Retriever

提炼对话回答中的核心洞察为高置信度知识晶体,存储于本体驱动记忆系统的自我进化与复用。

Registry SourceRecently Updated
General

Miaoji Bid Guard Pro

亚马逊广告护城河Pro版,90天ROI预测+多活动协同+季节性出价+关键词攻防矩阵。 从单次调价建议升级为完整的广告战役规划。基础功能可使用 miaoji-bid-guard 免费版。

Registry SourceRecently Updated