react-mcp
Installation
SKILL.md
assistant-ui React MCP
Always consult assistant-ui.com/llms.txt for the latest API.
@assistant-ui/react-mcp lets users connect preset or custom Streamable HTTP MCP servers in the browser. The manager persists server and auth state, exposes connection state to primitives, and registers each connected tool into modelContext as a frontend tool named serverId__toolName.
References
- ./references/setup.md -- manager configuration, storage, state, imperative methods, and resource reads
- ./references/ui.md -- the copied configuration dialog and every manager, server, and add form primitive
- ./references/oauth.md -- auth shapes, OAuth callback handling, CIMD, and connection states
Mount the manager
Declare fixed connectors with defineConnector, then extend the nearest aui scope with a config. connectionTimeout is a manager default in milliseconds. A connector or custom server can override it for its own connect and listTools() readiness flow.
"use client";