# MCP UI Kit Build interactive React UIs for MCP tools. ## Installation ```bash npm install @mcp-ui-kit ``` ## Server Usage Create UI components that bundle on-demand: ```typescript import { createUI } from '@mcp-ui-kit/server'; const dashboardUI = createUI('my-dashboard', import.meta.resolve('./MyComponent.tsx')); server.registerTool('dashboard', { description: 'Interactive dashboard' }, async () => ({ content: [ { type: 'text', text: 'Dashboard loaded' }, await dashboardUI.component({ props: { title: 'Hello' } }) ] })); ``` ## Client Usage Helper functions for your React components: ```typescript import { sendPrompt, callTool, useProps } from '@mcp-ui-kit/react'; function MyComponent() { const { title } = useProps({ title: 'Default' }); return (