Skip to content

feat(servers): status affordances for component exposure and authorization - #271

Merged
vishu-bh merged 7 commits into
mainfrom
feature/270-status
Dec 3, 2026
Merged

vishu-bh merged 7 commits into
mainfrom
feature/270-status

Conversation

@a-effort

@a-effort a-effort commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes IBM/mcp-context-forge#7748 and stacks on #270.

271.mp4

MCP server page changes:

  • Add (icon style) button next to components.
  • On hover, show message to set user expectations, on click show the "expose components" (make available to virtual server) form.
  • For component types, only show the ones that have been discovered on MCP server connection, hide types with 0 and show "0 components" if none have been detected. This helps avoid as much text wrapping on smaller viewports.

MCP server catalog changes:

  • Changes statuses on cards to clickable buttons when actions can be taken (authorize, reauthorize, check auth status)
  • Fix for content shift when Authorize button was clicked
  • Show auth required chip when authorize button is shown, style tweak to color for visual hierarchy improvement.

Both MCP server page & catalog:

  • Updates to label and icons for statuses for better consistency
  • When auth status is unavailable, provide a clickable check status option.

Expose components form:

  • Expose components form button label changed to "Cancel" from "Skip" outside of the onboarding flow.
  • Link and tooltip fixed

Notes:
A 403 on the authorization status endpoint leaves a card reading "Status unavailable" with no action and no explanation, because only non-403 failures are classified as retryable. The card is a dead end for exactly the caller who cannot see why.

Closing the OAuth popup without authorizing leaves Authorize disabled for a minute while the client waits out a grace period that exists to tell a user close apart from a severed popup. It predates this branch, but moving Authorize out of the kebab and onto the card made it visible. A fix for this is out of scope for this PR.

@a-effort
a-effort requested review from gcgoncalves, marekdano and vishu-bh and removed request for vishu-bh December 3, 2026 00:23
@a-effort
a-effort marked this pull request as ready for review December 3, 2026 00:23
@a-effort
a-effort requested a max review from Copilot December 3, 2026 00:28
@a-effort
a-effort added this pull request to stack #272 December 3, 2026 00:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Reauthorization can silently reactivate disabled gateways, and the catalog validation test still targets an unreachable authorization menu item.

10 open issues
What changed in this PR

Improves component exposure and authorization controls across MCP Servers and Server Catalog, building on the shared registration flow from #270.

Changes:

  • Makes authorization and status-check actions directly accessible.
  • Simplifies component counts and relocates exposure controls.
  • Adds context-aware cancellation, form guidance, translations, and updated coverage.
File Description
src/​pages/​Servers.tsx Adds exposure cancellation and focus restoration.
src/​pages/​Servers.test.tsx Covers cancellation and updated status controls.
src/​pages/​ServerCatalog.tsx Distinguishes resumed exposure from registration.
src/​pages/​ServerCatalog.test.tsx Updates exposure and authorization coverage.
src/​lib/​serverStatus.ts Aligns status presentation and renewal eligibility.
src/​lib/​serverStatus.test.ts Checks actionable token states.
src/​i18n/​locales/​pt-BR/​mcpServer.json Updates Portuguese labels and hints.
src/​i18n/​locales/​es-ES/​mcpServer.json Updates Spanish labels and hints.
src/​i18n/​locales/​en-US/​mcpServer.json Updates English labels and hints.
src/​components/​servers/​ServerStatusIndicator.tsx Adds direct status-check controls.
src/​components/​servers/​ServerStatusIndicator.test.tsx Covers retry progress and labels.
src/​components/​servers/​ServersTable.tsx Simplifies counts and relocates exposure controls.
src/​components/​servers/​ServersTable.test.tsx Checks counts, placement, and tooltips.
src/​components/​server-catalog/​CatalogResults.tsx Adds card actions and moves exposure into menus.
src/​components/​server-catalog/​CatalogResults.test.tsx Updates card-action coverage.
src/​components/​gateways/​SourceSelection.test.tsx Updates source-picker status interactions.
src/​components/​gateways/​GatewayExposureStep.tsx Forwards the cancellation callback.
src/​components/​gateways/​ExposeComponentsForm.tsx Adds cancellation, navigation, and OAuth guidance.
src/​components/​gateways/​ExposeComponentsForm.test.tsx Covers navigation and the information popover.
src/​components/​gateways/​ExposeComponentsButton.tsx Introduces the exposure icon button and tooltip.
src/​components/​gateways/​ExposeComponentsAction.tsx Removes the previous text action.
e2e/​server-catalog.spec.ts Updates exposure-menu and cancellation scenarios.

Review effort: Max

Comment thread src/i18n/locales/en-US/mcpServer.json Resolved
Comment thread src/lib/serverStatus.ts Resolved
@a-effort a-effort self-assigned this Dec 3, 2026
Base automatically changed from fix/catalog-expose-components to main December 3, 2026 13:03
Moves the exposure affordance out of the status slot on both surfaces.
The servers table gets an icon button beside the component counts with a
tooltip; the catalog card gets a kebab item and loses the footer text.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
A row lists only the types it has, falling back to "0 components" when
it has none, which keeps the column on one line now that it also holds
the exposure button.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
The gear and the card menu item now open the form with Cancel, which
returns to the list or the catalog. Skip stays on the continuation out
of registration, which has no page behind it.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
The intro styled "virtual server" as a link without making it one, and
the OAuth info icon had no popover behind it.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
On the MCP Servers rows and the catalog cards, the status text is now
replaced by an Authorize, Reauthorize or Check status control wherever
the caller can take action. While a check is running, the control that
started it stays in place, so the row no longer switches to a different
control partway through the request.

Also removes the shared "Auth" short label, which was used for three
different states and did not distinguish between them.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
Leaving the form focuses the gear it was opened from, which Radix read as
a request to open the tooltip. Opening is now suppressed when the trigger
holds focus without matching :focus-visible, so pointer users get nothing
and keyboard users still get the tooltip.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
Authorize and Reauthorize now live on action labels rather than on the
status ids, so the source picker and the read-only table describe the
state instead of offering an action they cannot run. The action button
names itself after its visible label and keeps the full status in a
description.

The catalog chip follows the token rather than the presence of an action,
so a near-expiry card stays authenticated. A card action and an in-place
status check hand focus back when they resolve. The exposure tooltip
stays available to a hover over the button focus was returned to, and
reauthorization no longer re-enables a disabled source.

Signed-off-by: Anna Effort <anna.effort@ibm.com>

@marekdano marekdano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good!

LGTM 🚀

@vishu-bh vishu-bh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean Code

@vishu-bh
vishu-bh merged commit a46cb6d into main Dec 3, 2026
4 checks passed
@vishu-bh
vishu-bh deleted the feature/270-status branch December 3, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI-REWRITE][Design] status logic

4 participants