mcporter
它能做什么
这项技能让你的 AI 直接从命令行调用已配置的 MCP 服务器上的工具,例如 GitHub 或天气服务。适合希望从外部服务快速获得答案的人。
适用场景
- ✓当你需要从外部 API 快速查询时,例如查看议题或天气预报。
- ✓当你在做决定之前需要获得 MCP 工具的结果时。
- ✓当你想确认新设置的 MCP 服务器是否正常工作的时候。
技能链接
https://github.com/agentscope-ai/AgentTeams/blob/main/manager/agent/skills/mcporter/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请通过我 MCP 服务器上的天气工具,查询里斯本的天气。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会列出已配置的服务器及其工具,读取参数结构定义,然后调用所选工具并读取其 JSON 输出。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
mcporter — MCP Tool CLI
You can call any configured MCP server's tools directly via mcporter. Your config is at ./config/mcporter.json (mcporter's default path — no --config flag needed, auto-generated by the setup-mcp-server.sh script).
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}'
Discovery Workflow
When you're unsure what tools are available or what parameters a tool expects:
- Run
mcporter listto see all servers and tool counts - Run
mcporter list <server-name> --schemato see each tool's description, argument types, and which are required vs optional - Call the tool with the appropriate arguments
When to Use
- You need a quick lookup from an external API (e.g., search a GitHub repo, check an issue status)
- You need a result to make a decision before delegating work to a Worker
- You want to verify an API is working after running
setup-mcp-server.sh
For sustained or complex API interactions, delegate to a Worker instead — they have their own mcporter skill and can work autonomously.
常见问题
它给出什么格式的输出?
工具输出为 JSON 格式,可以用 jq 解析。
什么时候应该改用其他智能体?
对于持续或复杂的 API 工作,指南建议改交给专门的工作智能体处理。
参数如何传递?
简单的值使用键和值的形式,复杂的值使用 JSON 字符串。
详情
作者的原始描述
Call MCP Server tools directly via the mcporter CLI. Use when you need to interact with external APIs (GitHub, weather, etc.) without delegating to a Worker — useful for quick lookups or when you need a result to make a decision.
repo: agentscope-ai/AgentTeams
热度
- GitHub 星标
- 5.9k
- 排名
- #14529
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …