用途:mcporter 是一个命令行工具,用于直接与 MCP 服务器和工具交互,支持 HTTP 与 stdio 两种连接方式,适合在终端中快速查看、配置、认证和调用 MCP 工具。
主要能力:可列出服务器与工具(mcporter list、mcporter list <server> --schema);调用工具(mcporter call <server.tool> key=value),支持选择器、函数语法、完整 URL、stdio 及 JSON 参数(--args);认证与配置(mcporter auth <server | url> [--reset],mcporter config list|get|add|remove|import|login|logout);守护进程管理(mcporter daemon start|status|stop|restart);代码生成(mcporter generate-cli、mcporter inspect-cli、mcporter emit-ts)。
使用方式:快速开始可运行 mcporter list、mcporter list <server> --schema、mcporter call <server.tool> key=value。调用示例包括选择器 mcporter call linear.list_issues team=ENG limit:5、函数语法 mcporter call "linear.create_issue(title: "Bug")"、完整 URL mcporter call https://api.example.com/mcp.fetch url:https://example.com、stdio mcporter call --stdio "bun run ./server.ts" scrape url=https://example.com、JSON 载荷 mcporter call <server.tool> --args '{"limit":5}'。
配置与限制:默认配置文件为 ./config/mcporter.json,可用 --config 覆盖;建议使用 --output json 获取机器可读结果。资料未提供收费、价格、平台支持范围及具体效果等信息。