Octri

mcp score

按 10 分制评估当前提供给智能体的内容:先列出最弱的工具,再列出整个服务器的问题,以及扣分最多的规则。你可以在 MCP Studio 中接受建议的修复,并在下一次发布时将其提供给智能体。请参阅工具质量。

bash
octri mcp score [--tool <name>] [--all] [--fail-under <score>]

标志

--tool <name>string

输出一个工具的发现结果,每项都包含其键和建议的改写内容。

--allboolean

列出所有工具,而不仅是最弱的 15 个。

--fail-under <score>number

如果得分低于此值(例如 7),则以错误退出,以便 CI 作业在质量下降时失败。

octri mcp score ignore <key>

忽略与 API 无关的发现项。只会改变得分:提供给智能体的内容保持不变,因此无需发布。

参数

<key>string必填

发现项的键,来自 --tool。

octri mcp score restore <key>

恢复已忽略的发现项。

参数

<key>string必填

发现项的键。

示例

评估服务器

bash
octri mcp score
Output
✔ Scoring MCP tools

MCP tool quality 7.5 / 10 A
  definitions    6.6
  coherence      9.7
  listing        every tool
  tokens listed  about 3,123
  last publish   7.5 (was 7.5)
  TOOL                GRADE  SCORE  TOP FINDING
  ──────────────────  ─────  ─────  ────────────────────────────────────────────────────────────
  createCustomer      C        5.2  The description only repeats the name.
  createProduct       C        5.2  The description only repeats the name.
  replaceProduct      C        5.2  The description only repeats the name.
  cancelSubscription  C        5.6  The description only repeats the name.
  listInvoices        B        6.0  The description only repeats the name.
  listProducts        B        6.1  The description only repeats the name.
  …

一个工具的发现结果

bash
octri mcp score --tool createCustomer
Output
✔ Scoring MCP tools

createCustomer 5.2 / 10 C
  tokens  about 206 per turn

  high  The description only repeats the name.
    key post-customers|description-restates-name
    description, read first: Create a customer. Use this when the user asks to add a new customer.

  high  5 of 5 inputs have no description: body.name, body.email, body.currency, body.address, body.metadata.
    key post-customers|parameters-described
    input body.name, read first: The customer's name.
    input body.email: Email address.
    input body.currency, read first: The customer's currency.
    input body.address, read first: The customer's address.
    input body.metadata, read first: The customer's metadata.
  Accept fixes in MCP Studio; Publish ships them to agents. octri mcp score ignore <key> dismisses one.