Skip to content

mecatui: evaluate bounded MCP resource and prompt pickers #2175

Closed

Description

@jbeda

Scope

Evaluate bounded selectable browsing for the MCP resource and prompt pickers in cmd/mecatui/ui/mcp.go. Each currently renders every advertised item and uses an index-only cursor; the surface's Render(width, height) discards offered height. With enough advertised items the picker can exceed the card and hide its selection. Treat resource and prompt lists separately from MCP status, resource preview, and prompt argument forms.

Required outcome

  • Establish and test the constrained-geometry inconsistency for each picker; if justified, use bounded.List with stable server+resource URI or server+prompt name identities, measured chrome, selection reveal, standard presentListRow treatment, and surface-owned overflow/footers. Explicitly retain a region if migration offers no net benefit.
  • Preserve sanitized labels, names/server attribution, resource read → preview → insert, prompt argument selection/fetch, capability/availability states, and the existing key/close/back contract. Do not add wheel/click semantics without a tested interaction decision; click-to-select is tracked in mecatui: rationalize mouse selection and activation across modals and surfaces #769.

Verification

Scenario-first tests for numerous resources/prompts at narrow/short sizes, overflow, cursor/identity after refresh, and activation/preview/argument transitions. Run focused MCP/UI and bounded tests.

Relates to #1742 and #1589.

Activity

  1. jbeda commented on Nov 18, 2026

    @jbeda
    ContributorAuthor

    Completed in #2763, merged as bb7767e.

    Both inventories now use bounded browsing with stable raw identities, paging, wheel browsing, and select-only row clicks. The approved scope also delivered a full loaded-resource preview and persistent required-argument form with explicit Cancel/Submit, plus owned asynchronous results and frame-scoped pointer targets. The final CI race gate passed before merge.

    Remaining work is deliberately separate: #769 for cross-surface mouse selection/activation consistency, #2768 for the /mcp / Ctrl+O status/inventory panel. The parent trackers #1742, #1589, and #2237 have been updated; they remain open.

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