mcporter

TotalClaw 作者 totalclaw

使用 mcporter CLI 直接列出、配置、验证和调用 MCP 服务器/工具(HTTP 或 stdio),包括临时服务器、配置编辑和 CLI/类型生成。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~mcporter
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~mcporter/file -o mcporter.md
# mcporter

Use `mcporter` to work with MCP servers directly.

Quick start
- `mcporter list`
- `mcporter list <server> --schema`
- `mcporter call <server.tool> key=value`

Call tools
- Selector: `mcporter call linear.list_issues team=ENG limit:5`
- Function syntax: `mcporter call "linear.create_issue(title: \"Bug\")"`
- Full 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 payload: `mcporter call <server.tool> --args '{"limit":5}'`

Auth + config
- OAuth: `mcporter auth <server | url> [--reset]`
- Config: `mcporter config list|get|add|remove|import|login|logout`

Daemon
- `mcporter daemon start|status|stop|restart`

Codegen
- CLI: `mcporter generate-cli --server <name>` or `--command <url>`
- Inspect: `mcporter inspect-cli <path> [--json]`
- TS: `mcporter emit-ts <server> --mode client|types`

Notes
- Config default: `./config/mcporter.json` (override with `--config`).
- Prefer `--output json` for machine-readable results.

---

## 中文说明

# mcporter

使用 `mcporter` 直接操作 MCP 服务器。

快速开始
- `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}'`

身份验证 + 配置
- 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` 以获取机器可读的结果。