Skip to content
Back

MCP serversPro

Look after the Model Context Protocol connections behind an agent: a token budget bar split by server, health per connection with sign in and retry, per-tool switches with their cost, and a catalogue to plug in new ones.

oxyn add mcp-servers

MCP servers

11 tools · 4.5k tokens of context

4,540 of 5,500 budgeted tokens

  • Connection refused on localhost:5432

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Manage the Model Context Protocol servers that give an agent its tools, and see what the enabled tools cost in context.

When not to use

Installation

MCP servers is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add mcp-servers

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

List

Five connections in three health states.

MCP servers

11 tools · 4.5k tokens of context

4,540 of 5,500 budgeted tokens

  • Connection refused on localhost:5432

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Tools

GitHub open with its tools (Oxyn extra).

MCP servers

11 tools · 4.5k tokens of context

4,540 of 5,500 budgeted tokens

    • list_issuesRead420
    • get_pull_requestRead380
    • search_codeRead510
    • create_issueWrite460
    • comment_on_prWrite400
    • merge_pull_requestWrite520
    Tool calls
    https://mcp.example-git.dev/sse
  • Connection refused on localhost:5432

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Add

The Add server sheet open (Oxyn extra).

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

McpServers

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
openOption<usize>Default::default()Open this server's tools at the start.
addingboolDefault::default()Open the Add server sheet at the start.
meterbooltrueShow the context bar.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
↑or↓orHomeorEndStep through the connections
EnterorSpaceExpand a connection; flip a tool
CmdorCtrlZBring back the connection you just removed
EscDismiss the catalogue

Accessibility

  • Connection rows read their name, health, local or remote, enabled tools and token cost.
  • The budget bar is role meter; its text says by how much the budget is exceeded.
  • Health is a glyph with a word; each tool switch speaks the tool, read or write and tokens.
From the spec

Server rows are buttons with aria-expanded named with server, status, transport, tools on and tokens; the context bar is a meter whose value text says how far over budget; switches are named with tool, access and tokens; the sheet is a modal dialog (Escape closes, Cmd/Ctrl+Z undoes a remove). Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

Toggling a tool resizes its server's segment and rolls the totals; discovered tools appear one by one; a new server lands on top, open.

Timing

Everything on screen is derived from the host clock now (no timers in the block), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Connect after Retry1500 ms—
Authorize1200 ms—
Tool discovered450 ms each—
Undo window6000 ms—

Reduced motion: shimmer, pulses and slides stop; every state keeps its words and icons.

Responsive behaviour

  • Max 720 px; tools lose their inset under 520 px and the access label turns into an icon under 400 px.
Edge cases (spec)

Up to 720 px; below 520 px the tool list drops its indent and the sheet rises higher; below 400 px the tool count leaves the row and read / write become icons. Layout follows the block's own width (container queries), never the viewport. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus data series and the official coloured brand and model marks.

Notes for AI

  • Import McpServers from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: BlocksView in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI