Repository navigation
Description
Goal
Evaluate and modernize the terminal /mcp / Ctrl+O status and inventory panel to the current docs/tui.md presentation, bounded-geometry, and surface-interaction standards.
UI work only. Preserve the existing RPCs, capability gating, server semantics, direct/broker distinction, authorization, enrollment, and refresh policies. This is not the cross-mode inventory API work in #1699.
Tracking gap
#2175 is complete: PR #2763 merged on 2026-11-18 as bb7767e16, delivering Ctrl+R resource browsing, F8 prompt browsing, full loaded-resource preview, and explicit-action required-argument entry. It intentionally excludes the /mcp status/inventory panel; this issue remains open. Cross-surface mouse consistency remains #769.
The MCP state already implements the shared surface contract. Evaluate the remaining panel's geometry, input ownership, and presentation rather than repeating an abstraction migration that already exists.
UI scope
- Evaluate the direct MCP source/server/diagnostic and group display, and the broker connector/catalogue/enrollment display, as existing local views of one status surface.
- Budget wrapped title, identity/status, available actions, hints, padding, and frame before body rows. Use a bounded browsing viewport where inventory or diagnostics can exceed the offer; document any explicit retain decision.
- Keep useful status/actions outside the scrolling body, distinguish records and multiline content clearly, sanitize server text and expand tabs before measurement/rendering, and use theme-owned styles with meaningful non-color cues.
- Preserve the parent-owned placement and frame-scoped pointer contract. Use existing remappable navigation where applicable. Wheel input belongs to the visible region and must not scroll the hidden conversation.
- Preserve reading position across resize and compact restoration. When useful content and controls cannot fit, provide safe close-only behavior without hidden activation.
- Preserve truthful direct/broker observations and existing refresh/connect/cancel eligibility. Display improvements must not imply upstream health, credential validity, enrollment applicability, or authority that the current server response does not establish.
- Validate UI-local async ownership so late results cannot update a closed/reopened panel or another modal. Keep unrelated root events flowing while loading or compact.
Verification
Scenario-first root Model.Update/render tests for large direct and broker inventories, long/multiline/tab-bearing diagnostics and names, narrow/short/one-cell/zero offers, framed bounds, pinned controls, navigation/wheel, compact restoration, stale results, and existing capability/refresh/enrollment regressions. Run focused UI/client/bounded checks and normal final project gates before PR-ready status.
Out of scope
- New or unified inventory APIs, protobuf/SDK contracts, server behavior, or stored data.
- Direct/broker semantic convergence, new connection management, OAuth/credential work, or new upstream probes.
- Resource/prompt-picker redesign already covered by mecatui: evaluate bounded MCP resource and prompt pickers #2175 / PR feat(mecatui): bound MCP resource and prompt browsers #2763.
- A generic surface/form framework or conversation-viewport replacement.
- Repository-wide click-to-select adoption (mecatui: rationalize mouse selection and activation across modals and surfaces #769); any panel-specific pointer behavior needs an explicit UI interaction decision.
Relates to #1742 (bounded browsing), #2237 (surface evaluation), and #1589 (bounded-controls umbrella). #1699 is related API work, not a dependency for UI-only improvements using the shipped contracts.
Activity