Agents / MCP
Connection panel
An endpoint, an auth method, and a clear connection state.
Registry
Installation
Add the registry entry to your app.
npx shadcn@latest add @fabrials/connection-panelWithout the named registry, use the address:
https://ui.fabrials.com/r/connection-panel.json
API reference
| Prop / export | Type | Description |
|---|---|---|
status | string | Connection lifecycle state. |
onConnect | (ConnectionOptions) => Promise<void> | Connect with the selected method. |
onDisconnect | () => Promise<void> | Release the connection. |
defaultEndpoint | string? | Initial endpoint URL. |
Behavior
Bearer tokens stay in memory. OAuth requires callback and client metadata routes; see the authentication guide. CORS is controlled by the destination server.
Accessibility
Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.