Skip to content
caliper ui pro docs

Mcp connectors

Manages the MCP servers an assistant can use: whether each one is connected, and for every tool whether it may run, must ask first, or is denied. Adding a server checks the details, then stays open while it connects so you watch its tools arrive.

Pro

Assistant tools

3 servers · 7 tools

  • The server answered 401: the token for this server has expired. Retry after renewing it.

When to use

  • Settings for an assistant, IDE or agent that loads tools from MCP servers.
  • Any list of connected tool sources where each tool needs its own permission.

When not to use

  • Granting one app access to an account; use `connection-consent`.
  • A single on/off integration with no tools to choose between; use a switch.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/mcp-connectors

Adds its 13 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

McpConnectors

10 props
PropTypeDefaultDescription
servers *readonly McpServer[]—
onPermissionChange *(serverId: string, tool: string, permission: McpPermission) => void—
onAdd((draft: McpServerDraft) => Promise<string>)—Starts connecting. Resolve with the new server's id once it is in `servers`; reject with an Error to show its message.
onRemove((serverId: string) => void)—
onRetry((serverId: string) => void)—Tries a failed server again.
titlestring"MCP servers"
loadingbooleanfalse
errorstring—Why the list could not load. Shows Retry when `onReload` is given.
onReload(() => void)—
classNamestring—

validateMcpDraft

3 props
PropTypeDefault
name *string—
transport *McpTransport—
address *string—

Keyboard

  • Keyboard and focus come from Radix dialog: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It exposes status and alert semantics, with aria-label, aria-hidden, aria-expanded and aria-controls kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/mcp-connectors.md

The index of every part is at /llms.txt.

More in Assistant screens