@assistant-ui/mcp-docs-server 0.1.39 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/code-examples/waterfall.md +17 -18
- package/.docs/organized/code-examples/with-a2a.md +20 -15
- package/.docs/organized/code-examples/with-ag-ui.md +19 -17
- package/.docs/organized/code-examples/with-ai-sdk-v7.md +17 -16
- package/.docs/organized/code-examples/with-artifacts.md +471 -145
- package/.docs/organized/code-examples/with-assistant-transport.md +23 -31
- package/.docs/organized/code-examples/with-browser-extension.md +21 -14
- package/.docs/organized/code-examples/with-chain-of-thought.md +22 -20
- package/.docs/organized/code-examples/with-cloud-standalone.md +13 -14
- package/.docs/organized/code-examples/with-cloud.md +22 -17
- package/.docs/organized/code-examples/with-custom-thread-list.md +17 -16
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +17 -17
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +21 -19
- package/.docs/organized/code-examples/with-eve.md +70 -16
- package/.docs/organized/code-examples/with-expo.md +32 -51
- package/.docs/organized/code-examples/with-external-store.md +20 -15
- package/.docs/organized/code-examples/with-ffmpeg.md +24 -18
- package/.docs/organized/code-examples/with-generative-ui.md +20 -21
- package/.docs/organized/code-examples/with-google-adk.md +21 -16
- package/.docs/organized/code-examples/with-heat-graph.md +10 -11
- package/.docs/organized/code-examples/with-image-generation.md +13 -14
- package/.docs/organized/code-examples/with-interactables.md +17 -16
- package/.docs/organized/code-examples/with-langchain.md +13 -14
- package/.docs/organized/code-examples/with-langgraph.md +23 -17
- package/.docs/organized/code-examples/with-livekit.md +17 -17
- package/.docs/organized/code-examples/with-mcp.md +36 -32
- package/.docs/organized/code-examples/with-nuxt.md +2492 -0
- package/.docs/organized/code-examples/with-opencode.md +27 -21
- package/.docs/organized/code-examples/with-pi.md +69 -67
- package/.docs/organized/code-examples/with-react-hook-form.md +18 -17
- package/.docs/organized/code-examples/with-react-ink-web.md +10 -11
- package/.docs/organized/code-examples/with-react-ink.md +7 -7
- package/.docs/organized/code-examples/with-react-router.md +23 -17
- package/.docs/organized/code-examples/with-resumable-stream.md +15 -16
- package/.docs/organized/code-examples/with-store.md +31 -20
- package/.docs/organized/code-examples/with-tanstack.md +22 -16
- package/.docs/organized/code-examples/with-tap-runtime.md +19 -19
- package/.docs/organized/code-examples/with-virtualized-thread.md +12 -13
- package/.docs/organized/code-examples/with-vue.md +408 -0
- package/.docs/raw/docs/(docs)/cli.mdx +3 -1
- package/.docs/raw/docs/(docs)/devtools.mdx +7 -2
- package/.docs/raw/docs/(docs)/index.mdx +9 -76
- package/.docs/raw/docs/(docs)/installation.mdx +4 -18
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +24 -4
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +40 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +3 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +19 -420
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +8 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +21 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -9
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +1 -18
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +24 -1
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +1 -1
- package/.docs/raw/docs/cloud/ai-sdk.mdx +2 -2
- package/.docs/raw/docs/cloud/langgraph.mdx +1 -1
- package/.docs/raw/docs/copilots/model-context.mdx +5 -4
- package/.docs/raw/docs/copilots/motivation.mdx +5 -5
- package/.docs/raw/docs/guides/attachments.mdx +3 -3
- package/.docs/raw/docs/guides/branching.mdx +2 -2
- package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
- package/.docs/raw/docs/guides/context-api.mdx +89 -111
- package/.docs/raw/docs/guides/editing.mdx +5 -5
- package/.docs/raw/docs/guides/electron.mdx +369 -0
- package/.docs/raw/docs/guides/index.mdx +10 -0
- package/.docs/raw/docs/guides/quoting.mdx +3 -3
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +2 -2
- package/.docs/raw/docs/guides/resumable-streams.mdx +74 -3
- package/.docs/raw/docs/guides/suggestions.mdx +9 -9
- package/.docs/raw/docs/ink/hooks.mdx +12 -7
- package/.docs/raw/docs/ink/primitives.mdx +18 -10
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +16 -0
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +3 -3
- package/.docs/raw/docs/integrations/auth/clerk.mdx +3 -3
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +4 -4
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +1 -1
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +2 -2
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
- package/.docs/raw/docs/integrations/gateways/index.mdx +2 -2
- package/.docs/raw/docs/integrations/observability/helicone.mdx +2 -2
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +3 -3
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +36 -9
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +15 -13
- package/.docs/raw/docs/migrations/v0-15.mdx +236 -0
- package/.docs/raw/docs/primitives/attachment.mdx +2 -2
- package/.docs/raw/docs/primitives/composer.mdx +3 -3
- package/.docs/raw/docs/primitives/message.mdx +33 -1
- package/.docs/raw/docs/primitives/suggestion.mdx +1 -1
- package/.docs/raw/docs/primitives/thread-list.mdx +2 -2
- package/.docs/raw/docs/react-native/hooks.mdx +17 -7
- package/.docs/raw/docs/react-native/index.mdx +3 -3
- package/.docs/raw/docs/react-native/primitives.mdx +41 -7
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +3 -3
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +5 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +5 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +13 -14
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +11 -12
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +50 -11
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +20 -2
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +31 -2
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +39 -12
- package/.docs/raw/docs/runtimes/eve/overview.mdx +51 -0
- package/.docs/raw/docs/runtimes/eve/quickstart.mdx +51 -2
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -12
- package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +1 -1
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +1 -1
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +7 -7
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +4 -4
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +4 -1
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +10 -0
- package/.docs/raw/docs/tools/a2ui.mdx +107 -0
- package/.docs/raw/docs/tools/backend.mdx +2 -2
- package/.docs/raw/docs/tools/defining-tools.mdx +9 -7
- package/.docs/raw/docs/tools/dynamic-tools.mdx +6 -4
- package/.docs/raw/docs/tools/interactables-legacy.mdx +28 -15
- package/.docs/raw/docs/tools/interactables.mdx +27 -16
- package/.docs/raw/docs/tools/mcp-apps.mdx +96 -8
- package/.docs/raw/docs/tools/mcp.mdx +9 -7
- package/.docs/raw/docs/tools/tool-ui.mdx +26 -22
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +64 -14
- package/.docs/raw/docs/ui/file.mdx +6 -1
- package/.docs/raw/docs/ui/follow-up-suggestions.mdx +2 -0
- package/.docs/raw/docs/ui/mcp-config.mdx +8 -3
- package/.docs/raw/docs/ui/model-selector.mdx +9 -9
- package/.docs/raw/docs/ui/part-grouping.mdx +1 -5
- package/.docs/raw/docs/ui/reasoning.mdx +1 -1
- package/.docs/raw/docs/ui/thread.mdx +24 -5
- package/.docs/raw/docs/utilities/react-o11y.mdx +7 -9
- package/dist/constants.js +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -1
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/stdio.d.ts +1 -1
- package/dist/tools/docs.d.ts +6 -10
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +6 -4
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +4 -8
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +4 -3
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/resources.d.ts +1 -1
- package/dist/tools/resources.d.ts.map +1 -1
- package/dist/tools/resources.js +3 -2
- package/dist/tools/resources.js.map +1 -1
- package/dist/tools/search.d.ts +4 -10
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +2 -2
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/tests/mcp-test-client.d.ts +15 -0
- package/dist/tools/tests/mcp-test-client.d.ts.map +1 -0
- package/dist/tools/tests/mcp-test-client.js +68 -0
- package/dist/tools/tests/mcp-test-client.js.map +1 -0
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +2 -1
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/tools/xulux-templates.d.ts +9 -23
- package/dist/tools/xulux-templates.d.ts.map +1 -1
- package/dist/tools/xulux-templates.js +8 -6
- package/dist/tools/xulux-templates.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/mdx.js +2 -1
- package/dist/utils/mdx.js.map +1 -1
- package/dist/utils/security.js.map +1 -1
- package/dist/xulux/catalog-client.js +1 -1
- package/dist/xulux/catalog-client.js.map +1 -1
- package/package.json +6 -5
- package/src/index.ts +2 -2
- package/src/tools/docs.ts +2 -2
- package/src/tools/examples.ts +2 -2
- package/src/tools/resources.ts +1 -4
- package/src/tools/search.ts +2 -2
- package/src/tools/tests/completions.test.ts +40 -26
- package/src/tools/tests/docs.test.ts +2 -2
- package/src/tools/tests/integration.test.ts +3 -4
- package/src/tools/tests/mcp-protocol.test.ts +160 -175
- package/src/tools/tests/mcp-test-client.ts +111 -0
- package/src/tools/tests/resources.test.ts +97 -66
- package/src/tools/xulux-templates.ts +4 -4
|
@@ -380,30 +380,29 @@ export default withAui(nextConfig);
|
|
|
380
380
|
"start": "next start"
|
|
381
381
|
},
|
|
382
382
|
"dependencies": {
|
|
383
|
-
"@ai-sdk/openai": "^4.0.
|
|
383
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
384
384
|
"@assistant-ui/react": "workspace:*",
|
|
385
385
|
"@assistant-ui/ui": "workspace:*",
|
|
386
|
-
"ai": "^7.0.
|
|
386
|
+
"ai": "^7.0.56",
|
|
387
387
|
"class-variance-authority": "^0.7.1",
|
|
388
388
|
"clsx": "^2.1.1",
|
|
389
|
-
"lucide-react": "^1.
|
|
390
|
-
"next": "^16.
|
|
391
|
-
"react": "^19.2.
|
|
392
|
-
"react-dom": "^19.2.
|
|
389
|
+
"lucide-react": "^1.29.0",
|
|
390
|
+
"next": "^16.3.0",
|
|
391
|
+
"react": "^19.2.8",
|
|
392
|
+
"react-dom": "^19.2.8",
|
|
393
393
|
"tailwind-merge": "^3.6.0"
|
|
394
394
|
},
|
|
395
395
|
"devDependencies": {
|
|
396
396
|
"@assistant-ui/next": "workspace:*",
|
|
397
397
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
398
|
-
"@tailwindcss/postcss": "^4.3.
|
|
399
|
-
"@types/node": "^26.1.
|
|
400
|
-
"@types/react": "^19.2.
|
|
401
|
-
"@types/react-dom": "^19.2.
|
|
402
|
-
"postcss": "^8.5.
|
|
403
|
-
"tailwindcss": "^4.3.
|
|
398
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
399
|
+
"@types/node": "^26.1.2",
|
|
400
|
+
"@types/react": "^19.2.18",
|
|
401
|
+
"@types/react-dom": "^19.2.4",
|
|
402
|
+
"postcss": "^8.5.26",
|
|
403
|
+
"tailwindcss": "^4.3.3",
|
|
404
404
|
"tw-animate-css": "^1.4.0",
|
|
405
|
-
"typescript": "
|
|
406
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
405
|
+
"typescript": "^7.0.2"
|
|
407
406
|
}
|
|
408
407
|
}
|
|
409
408
|
|
|
@@ -206,6 +206,7 @@ import { Thread } from "@/components/assistant-ui/thread";
|
|
|
206
206
|
import {
|
|
207
207
|
AssistantRuntimeProvider,
|
|
208
208
|
AuiProvider,
|
|
209
|
+
AuiConfig,
|
|
209
210
|
unstable_Interactables,
|
|
210
211
|
Suggestions,
|
|
211
212
|
useAui,
|
|
@@ -461,7 +462,8 @@ const persistenceAdapter = {
|
|
|
461
462
|
};
|
|
462
463
|
|
|
463
464
|
function InteractablesExample() {
|
|
464
|
-
const aui = useAui(
|
|
465
|
+
const aui = useAui();
|
|
466
|
+
const config = AuiConfig({
|
|
465
467
|
unstable_interactables: unstable_Interactables({
|
|
466
468
|
persistence: persistenceAdapter,
|
|
467
469
|
}),
|
|
@@ -486,7 +488,7 @@ function InteractablesExample() {
|
|
|
486
488
|
});
|
|
487
489
|
|
|
488
490
|
return (
|
|
489
|
-
<AuiProvider
|
|
491
|
+
<AuiProvider extends={aui} config={config}>
|
|
490
492
|
<main className="flex h-full min-h-0">
|
|
491
493
|
<div className="min-w-0 flex-1">
|
|
492
494
|
<Thread />
|
|
@@ -624,31 +626,30 @@ export default nextConfig;
|
|
|
624
626
|
"start": "next start"
|
|
625
627
|
},
|
|
626
628
|
"dependencies": {
|
|
627
|
-
"@ai-sdk/openai": "^4.0.
|
|
629
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
628
630
|
"@assistant-ui/react": "workspace:*",
|
|
629
631
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
630
632
|
"@assistant-ui/ui": "workspace:*",
|
|
631
|
-
"ai": "^7.0.
|
|
633
|
+
"ai": "^7.0.56",
|
|
632
634
|
"class-variance-authority": "^0.7.1",
|
|
633
635
|
"clsx": "^2.1.1",
|
|
634
|
-
"lucide-react": "^1.
|
|
635
|
-
"next": "^16.
|
|
636
|
-
"react": "^19.2.
|
|
637
|
-
"react-dom": "^19.2.
|
|
636
|
+
"lucide-react": "^1.29.0",
|
|
637
|
+
"next": "^16.3.0",
|
|
638
|
+
"react": "^19.2.8",
|
|
639
|
+
"react-dom": "^19.2.8",
|
|
638
640
|
"tailwind-merge": "^3.6.0",
|
|
639
641
|
"zod": "^4.4.3"
|
|
640
642
|
},
|
|
641
643
|
"devDependencies": {
|
|
642
644
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
643
|
-
"@tailwindcss/postcss": "^4.3.
|
|
644
|
-
"@types/node": "^26.1.
|
|
645
|
-
"@types/react": "^19.2.
|
|
646
|
-
"@types/react-dom": "^19.2.
|
|
647
|
-
"postcss": "^8.5.
|
|
648
|
-
"tailwindcss": "^4.3.
|
|
645
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
646
|
+
"@types/node": "^26.1.2",
|
|
647
|
+
"@types/react": "^19.2.18",
|
|
648
|
+
"@types/react-dom": "^19.2.4",
|
|
649
|
+
"postcss": "^8.5.26",
|
|
650
|
+
"tailwindcss": "^4.3.3",
|
|
649
651
|
"tw-animate-css": "^1.4.0",
|
|
650
|
-
"typescript": "
|
|
651
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
652
|
+
"typescript": "^7.0.2"
|
|
652
653
|
}
|
|
653
654
|
}
|
|
654
655
|
|
|
@@ -336,28 +336,27 @@ export default withAui(nextConfig);
|
|
|
336
336
|
"@assistant-ui/react-langchain": "workspace:*",
|
|
337
337
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
338
338
|
"@assistant-ui/ui": "workspace:*",
|
|
339
|
-
"@langchain/langgraph-sdk": "^1.9.
|
|
340
|
-
"@langchain/react": "^1.0.
|
|
339
|
+
"@langchain/langgraph-sdk": "^1.9.28",
|
|
340
|
+
"@langchain/react": "^1.0.29",
|
|
341
341
|
"class-variance-authority": "^0.7.1",
|
|
342
342
|
"clsx": "^2.1.1",
|
|
343
|
-
"lucide-react": "^1.
|
|
344
|
-
"next": "^16.
|
|
345
|
-
"react": "^19.2.
|
|
346
|
-
"react-dom": "^19.2.
|
|
343
|
+
"lucide-react": "^1.29.0",
|
|
344
|
+
"next": "^16.3.0",
|
|
345
|
+
"react": "^19.2.8",
|
|
346
|
+
"react-dom": "^19.2.8",
|
|
347
347
|
"tailwind-merge": "^3.6.0"
|
|
348
348
|
},
|
|
349
349
|
"devDependencies": {
|
|
350
350
|
"@assistant-ui/next": "workspace:*",
|
|
351
351
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
352
|
-
"@tailwindcss/postcss": "^4.3.
|
|
353
|
-
"@types/node": "^26.1.
|
|
354
|
-
"@types/react": "^19.2.
|
|
355
|
-
"@types/react-dom": "^19.2.
|
|
356
|
-
"postcss": "^8.5.
|
|
357
|
-
"tailwindcss": "^4.3.
|
|
352
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
353
|
+
"@types/node": "^26.1.2",
|
|
354
|
+
"@types/react": "^19.2.18",
|
|
355
|
+
"@types/react-dom": "^19.2.4",
|
|
356
|
+
"postcss": "^8.5.26",
|
|
357
|
+
"tailwindcss": "^4.3.3",
|
|
358
358
|
"tw-animate-css": "^1.4.0",
|
|
359
|
-
"typescript": "
|
|
360
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
359
|
+
"typescript": "^7.0.2"
|
|
361
360
|
}
|
|
362
361
|
}
|
|
363
362
|
|
|
@@ -284,11 +284,18 @@ export function MyRuntimeProvider({
|
|
|
284
284
|
|
|
285
285
|
import { Thread } from "@/components/assistant-ui/thread";
|
|
286
286
|
import { ThreadList } from "@/components/assistant-ui/thread-list";
|
|
287
|
-
import {
|
|
287
|
+
import {
|
|
288
|
+
useAui,
|
|
289
|
+
AuiProvider,
|
|
290
|
+
AuiConfig,
|
|
291
|
+
Suggestions,
|
|
292
|
+
Tools,
|
|
293
|
+
} from "@assistant-ui/react";
|
|
288
294
|
import toolkit from "./toolkit";
|
|
289
295
|
|
|
290
296
|
function ThreadWithSuggestions() {
|
|
291
|
-
const aui = useAui(
|
|
297
|
+
const aui = useAui();
|
|
298
|
+
const config = AuiConfig({
|
|
292
299
|
tools: Tools({ toolkit }),
|
|
293
300
|
suggestions: Suggestions([
|
|
294
301
|
{
|
|
@@ -304,7 +311,7 @@ function ThreadWithSuggestions() {
|
|
|
304
311
|
]),
|
|
305
312
|
});
|
|
306
313
|
return (
|
|
307
|
-
<AuiProvider
|
|
314
|
+
<AuiProvider extends={aui} config={config}>
|
|
308
315
|
<Thread />
|
|
309
316
|
</AuiProvider>
|
|
310
317
|
);
|
|
@@ -740,28 +747,27 @@ export default withAui(nextConfig);
|
|
|
740
747
|
"@assistant-ui/react-langchain": "workspace:*",
|
|
741
748
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
742
749
|
"@assistant-ui/ui": "workspace:*",
|
|
743
|
-
"@langchain/langgraph-sdk": "^1.9.
|
|
744
|
-
"@langchain/react": "^1.0.
|
|
750
|
+
"@langchain/langgraph-sdk": "^1.9.28",
|
|
751
|
+
"@langchain/react": "^1.0.29",
|
|
745
752
|
"class-variance-authority": "^0.7.1",
|
|
746
753
|
"clsx": "^2.1.1",
|
|
747
|
-
"lucide-react": "^1.
|
|
748
|
-
"next": "^16.
|
|
749
|
-
"react": "^19.2.
|
|
750
|
-
"react-dom": "^19.2.
|
|
754
|
+
"lucide-react": "^1.29.0",
|
|
755
|
+
"next": "^16.3.0",
|
|
756
|
+
"react": "^19.2.8",
|
|
757
|
+
"react-dom": "^19.2.8",
|
|
751
758
|
"tailwind-merge": "^3.6.0"
|
|
752
759
|
},
|
|
753
760
|
"devDependencies": {
|
|
754
761
|
"@assistant-ui/next": "workspace:*",
|
|
755
762
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
756
|
-
"@tailwindcss/postcss": "^4.3.
|
|
757
|
-
"@types/node": "^26.1.
|
|
758
|
-
"@types/react": "^19.2.
|
|
759
|
-
"@types/react-dom": "^19.2.
|
|
760
|
-
"postcss": "^8.5.
|
|
761
|
-
"tailwindcss": "^4.3.
|
|
763
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
764
|
+
"@types/node": "^26.1.2",
|
|
765
|
+
"@types/react": "^19.2.18",
|
|
766
|
+
"@types/react-dom": "^19.2.4",
|
|
767
|
+
"postcss": "^8.5.26",
|
|
768
|
+
"tailwindcss": "^4.3.3",
|
|
762
769
|
"tw-animate-css": "^1.4.0",
|
|
763
|
-
"typescript": "
|
|
764
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
770
|
+
"typescript": "^7.0.2"
|
|
765
771
|
}
|
|
766
772
|
}
|
|
767
773
|
|
|
@@ -554,37 +554,36 @@ export default withAui(nextConfig);
|
|
|
554
554
|
"version": "0.0.0",
|
|
555
555
|
"type": "module",
|
|
556
556
|
"dependencies": {
|
|
557
|
-
"@ai-sdk/openai": "^4.0.
|
|
558
|
-
"@ai-sdk/react": "^4.0.
|
|
557
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
558
|
+
"@ai-sdk/react": "^4.0.59",
|
|
559
559
|
"@assistant-ui/react": "workspace:^",
|
|
560
560
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
561
561
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
562
562
|
"@assistant-ui/ui": "workspace:*",
|
|
563
|
-
"@tailwindcss/postcss": "^4.3.
|
|
564
|
-
"ai": "^7.0.
|
|
563
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
564
|
+
"ai": "^7.0.56",
|
|
565
565
|
"class-variance-authority": "^0.7.1",
|
|
566
566
|
"clsx": "^2.1.1",
|
|
567
|
-
"livekit-client": "^2.
|
|
567
|
+
"livekit-client": "^2.21.0",
|
|
568
568
|
"livekit-server-sdk": "^2.17.0",
|
|
569
|
-
"lucide-react": "^1.
|
|
570
|
-
"motion": "^
|
|
571
|
-
"next": "^16.
|
|
572
|
-
"postcss": "^8.5.
|
|
573
|
-
"react": "^19.2.
|
|
574
|
-
"react-dom": "^19.2.
|
|
569
|
+
"lucide-react": "^1.29.0",
|
|
570
|
+
"motion": "^13.0.0",
|
|
571
|
+
"next": "^16.3.0",
|
|
572
|
+
"postcss": "^8.5.26",
|
|
573
|
+
"react": "^19.2.8",
|
|
574
|
+
"react-dom": "^19.2.8",
|
|
575
575
|
"tailwind-merge": "^3.6.0",
|
|
576
|
-
"tailwindcss": "^4.3.
|
|
576
|
+
"tailwindcss": "^4.3.3",
|
|
577
577
|
"zod": "^4.4.3"
|
|
578
578
|
},
|
|
579
579
|
"devDependencies": {
|
|
580
580
|
"@assistant-ui/next": "workspace:*",
|
|
581
581
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
582
|
-
"@types/node": "^26.1.
|
|
583
|
-
"@types/react": "^19.2.
|
|
584
|
-
"@types/react-dom": "^19.2.
|
|
582
|
+
"@types/node": "^26.1.2",
|
|
583
|
+
"@types/react": "^19.2.18",
|
|
584
|
+
"@types/react-dom": "^19.2.4",
|
|
585
585
|
"tw-animate-css": "^1.4.0",
|
|
586
|
-
"typescript": "
|
|
587
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
586
|
+
"typescript": "^7.0.2"
|
|
588
587
|
},
|
|
589
588
|
"scripts": {
|
|
590
589
|
"dev": "next dev",
|
|
@@ -626,6 +625,7 @@ export default withAui(nextConfig);
|
|
|
626
625
|
],
|
|
627
626
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
628
627
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
628
|
+
"@assistant-ui/store/client": ["../../packages/store/src/client"],
|
|
629
629
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
630
630
|
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
631
631
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
@@ -251,7 +251,7 @@ export default function Home() {
|
|
|
251
251
|
"use client";
|
|
252
252
|
|
|
253
253
|
import type { ReactNode } from "react";
|
|
254
|
-
import { AssistantRuntimeProvider,
|
|
254
|
+
import { AssistantRuntimeProvider, AuiConfig } from "@assistant-ui/react";
|
|
255
255
|
import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
|
|
256
256
|
import { McpManagerResource, defineConnector } from "@assistant-ui/react-mcp";
|
|
257
257
|
|
|
@@ -265,10 +265,10 @@ const connectors = [
|
|
|
265
265
|
];
|
|
266
266
|
|
|
267
267
|
export function Providers({ children }: { children: ReactNode }) {
|
|
268
|
-
const
|
|
268
|
+
const config = AuiConfig({ mcp: McpManagerResource({ connectors }) });
|
|
269
269
|
const runtime = useChatRuntime();
|
|
270
270
|
return (
|
|
271
|
-
<AssistantRuntimeProvider runtime={runtime}
|
|
271
|
+
<AssistantRuntimeProvider runtime={runtime} config={config}>
|
|
272
272
|
{children}
|
|
273
273
|
</AssistantRuntimeProvider>
|
|
274
274
|
);
|
|
@@ -382,7 +382,7 @@ export default nextConfig;
|
|
|
382
382
|
"start:server": "tsx server/server.ts"
|
|
383
383
|
},
|
|
384
384
|
"dependencies": {
|
|
385
|
-
"@ai-sdk/openai": "^4.0.
|
|
385
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
386
386
|
"@assistant-ui/react": "workspace:*",
|
|
387
387
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
388
388
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
@@ -390,35 +390,37 @@ export default nextConfig;
|
|
|
390
390
|
"@assistant-ui/store": "workspace:*",
|
|
391
391
|
"@assistant-ui/tap": "workspace:*",
|
|
392
392
|
"@assistant-ui/ui": "workspace:*",
|
|
393
|
-
"@modelcontextprotocol/
|
|
394
|
-
"
|
|
393
|
+
"@modelcontextprotocol/express": "^2.0.0",
|
|
394
|
+
"@modelcontextprotocol/node": "^2.0.0",
|
|
395
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
396
|
+
"@modelcontextprotocol/server-legacy": "^2.0.0",
|
|
397
|
+
"ai": "^7.0.56",
|
|
395
398
|
"assistant-stream": "workspace:*",
|
|
396
399
|
"class-variance-authority": "^0.7.1",
|
|
397
400
|
"clsx": "^2.1.1",
|
|
398
401
|
"cors": "^2.8.6",
|
|
399
402
|
"express": "^5.2.1",
|
|
400
|
-
"lucide-react": "^1.
|
|
401
|
-
"next": "^16.
|
|
402
|
-
"react": "^19.2.
|
|
403
|
-
"react-dom": "^19.2.
|
|
403
|
+
"lucide-react": "^1.29.0",
|
|
404
|
+
"next": "^16.3.0",
|
|
405
|
+
"react": "^19.2.8",
|
|
406
|
+
"react-dom": "^19.2.8",
|
|
404
407
|
"tailwind-merge": "^3.6.0",
|
|
405
408
|
"zod": "^4.4.3"
|
|
406
409
|
},
|
|
407
410
|
"devDependencies": {
|
|
408
411
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
409
|
-
"@tailwindcss/postcss": "^4.3.
|
|
412
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
410
413
|
"@types/cors": "^2.8.19",
|
|
411
414
|
"@types/express": "^5.0.6",
|
|
412
|
-
"@types/node": "^26.1.
|
|
413
|
-
"@types/react": "^19.2.
|
|
414
|
-
"@types/react-dom": "^19.2.
|
|
415
|
-
"concurrently": "^10.0.
|
|
416
|
-
"postcss": "^8.5.
|
|
417
|
-
"tailwindcss": "^4.3.
|
|
418
|
-
"tsx": "^4.23.
|
|
415
|
+
"@types/node": "^26.1.2",
|
|
416
|
+
"@types/react": "^19.2.18",
|
|
417
|
+
"@types/react-dom": "^19.2.4",
|
|
418
|
+
"concurrently": "^10.0.4",
|
|
419
|
+
"postcss": "^8.5.26",
|
|
420
|
+
"tailwindcss": "^4.3.3",
|
|
421
|
+
"tsx": "^4.23.10",
|
|
419
422
|
"tw-animate-css": "^1.4.0",
|
|
420
|
-
"typescript": "
|
|
421
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
423
|
+
"typescript": "^7.0.2"
|
|
422
424
|
}
|
|
423
425
|
}
|
|
424
426
|
|
|
@@ -464,7 +466,7 @@ transitions to `connected` and the `echo` / `fingerprint` tools appear.
|
|
|
464
466
|
/**
|
|
465
467
|
* Standalone test MCP server with OAuth.
|
|
466
468
|
*
|
|
467
|
-
* - OAuth 2.1 authorization server (PKCE + DCR) via @modelcontextprotocol/
|
|
469
|
+
* - OAuth 2.1 authorization server (PKCE + DCR) via @modelcontextprotocol/server-legacy's auth router.
|
|
468
470
|
* - One MCP tool, `echo`, that returns its input.
|
|
469
471
|
* - All state in memory; for local development / E2E only.
|
|
470
472
|
*
|
|
@@ -473,17 +475,19 @@ transitions to `connected` and the `echo` / `fingerprint` tools appear.
|
|
|
473
475
|
import express from "express";
|
|
474
476
|
import cors from "cors";
|
|
475
477
|
import { randomBytes, randomUUID, createHash } from "node:crypto";
|
|
476
|
-
import { McpServer } from "@modelcontextprotocol/
|
|
477
|
-
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
478
|
-
import { mcpAuthRouter } from "@modelcontextprotocol/sdk/server/auth/router.js";
|
|
479
|
-
import { requireBearerAuth } from "@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth.js";
|
|
480
|
-
import type { OAuthServerProvider } from "@modelcontextprotocol/sdk/server/auth/provider.js";
|
|
481
|
-
import type { OAuthRegisteredClientsStore } from "@modelcontextprotocol/sdk/server/auth/clients.js";
|
|
478
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
482
479
|
import type {
|
|
480
|
+
AuthInfo,
|
|
483
481
|
OAuthClientInformationFull,
|
|
484
482
|
OAuthTokens,
|
|
485
|
-
} from "@modelcontextprotocol/
|
|
486
|
-
import
|
|
483
|
+
} from "@modelcontextprotocol/server";
|
|
484
|
+
import { NodeStreamableHTTPServerTransport } from "@modelcontextprotocol/node";
|
|
485
|
+
import { mcpAuthRouter } from "@modelcontextprotocol/server-legacy/auth";
|
|
486
|
+
import type {
|
|
487
|
+
OAuthServerProvider,
|
|
488
|
+
OAuthRegisteredClientsStore,
|
|
489
|
+
} from "@modelcontextprotocol/server-legacy/auth";
|
|
490
|
+
import { requireBearerAuth } from "@modelcontextprotocol/express";
|
|
487
491
|
import { z } from "zod";
|
|
488
492
|
|
|
489
493
|
const PORT = Number(process.env.PORT ?? 8787);
|
|
@@ -633,7 +637,7 @@ function buildMcpServer(): McpServer {
|
|
|
633
637
|
{
|
|
634
638
|
title: "Echo",
|
|
635
639
|
description: "Echo back the provided text.",
|
|
636
|
-
inputSchema: { text: z.string().describe("Text to echo back") },
|
|
640
|
+
inputSchema: z.object({ text: z.string().describe("Text to echo back") }),
|
|
637
641
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
638
642
|
},
|
|
639
643
|
async ({ text }) => ({
|
|
@@ -646,7 +650,7 @@ function buildMcpServer(): McpServer {
|
|
|
646
650
|
title: "Fingerprint",
|
|
647
651
|
description:
|
|
648
652
|
"Return a deterministic fingerprint of a string (sha256 hex).",
|
|
649
|
-
inputSchema: { input: z.string() },
|
|
653
|
+
inputSchema: z.object({ input: z.string() }),
|
|
650
654
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
651
655
|
},
|
|
652
656
|
async ({ input }) => ({
|
|
@@ -697,7 +701,7 @@ async function main() {
|
|
|
697
701
|
|
|
698
702
|
app.post("/mcp", bearer, async (req, res) => {
|
|
699
703
|
try {
|
|
700
|
-
const transport = new
|
|
704
|
+
const transport = new NodeStreamableHTTPServerTransport({
|
|
701
705
|
sessionIdGenerator: undefined,
|
|
702
706
|
});
|
|
703
707
|
res.on("close", () => transport.close());
|