SuperAPI AI 工具集

mcporter

智能体与模型

查看项目

更新于 10-16 06:52

技能介绍

mcporter 是一个面向 MCP 服务器的命令行工具,用于直接列出、配置、认证和调用 MCP 服务器及其工具,支持通过 HTTP 或 stdio 连接。

主要能力:列出服务器与工具(mcporter list,可加 <server> --schema 查看结构);调用工具,支持选择器语法与函数式语法,例如 mcporter call linear.list_issues team=ENG limit:5、mcporter call "linear.create_issue(title: "Bug")";支持完整 URL 调用与 stdio 方式,如 mcporter call https://api.example.com/mcp.fetch url:https://example.com、mcporter call --stdio "bun run ./server.ts" scrape url=https://example.com;可用 --args 传入 JSON 负载。

认证与配置:mcporter auth <server | url> [--reset] 处理 OAuth;mcporter config 支持 list、get、add、remove、import、login、logout 等子命令。

守护进程:mcporter daemon 支持 start、status、stop、restart。

代码生成:mcporter generate-cli --server <name> 或 --command <url> 生成 CLI,mcporter inspect-cli <path> [--json] 检查,mcporter emit-ts <server> --mode client|types 生成 TypeScript 客户端或类型。

配置默认路径为 ./config/mcporter.json,可用 --config 覆盖;机器可读结果优先使用 --output json。

限制与更多细节:资料未提供安装方式、支持的平台、版本要求及错误处理等信息,暂未提供。