mcporter
Skill này làm gì
Skill này cho phép AI liệt kê các máy chủ MCP, xem các công cụ của chúng và gọi chúng từ dòng lệnh. Skill dành cho người kết nối AI với các dịch vụ bên ngoài qua MCP.
Khi nào nên dùng
- ✓Khi bạn muốn xem những máy chủ MCP và công cụ nào đang có sẵn.
- ✓Khi bạn cần gọi một dịch vụ bên ngoài qua máy chủ MCP.
- ✓Khi một máy chủ MCP mới được thêm và bạn muốn tài liệu hóa các công cụ của nó.
Liên kết skill
https://github.com/agentscope-ai/AgentTeams/blob/main/manager/agent/copaw-worker-agent/skills/mcporter/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Liệt kê các máy chủ MCP tôi đã thiết lập và cho tôi xem các tham số của công cụ tìm kiếm.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy lệnh mcporter list để tìm máy chủ và công cụ, đọc schema tham số, rồi gọi công cụ đã chọn bằng đối số dạng cặp khóa-giá trị hoặc JSON.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Đầu ra là gì?
Đầu ra của công cụ dạng JSON, có thể phân tích bằng jq.
Skill có tạo tài liệu cho máy chủ mới không?
Có. Skill có một quy trình để viết tài liệu skill cho một máy chủ MCP mới.
Cấu hình được lưu ở đâu?
Cấu hình được lưu trong thư mục config của workspace agent.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.9k
- Vị trí xếp hạng
- #14528
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
find-skills
5.9kGiúp agent của bạn tìm và cài đặt các agent skill từ hệ sinh thái skill mở khi nó cần kiến thức mà nó chưa có.
mcporter
5.9kCho phép agent của bạn gọi trực tiếp các công cụ trên máy chủ MCP từ dòng lệnh bằng mcporter, để tra cứu nhanh như kiểm tra một API bên ngoài.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.