搜索

PythonReactSEOPDF
OpenClaw

Mcp Protocol

MCP Skill Model Context Protocol 使用技能

godzff0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install godzff/mcp-protocol

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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-mcp Linear 项目管理
filesystem-mcp 文件系统操作
github-mcp GitHub 操作

6. 常见问题

6.1 MCP 服务器离线
  • 检查 API Key 是否正确
  • 检查网络连接
  • 确认 MCP 包名正确
6.2 参数错误

查看可用参数:

npx mcporter list <服务器名> --schema
6.3 权限问题
  • 确保目录存在
  • 确保有写入权限

最后更新: 2026-02-24

来源信息

Source
github
Repository
openclaw/skills
Path
skills/godzff/mcp-protocol
Version
—
Commit
3c7f8daafda2439aa3313908299997a6890ef05f
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# MCP Skill - Model Context Protocol 使用技能

## 概述

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

---

## 1. 安装 mcporter

```bash
npm install -g clawhub
```

确保 `uvx` 可用:

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

---

## 2. 配置 MCP 服务器

### 2.1 创建配置文件

```bash
mkdir -p ~/.config/mcporter
```

### 2.2 MiniMax MCP 配置示例

```json
{
  "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. 验证配置

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

成功会显示:
```
✔ Listed 1 server (1 healthy)
```

---

## 4. 调用工具

### 4.1 视觉理解

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

### 4.2 网络搜索

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

---

## 5. 常用 MCP 服务器

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

---

## 6. 常见问题

### 6.1 MCP 服务器离线

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

### 6.2 参数错误

查看可用参数:
```bash
npx mcporter list <服务器名> --schema
```

### 6.3 权限问题

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

---

_最后更新: 2026-02-24_

相关技能

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.