Repository navigation
fix(ui): explain unavailable MCP tool catalogs - #115994
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 2:55 PM ET / 18:55 UTC. ClawSweeper reviewWhat this changesThe PR adds optional server names to MCP discovery notices from the effective-tools Gateway response, then uses those names in Control UI so an unavailable catalog explanation is shown only for its matching connector. Merge readinessThe latest commit resolves the prior connector-attribution concern by carrying the affected MCP server names from the Gateway and rendering a discovery notice only when it names the selected connector. The patch is a focused, additive protocol-and-UI repair with supplied live browser proof; this PR should remain open for normal protected maintainer review rather than cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherThe Gateway's effective-tools method reports the list of currently available tools plus notices explaining unavailable MCP catalogs. Control UI's composer reads that response while an operator drills into a connector, so the UI must preserve the server attribution of each notice before presenting it as a connector-specific explanation. flowchart LR
A[Configured MCP connectors] --> B[Gateway effective-tools inventory]
B --> C[Server-scoped discovery notice]
B --> D[Available MCP tool rows]
C --> E[Control UI selected connector]
D --> E
E --> F[Tools list or accurate catalog status]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +27, Tests +122, Other +4. Total +153 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the optional, server-scoped notice contract and its connector filter as the canonical path, then land after the protected maintainer review confirms the exact head and normal required checks. Do we have a high-confidence way to reproduce the issue? Yes from the supplied live reproduction and focused E2E path: configure at least two MCP connectors, return a discovery notice for only one, then open Tool access for each connector. The PR body also records the original false empty state with a live browser result. Is this the best way to solve the issue? Yes. Preserving server identity at the Gateway notice boundary and filtering on the selected connector is narrower and safer than inferring MCP ownership from transcript activity or weakening the existing identity filter. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 83aca8a59c7c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
5603c20 to
30b53ef
Compare
30b53ef to
d32a110
Compare
* origin/main: fix(ui): explain unavailable MCP tool catalogs (openclaw#115994) fix(skills): run experience review outside released request roots (openclaw#116040) docs(security): add safe Gmail reader setup (openclaw#116041) chore: refresh browser gateway runtime (openclaw#116043) test: isolate gateway sequence lifecycle coverage docs: note gateway reconnect sequence fix test: cover gateway sequence reset on restart test: cover gateway sequence reset on reconnect fix: reset gateway event sequence on reconnect
|
Merged via squash.
|
* origin/main: (151 commits) feat(plugins): allow per-turn tool narrowing in prompt hooks (openclaw#114151) docs(hooks): mark pairing hook observation-only (openclaw#116055) docs(control-ui): document composer capability menu (openclaw#115858) fix(build): bound declaration memory use (openclaw#116021) fix: Slack replies recover after gateway startup replay (openclaw#115991) fix(azure-speech): keep valid voices from malformed catalogs (openclaw#115067) fix(agents): prevent model runtime startup timeout (openclaw#116039) fix(ui): explain unavailable MCP tool catalogs (openclaw#115994) fix(skills): run experience review outside released request roots (openclaw#116040) docs(security): add safe Gmail reader setup (openclaw#116041) chore: refresh browser gateway runtime (openclaw#116043) test: isolate gateway sequence lifecycle coverage docs: note gateway reconnect sequence fix test: cover gateway sequence reset on restart test: cover gateway sequence reset on reconnect fix: reset gateway event sequence on reconnect fix(codex): avoid transcript mirror snapshot churn (openclaw#115070) fix(test): stop cross-file state leaks in media suites (openclaw#116027) feat(hooks): add persistent hook session mode (openclaw#75918) fix(memory): return early for blank searches (openclaw#116034) ...
* origin/main: (39 commits) feat(apple): media renditions, Now Playing, video upload (#116051) feat(android): media renditions, MediaSession, video upload (#116037) feat(cli): run agent exec against the ambient config, composed in memory (#116038) fix #95351: [Feature]: Generic JSONL line-parsing hook for CliBackendPlugin (native tool-card support beyond claude-stream-json) (#95386) feat(plugins): allow per-turn tool narrowing in prompt hooks (#114151) docs(hooks): mark pairing hook observation-only (#116055) docs(control-ui): document composer capability menu (#115858) fix(build): bound declaration memory use (#116021) fix: Slack replies recover after gateway startup replay (#115991) fix(azure-speech): keep valid voices from malformed catalogs (#115067) fix(agents): prevent model runtime startup timeout (#116039) fix(ui): explain unavailable MCP tool catalogs (#115994) fix(skills): run experience review outside released request roots (#116040) docs(security): add safe Gmail reader setup (#116041) chore: refresh browser gateway runtime (#116043) test: isolate gateway sequence lifecycle coverage docs: note gateway reconnect sequence fix test: cover gateway sequence reset on restart test: cover gateway sequence reset on reconnect fix: reset gateway event sequence on reconnect ...
* fix(ui): explain undiscovered MCP tools * fix(ui): scope MCP discovery notices to the viewed connector
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where users opening Control UI composer → Connectors → Tool access would see
0 of 0 tools onand “No tools available for this connector” even after the selected MCP connector had visibly run tools in the same session.Why This Change Was Made
The effective-tools RPC already explains unavailable MCP catalogs with
mcp-not-yet-connected,mcp-not-yet-listed, andmcp-stale-catalognotices. The connector view now presents that server-owned explanation whenever no matching MCP rows are available and omits the false zero-count summary. It preserves the generic no-tools fallback for responses without a discovery notice.The live session uses the Codex app-server runtime, whose thread-owned MCP catalog is distinct from the core in-process
SessionMcpRuntimeconsulted bytools.effective. Bridging those catalogs needs a separate harness/plugin inventory lifecycle design; this fix does not weaken MCP identity filtering or infer tool identity from transcript events.User Impact
Operators now see why connector tools are not listable yet instead of being told that the connector has no tools.
Evidence
ctx7.resolve-library-idandctx7.query-docs, while Tool access rendered0 of 0 tools onand “No tools available for this connector.”tools.effectivereturned nosource: "mcp"rows plusmcp-not-yet-connectedforctx7.9 passedinui/src/e2e/chat-composer-capability-menu.e2e.test.ts.pnpm ui:buildpassed, including precompressed-asset and Control UI performance checks.main, the composer E2E and the upstream-repaired Agents channel E2E passed together: 2 files, 10 tests.Before
After