Skip to content

MCP Servers

The MCP servers an agent can use, and what each one may do: status in words with the full reason when it breaks, tool counts, and Off, Ask or Auto for each tool. Add, test, reconnect and remove are callbacks to your backend.

On this page

Examples

Data

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

servers
McpServer[]
id, name, transport ("http" | "stdio"), target (URL or command), status, reason?, tools, lastUsedAt?, icon?. The logo defaults to a brand mark matched by name, else initials.
status
"connected" | "connecting" | "needs-auth" | "error" | "disabled"
Spelled out next to a coloured dot. needs-auth and error show their full reason under it (it wraps, never cut off) and an Authorize or Reconnect button in its own column.
tools
{ name, description?, access, enabled, requiresApproval }[]
Shown when the row is expanded, as flat rows: name, Read or Write, the full description and one Off / Ask / Auto control (toolMode). Ask is the Autonomy ask level for that tool; new write tools should start at Ask (defaultToolMode).
onToolChange
(serverId, tool, { enabled?, requiresApproval? }) => void
A tool's mode changed: Off sends { enabled: false }, Ask and Auto send { enabled: true, requiresApproval } (modePatch). Without it the controls are read-only.
onServerEnabledChange
(id, enabled) => void
The server switch. Off means status "disabled": its tools are greyed out.
onReconnect / onRemove
(id) => void
Reconnect shows for needs-auth ("Authorize") and error, and in the row's menu. Remove sits in the menu and asks to confirm first.
onTestServer
(id) => void | Promise<McpTestResult | void>
Adds Test connection to the row's menu. A resolved result shows under the status, in green or red.
onAdd
(draft) => void | Promise
Shows Add server. The dialog asks for a name, transport, URL or command and headers or env vars, and refuses pasted secrets: values must be placeholders like ${GITHUB_TOKEN}.
onTest
(draft, signal?) => Promise<McpTestResult>
DefaultsimulateTest
Test connection in the dialog. The default is a believable simulation for demos.
defaultExpanded / now
string[] / number
Rows open at first. now fixes the clock for "Last used".
a11y
region, buttons, radios, menu
The card is a region named by its title. Rows are buttons with aria-expanded; each tool's mode is a radio group, and every switch, button and menu names its server or tool.

When to use

When to use

  • A settings page where users connect the MCP servers an agent may use and see which are healthy.
  • Narrowing what an agent can do per tool: Off, Ask first or Auto for each one.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI MCP Servers to my app and wire it to my own data.
  • I need a settings page where users connect the MCP servers an agent may use and see which are healthy. Set that up with the Knowns UI MCP Servers.
  • Which MCP Servers props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "mcp-servers" }) and search_docs({ query: "mcp servers" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on MCP Servers, or found something off? We read every message.