Repository navigation
feat(servers): status affordances for component exposure and authorization - #271
Merged
Merged
Conversation
a-effort
requested review from
gcgoncalves,
marekdano and
vishu-bh
and removed request for
vishu-bh
December 3, 2026 00:23
a-effort
marked this pull request as ready for review
December 3, 2026 00:23
There was a problem hiding this comment.
🟡 Changes recommended
Reauthorization can silently reactivate disabled gateways, and the catalog validation test still targets an unreachable authorization menu item.
10 open issues
Reauthorization must not re-enable a disabled gateway · New Update OAuth validation to use the card authorization action · New Allow hover to reopen tooltip after mouse-origin focus · New Prevent navigation during creation and use a real link · New Give the OAuth information dialog an accessible name · New Keep near-expiry tokens labeled as authenticated · New Restore focus after the authorization action completes · New Preserve focus when the status retry control is replaced · New Keep shared status labels descriptive, not action-oriented · New Include the visible Reauthorize label in the accessible name · New
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
marekdano
force-pushed
the
feature/270-status
branch
from
December 3, 2026 11:53
d0f05f9 to
bba4667
Compare
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>
vishu-bh
force-pushed
the
feature/270-status
branch
from
December 3, 2026 13:04
bba4667 to
b34acc5
Compare
marekdano
approved these changes
Dec 3, 2026
marekdano
left a comment
Contributor
There was a problem hiding this comment.
The changes look good!
LGTM 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Closes IBM/mcp-context-forge#7748 and stacks on #270.
271.mp4
MCP server page changes:
MCP server catalog changes:
Both MCP server page & catalog:
Expose components form:
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.