mcporter
它能做什么
它让你在命令行中发现并调用 MCP 服务器及其工具,包括你的电脑上其他 AI 应用中已设置的服务器。适合想在终端中快速使用 MCP 工具的人。
适用场景
- ✓你想查看电脑上有哪些 MCP 服务器和工具可用的时候。
- ✓你想用简单的键和值作为输入来调用某个特定 MCP 工具的时候。
- ✓你想通过网址连接某个 MCP 服务器进行快速测试的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mcp/mcporter/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出我可用的 MCP 工具,并调用能列出我未关闭的 Linear 问题的那个工具。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在终端中运行 mcporter 命令,列出服务器及其工具详情,然后用键和值参数调用工具。它也可以通过网址连接服务器,或即时启动本地服务器。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
mcporter
Use mcporter to discover, call, and manage MCP (Model Context Protocol) servers and tools directly from the terminal.
Prerequisites
Requires Node.js:
# No install needed (runs via npx)
npx mcporter list
# Or install globally
npm install -g mcporter
Quick Start
# List MCP servers already configured on this machine
mcporter list
# List tools for a specific server with schema details
mcporter list <server> --schema
# Call a tool
mcporter call <server.tool> key=value
Discovering MCP Servers
mcporter auto-discovers servers configured by other MCP clients (Claude Desktop, Cursor, etc.) on the machine. To find new servers to use, browse registries like mcpfinder.dev or mcp.so, then connect ad-hoc:
# Connect to any MCP server by URL (no config needed)
mcporter list --http-url https://some-mcp-server.com --name my_server
# Or run a stdio server on the fly
mcporter list --stdio "npx -y @modelcontextprotocol/server-filesystem" --name fs
Calling Tools
# Key=value syntax
mcporter call linear.list_issues team=ENG limit:5
# Function syntax
mcporter call "linear.create_issue(title: \"Bug fix needed\")"
# Ad-hoc HTTP server (no config needed)
mcporter call https://api.example.com/mcp.fetch url=https://example.com
# Ad-hoc stdio server
mcporter call --stdio "bun run ./server.ts" scrape url=https://example.com
# JSON payload
mcporter call <server.tool> --args '{"limit": 5}'
# Machine-readable output (recommended for Hermes)
mcporter call <server.tool> key=value --output json
Auth and Config
# OAuth login for a server
mcporter auth <server | url> [--reset]
# Manage config
mcporter config list
mcporter config get <key>
mcporter config add <server>
mcporter config remove <server>
mcporter config import <path>
Config file location: ./config/mcporter.json (override with --config).
Daemon
For persistent server connections:
mcporter daemon start
mcporter daemon status
mcporter daemon stop
mcporter daemon restart
Code Generation
# Generate a CLI wrapper for an MCP server
mcporter generate-cli --server <name>
mcporter generate-cli --command <url>
# Inspect a generated CLI
mcporter inspect-cli <path> [--json]
# Generate TypeScript types/client
mcporter emit-ts <server> --mode client
mcporter emit-ts <server> --mode types
Notes
- Use
--output jsonfor structured output that's easier to parse - Ad-hoc servers (HTTP URL or
--stdiocommand) work without any config — useful for one-off calls - OAuth auth may require interactive browser flow — use
terminal(command="mcporter auth <server>", pty=true)if needed
常见问题
它需要 Node.js 吗?
需要。技能要求安装 Node.js,你可以通过 npx 运行,无需全局安装。
它能找到其他应用中设置的服务器吗?
能。技能说明它会自动发现 Claude Desktop 或 Cursor 等其他 MCP 客户端中配置的服务器。
我能不做任何设置就试用某个服务器吗?
可以。你可以通过网址连接服务器,无需任何配置。
详情
热度
- GitHub 星标
- 260k
- 排名
- #505
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。