mcporter 是做什麼的?
使用 mcporter 直接與 MCP 伺服器協作。
快速開始
mcporter listmcporter list <server> --schemamcporter 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}'
驗證 + 配置
- OAuth:
mcporter auth <server | url> [--reset] - 配置:
mcporter config list|get|add|remove|import|login|logout
後台守護行程
mcporter daemon start|status|stop|restart
程式碼生成
- CLI:
mcporter generate-cli --server <name>或--command <url> - 檢查:
mcporter inspect-cli <path> [--json] - TS:
mcporter emit-ts <server> --mode client|types
備註
- 預設配置:
./config/mcporter.json(使用--config覆蓋)。 - 機器可讀的結果建議使用
--output json。