Skip to content

Group rooms mount 51 MCP tools nobody uses there: decide the per-room tool set (~17.3k tokens/call) (#796) #1234

Closed

Description

@Birfy

待拍的产品决定(Chief 2026-10-26:这是产品决定,不是调参)。拍板前保持 needs-human;决定写成一张评论,Owner: 由 Chief 点。

数字(#796,1,692 次真实请求)

每次调用都带 113 个工具,其中房间里用不到的 51 个:github MCP 43 个 / 47,413 字符、composio 4 个 / 14,377、schedule 4 个 / 5,978 —— 合计 67,768 字符 ≈ 17.3k tokens/次,按 13,136 次/天折算 ≈227M/天(-11.6%)。

要定的问题(一条)

群房间的 Session 该挂哪些工具?

  • (a) 只挂内置工具,github / composio / schedule 三个 MCP 都不挂(-17.3k/次);
  • (b) 只摘 github MCP(最大的一块,-12.1k/次);
  • (c) 保留现状,另做「按需在群里开一次」的机制。

每条都要连着代价写:群里当场查 PR / 排期就没了,得回各自 chat;#977 / #979 这种要在群里当场读状态的工作会慢一拍。

为什么不是配置项

MCP 是宿主级挂载:core/src/host/connectors.js:369 在宿主 ctx 上 ctx.plugin(...)(MCP_CLIENT 见 :27),没有「按 Session / 房间过滤工具」的开关。所以 (a)/(b) 要么等 DSH 侧能力,要么本仓新增按房间过滤——两条都得先有这个决定。

拍板后的验收(转 agent-ready 的条件)

  • 同一回合 ablate 前后:request/header 字符 115,020 → ~47,300(-59%),单次 prompt 少 ≈17.3k;
  • 群里仍能完成一次普通协作(发言、看板读写),缺的工具在报错里点名而不是静默消失;
  • 刀:撤掉过滤,字符数回到 115,020。

Activity

  1. Birfy commented on Oct 26, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Triage

    needs-human,只有一个问题:群房间挂不挂那三个 MCP(正文 a / b / c)。这是产品决定,不是调参——摘掉之后群里不能当场查 PR,#977 / #979 那类要在群里当场读状态的工作会慢一拍;而 MCP 是宿主级挂载(core/src/host/connectors.js:369),没有现成开关。

    决定写成一张评论即可,我按它转 agent-ready 并写 Owner:。数字和拍板后的验收都在正文里,不需要重新量。

  2. added
    enhancementNew feature or request
    needs-humanThe agent loop stopped; a person must decide (reason in the last comment)
    area:automationScheduled tasks and automation
    on Oct 26, 2026
  3. added
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Oct 29, 2026
  4. Birfy commented on Oct 29, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Triage

    Owner 决定:走「只读裁剪白名单」的第一步 —— 群房间只挂 github MCP 的读工具,写工具不挂;composio 与 schedule 本轮不动(用户 2026-10-29 拍板「全按建议走」)。

    范围:core/src/host/connectors.js:369 目前是宿主级挂载(MCP_CLIENT 见 :27),本仓新增最小可用的按房间过滤:群房间的 Session 只暴露 github MCP 的只读子集(list_* / get_* / search_),写工具(_write / *_create / *_merge / *_update / *_delete / _push)在群房间不挂。

    不做:不动 composio 与 schedule、不碰 DSH(硬规则 1)。

    验收:单测断言群房间工具集里没有写工具、有读工具、非群房间不变;群里调一个被裁掉的写工具时报错点名该工具缺失(不静默消失);撤掉过滤后工具数与现状一致。

  5. removed
    needs-humanThe agent loop stopped; a person must decide (reason in the last comment)
    on Oct 29, 2026
  6. self-assigned this
    on Oct 29, 2026
  7. added
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Oct 29, 2026
  8. Birfy commented on Oct 29, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Dev

    Claimed #1234 — branch dev/1234-group-room-readonly-mcp, first step: the host-level github MCP tool filter for group rooms in core/src/host/connectors.js.

  9. removed
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Oct 29, 2026
  10. added a commit that references this issue on Oct 29, 2026
  11. removed
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Oct 29, 2026
  12. added a commit that references this issue on Oct 29, 2026
    d86ad69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:automationScheduled tasks and automationenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions