SuperAPI AI 工具集

mcporter

智能体与模型

查看项目

更新于 10-15 20:09

技能介绍

用途:mcporter 是一个 CLI 工具,用于直接与 MCP(Model Context Protocol)服务器交互,支持 HTTP 或 stdio 方式。适合需要列出 MCP 服务器、查看工具 schema、调用 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}')。
  • 认证:mcporter auth <server | url>,重置用 mcporter auth <server> --reset。
  • 配置管理:config list/get/add/remove/import/login/logout。
  • 守护进程:daemon start/status/stop/restart。
  • 代码生成:generate-cli --server <name> 或 --command <url>;inspect-cli <path>(可加 --json);emit-ts <server> --mode client 或 --mode types。

使用方式:配置文件默认 ./config/mcporter.json,可用 --config <path> 覆盖;程序化解析结果时使用 --output json;调用工具时 key=value 与 key:value 两种参数写法均可用。

限制:资料未提供具体平台支持、收费、价格或效果信息,暂未提供。