mcporter
它能做什么
这项技能让你的 AI 列出 MCP 服务器,查看其工具,并从命令行调用它们。适合通过 MCP 将 AI 连接到外部服务的人。
适用场景
- ✓当你想查看有哪些 MCP 服务器和工具可用时。
- ✓当你需要通过 MCP 服务器调用外部服务的时候。
- ✓当新增了一个 MCP 服务器,并且你希望为其工具编写文档的时候。
技能链接
https://github.com/agentscope-ai/AgentTeams/blob/main/manager/agent/copaw-worker-agent/skills/mcporter/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出我已设置的 MCP 服务器,并告诉我搜索工具的参数。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会运行 mcporter list 命令找到服务器和工具,读取参数结构定义,然后用键值或 JSON 参数调用所选工具。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
mcporter — MCP Tool CLI
You call MCP Server tools via mcporter. Your config is at ./config/mcporter.json (mcporter's default path — no --config flag needed).
Commands
# List all configured MCP servers and their tool counts
mcporter list
# View a specific server's tools with full parameter schemas
mcporter list <server-name> --schema
# Call a tool — key=value syntax for simple args
mcporter call <server-name>.<tool-name> key=value key2=value2
# Call a tool — JSON syntax for complex args (arrays, objects, numbers)
mcporter call <server-name>.<tool-name> --args '{"key":"value","count":5}'
Output is JSON — parse with jq when needed.
When Your Coordinator Notifies You About New MCP Tools
When your coordinator @mentions you saying a new MCP server has been configured, follow this workflow:
Step 1: Pull the updated config
Use the filesync tool to pull the latest config files:
{
"action": "pull",
"path": "shared/"
}
Step 2: Discover the new server and its tools
# Verify the new server appears
mcporter list
# Get full tool schemas — read carefully to understand each tool
mcporter list <server-name> --schema
Step 3: Generate a skill for the new MCP server
After understanding the tools, create a skill directory and SKILL.md so you have a permanent reference. Model it after your github-operations skill:
mkdir -p ~/skills/<server-short-name>-operations
Then write ~/skills/<server-short-name>-operations/SKILL.md with:
- Front-matter:
name,description,assign_when - Overview section explaining what the MCP server does
- For each tool: a section with description, example
mcporter callcommand, and parameter notes - Important notes (rate limits, auth, known issues if any)
Use the tool schemas from Step 2 as the source of truth for parameter names, types, and required/optional status.
Example structure:
---
name: weather-operations
description: Query weather data via the weather MCP server. Use when you need current weather, forecasts, or climate data.
assign_when: Worker needs weather information for a task
---
# Weather Operations
## Overview
Use this skill to query weather data via the centralized MCP Server.
## get_weather
Get current weather for a city:
\```bash
mcporter call mcp-weather.get_weather city=Tokyo units=metric
\```
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| city | string | yes | City name |
| units | string | no | Temperature units (default: metric) |
Step 4: Confirm to your coordinator
After generating the skill, reply to your coordinator confirming:
- You pulled the updated config
- You discovered N tools on the new server
- You generated a skill at
~/skills/<name>-operations/SKILL.md - You're ready to use the new tools
Important Notes
- Not installed? If
mcportercommand is not found, install it:npm install -g mcporter - Transport: MCP Servers use HTTP transport (configured in config/mcporter.json)
- Auth: Authorization header with Bearer token is auto-configured — you don't need to manage credentials
- Permissions: Your MCP access is controlled by your coordinator. If you get 403 from the MCP Server, ask your coordinator to re-authorize your access
- Config not found: If
./config/mcporter.jsondoesn't exist yet, use yourfile-sharingskill first; your coordinator publishes the config after setting up MCP servers
常见问题
它给出什么格式的输出?
工具输出为 JSON 格式,可以用 jq 解析。
它能为新服务器创建文档吗?
能。它包含为新 MCP 服务器编写技能文档的工作流程。
配置保存在哪里?
配置保存在智能体工作区的配置文件夹中。
详情
作者的原始描述
Discover and call MCP Server tools via the mcporter CLI. Use when your coordinator notifies you about new MCP tools, or when you need to call external APIs. Includes workflow for generating skill documentation for new MCP servers.
repo: agentscope-ai/AgentTeams
热度
- GitHub 星标
- 5.9k
- 排名
- #14528
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …