Skip to content

fix(ui): redesign the MCP page on Astryx primitives #1900

Description

@Astro-Han

Problem

mcp-page.tsx:4 takes Collapsible, EmptyState, Item, Tab, TabList from Astryx, then eleven @maka/ui components (Badge, IconButton, RadioList, Selector, Switch, TextArea, TextInput, PageHeader, …) on the next lines, backed by styles/module-pages/mcp.css at 468 lines. Visible consequences: the setup panel is permanent chrome holding three cards, which is then followed by a second card grid for the marketplace; the three header actions (刷新 / JSON 导入 / 添加 MCP) each use a different button treatment; the 远程 HTTP setup card renders visually inert next to its two siblings.

Desired outcome

One connector-management structure. Setup guidance appears conditional on the state that needs it, not as permanent chrome. Marketplace discovery and installed-connector management stay visually distinct without stacking framed regions. Header keeps at most one primary action. Astryx primitives supply geometry; mcp.css shrinks to layout and product-only chrome.

Verification

Storybook states for setup-required, marketplace, installed, connection-failed and narrow; live-app before/after; existing MCP E2E journeys green.

Note

Supersedes the MCP section of #1452, restated for the post-Astryx component vocabulary.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions