diff --git a/README.md b/README.md index 0453008..24f3313 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,8 @@ import { createUI } from 'mcp-ui-kit/server'; const dashboardUI = createUI('my-dashboard', import.meta.resolve('./MyComponent.tsx')); server.registerTool('dashboard', { - description: 'Interactive dashboard' + description: 'Interactive dashboard', + _meta: dashboardUI.meta }, async () => ({ content: [ { type: 'text', text: 'Dashboard loaded' }, diff --git a/nanobot.db b/nanobot.db index 34019ad..a8bc454 100644 Binary files a/nanobot.db and b/nanobot.db differ diff --git a/packages/demo-server/index.ts b/packages/demo-server/index.ts index fba9585..1e152d0 100644 --- a/packages/demo-server/index.ts +++ b/packages/demo-server/index.ts @@ -55,7 +55,7 @@ app.post('/mcp', async (req, res) => { server.registerTool( 'weather_dashboard', - { description: 'Interactive weather dashboard showing current conditions and 5-day forecast for Oslo' }, + { description: 'Interactive weather dashboard showing current conditions and 5-day forecast for Oslo', _meta: weatherDashboardUI.meta }, async () => ({ content: [ { @@ -76,6 +76,7 @@ app.post('/mcp', async (req, res) => { 'stock_portfolio', { description: 'Interactive stock portfolio dashboard. View real-time prices, charts, and analysis for your selected stocks.', + _meta: stockDashboardUI.meta, inputSchema: { symbols: z.array(z.string()).default(['AAPL', 'GOOGL', 'MSFT']), timeframe: z.enum(['1D', '1W', '1M', '3M', '1Y']).default('1M'),