Skip to content

mecatui: modernize bounded /mcp status and inventory UI #2768

Open

Description

@jbeda

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions