Octri

mcp usage

统计一段时间内代理对每个工具的调用次数,并按结果分类,以便了解代理依赖哪些工具,以及哪些工具调用失败。

bash
octri mcp usage [--days <n>]

标志

--days <n>number默认值:30

统计最近多少天的数据。

示例

过去一周的调用

bash
octri mcp usage --days 7
Output
✔ Loading MCP usage

MCP usage (30 calls, last 7 days)
  TOOL                     CALLS  OK  ERRORS  DECLINED  LAST    CLIENTS
  ───────────────────────  ─────  ──  ──────  ────────  ──────  ────────────────────────────
  createCustomer               7   0       1         6  5d ago  acme-support-bot, cursor-ide
  createProduct                7   0       5         0  5d ago  acme-support-bot
  listInvoices                 7   0       5         0  5d ago  acme-support-bot
  listCustomers                3   0       3         0  5d ago  acme-support-bot
  …
  • octri mcp calls:列出最新的工具调用:使用了哪个工具、调用时间以及结果如何。
  • octri mcp tools:列出已发布的 MCP 服务器向智能体提供的工具。