@assistant-ui/mcp-docs-server 0.1.33 → 0.1.34

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.
Files changed (81) hide show
  1. package/.docs/organized/code-examples/waterfall.md +5 -5
  2. package/.docs/organized/code-examples/with-a2a.md +5 -5
  3. package/.docs/organized/code-examples/with-ag-ui.md +9 -9
  4. package/.docs/organized/code-examples/with-ai-sdk-v6.md +7 -7
  5. package/.docs/organized/code-examples/with-artifacts.md +37 -31
  6. package/.docs/organized/code-examples/with-assistant-transport.md +8 -8
  7. package/.docs/organized/code-examples/with-browser-extension.md +5 -5
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +68 -47
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +7 -7
  10. package/.docs/organized/code-examples/with-cloud.md +7 -7
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +7 -7
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +8 -8
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +8 -8
  14. package/.docs/organized/code-examples/with-expo.md +33 -24
  15. package/.docs/organized/code-examples/with-external-store.md +5 -5
  16. package/.docs/organized/code-examples/with-ffmpeg.md +10 -10
  17. package/.docs/organized/code-examples/with-generative-ui.md +70 -64
  18. package/.docs/organized/code-examples/with-google-adk.md +6 -6
  19. package/.docs/organized/code-examples/with-heat-graph.md +5 -5
  20. package/.docs/organized/code-examples/with-image-generation.md +7 -7
  21. package/.docs/organized/code-examples/with-interactables.md +7 -7
  22. package/.docs/organized/code-examples/with-langchain.md +7 -7
  23. package/.docs/organized/code-examples/with-langgraph.md +30 -26
  24. package/.docs/organized/code-examples/with-livekit.md +8 -8
  25. package/.docs/organized/code-examples/with-mcp.md +8 -8
  26. package/.docs/organized/code-examples/with-opencode.md +6 -6
  27. package/.docs/organized/code-examples/with-react-hook-form.md +7 -7
  28. package/.docs/organized/code-examples/with-react-ink.md +295 -100
  29. package/.docs/organized/code-examples/with-react-router.md +11 -11
  30. package/.docs/organized/code-examples/with-resumable-stream.md +8 -8
  31. package/.docs/organized/code-examples/with-store.md +64 -64
  32. package/.docs/organized/code-examples/with-tanstack.md +8 -8
  33. package/.docs/organized/code-examples/with-tap-runtime.md +5 -5
  34. package/.docs/raw/docs/(docs)/architecture.mdx +52 -41
  35. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +1 -1
  36. package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +3 -0
  37. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +14 -3
  38. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +94 -3
  39. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +5 -69
  40. package/.docs/raw/docs/ink/adapters.mdx +23 -1
  41. package/.docs/raw/docs/ink/hooks.mdx +20 -17
  42. package/.docs/raw/docs/migrations/toolkit-tools.mdx +14 -8
  43. package/.docs/raw/docs/react-native/hooks.mdx +25 -17
  44. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +41 -0
  45. package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +3 -3
  46. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +46 -4
  47. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +54 -12
  48. package/.docs/raw/docs/runtimes/custom/external-store.mdx +62 -4
  49. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +12 -0
  50. package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -9
  51. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +13 -0
  52. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +5 -5
  53. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +3 -3
  54. package/.docs/raw/docs/tools/backend.mdx +19 -11
  55. package/.docs/raw/docs/tools/defining-tools.mdx +177 -52
  56. package/.docs/raw/docs/tools/index.mdx +7 -12
  57. package/.docs/raw/docs/tools/mcp.mdx +83 -15
  58. package/.docs/raw/docs/tools/multi-agent.mdx +5 -5
  59. package/.docs/raw/docs/tools/tool-ui.mdx +27 -27
  60. package/.docs/raw/docs/tools/user-managed-mcp.mdx +4 -4
  61. package/.docs/raw/docs/ui/mermaid.mdx +16 -9
  62. package/.docs/raw/docs/ui/part-grouping.mdx +2 -2
  63. package/.docs/raw/docs/ui/tool-fallback.mdx +16 -0
  64. package/.docs/raw/docs/utilities/react-o11y.mdx +2 -2
  65. package/dist/constants.js.map +1 -1
  66. package/dist/index.js.map +1 -1
  67. package/dist/prepare-docs/code-examples.js.map +1 -1
  68. package/dist/prepare-docs/copy-raw.js.map +1 -1
  69. package/dist/prepare-docs/prepare.js.map +1 -1
  70. package/dist/stdio.js.map +1 -1
  71. package/dist/tools/docs.js.map +1 -1
  72. package/dist/tools/examples.js.map +1 -1
  73. package/dist/tools/tests/test-setup.js.map +1 -1
  74. package/dist/utils/mdx.js.map +1 -1
  75. package/dist/utils/paths.js.map +1 -1
  76. package/package.json +4 -4
  77. /package/.docs/raw/docs/{(docs)/copilots → copilots}/assistant-frame.mdx +0 -0
  78. /package/.docs/raw/docs/{(docs)/copilots → copilots}/make-assistant-visible.mdx +0 -0
  79. /package/.docs/raw/docs/{(docs)/copilots → copilots}/model-context.mdx +0 -0
  80. /package/.docs/raw/docs/{(docs)/copilots → copilots}/motivation.mdx +0 -0
  81. /package/.docs/raw/docs/{(docs)/copilots → copilots}/use-assistant-instructions.mdx +0 -0
@@ -306,27 +306,9 @@ export function MyRuntimeProvider({
306
306
  "use client";
307
307
 
308
308
  import { Thread } from "@/components/assistant-ui/thread";
309
- import { PriceSnapshotToolUI } from "@/components/tools/price-snapshot/PriceSnapshotTool";
310
- import { PurchaseStockToolUI } from "@/components/tools/purchase-stock/PurchaseStockTool";
311
309
  import { ThreadList } from "@/components/assistant-ui/thread-list";
312
- import {
313
- useAui,
314
- AuiProvider,
315
- Suggestions,
316
- Tools,
317
- type Toolkit,
318
- } from "@assistant-ui/react";
319
-
320
- const toolkit = {
321
- price_snapshot: {
322
- type: "backend",
323
- render: PriceSnapshotToolUI,
324
- },
325
- purchase_stock: {
326
- type: "backend",
327
- render: PurchaseStockToolUI,
328
- },
329
- } satisfies Toolkit;
310
+ import { useAui, AuiProvider, Suggestions, Tools } from "@assistant-ui/react";
311
+ import toolkit from "./toolkit";
330
312
 
331
313
  function ThreadWithSuggestions() {
332
314
  const aui = useAui({
@@ -366,6 +348,28 @@ export default function Home() {
366
348
 
367
349
  ```
368
350
 
351
+ ## app/toolkit.tsx
352
+
353
+ ```tsx
354
+ "use generative";
355
+
356
+ import { defineToolkit, externalTool } from "@assistant-ui/react";
357
+ import { PriceSnapshotToolUI } from "@/components/tools/price-snapshot/PriceSnapshotTool";
358
+ import { PurchaseStockToolUI } from "@/components/tools/purchase-stock/PurchaseStockTool";
359
+
360
+ export default defineToolkit({
361
+ price_snapshot: {
362
+ execute: externalTool(),
363
+ render: PriceSnapshotToolUI,
364
+ },
365
+ purchase_stock: {
366
+ execute: externalTool(),
367
+ render: PurchaseStockToolUI,
368
+ },
369
+ });
370
+
371
+ ```
372
+
369
373
  ## components.json
370
374
 
371
375
  ```json
@@ -874,21 +878,21 @@ export default withAui(nextConfig);
874
878
  "@assistant-ui/react-langgraph": "workspace:*",
875
879
  "@assistant-ui/react-markdown": "workspace:*",
876
880
  "@assistant-ui/ui": "workspace:*",
877
- "@langchain/langgraph-sdk": "^1.9.10",
881
+ "@langchain/langgraph-sdk": "^1.9.18",
878
882
  "class-variance-authority": "^0.7.1",
879
883
  "clsx": "^2.1.1",
880
884
  "lucide-react": "^1.17.0",
881
- "next": "^16.2.6",
882
- "react": "^19.2.6",
883
- "react-dom": "^19.2.6",
885
+ "next": "^16.2.7",
886
+ "react": "^19.2.7",
887
+ "react-dom": "^19.2.7",
884
888
  "tailwind-merge": "^3.6.0"
885
889
  },
886
890
  "devDependencies": {
887
891
  "@assistant-ui/next": "workspace:*",
888
892
  "@assistant-ui/x-buildutils": "workspace:*",
889
893
  "@tailwindcss/postcss": "^4.3.0",
890
- "@types/node": "^25.9.1",
891
- "@types/react": "^19.2.15",
894
+ "@types/node": "^25.9.2",
895
+ "@types/react": "^19.2.17",
892
896
  "@types/react-dom": "^19.2.3",
893
897
  "postcss": "^8.5.15",
894
898
  "tailwindcss": "^4.3.0",
@@ -554,24 +554,24 @@ export default withAui(nextConfig);
554
554
  "version": "0.0.0",
555
555
  "type": "module",
556
556
  "dependencies": {
557
- "@ai-sdk/openai": "^3.0.67",
558
- "@ai-sdk/react": "^3.0.195",
557
+ "@ai-sdk/openai": "^3.0.68",
558
+ "@ai-sdk/react": "^3.0.199",
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
563
  "@tailwindcss/postcss": "^4.3.0",
564
- "ai": "^6.0.193",
564
+ "ai": "^6.0.197",
565
565
  "class-variance-authority": "^0.7.1",
566
566
  "clsx": "^2.1.1",
567
567
  "livekit-client": "^2.19.1",
568
568
  "livekit-server-sdk": "^2.15.4",
569
569
  "lucide-react": "^1.17.0",
570
570
  "motion": "^12.40.0",
571
- "next": "^16.2.6",
571
+ "next": "^16.2.7",
572
572
  "postcss": "^8.5.15",
573
- "react": "^19.2.6",
574
- "react-dom": "^19.2.6",
573
+ "react": "^19.2.7",
574
+ "react-dom": "^19.2.7",
575
575
  "tailwind-merge": "^3.6.0",
576
576
  "tailwindcss": "^4.3.0",
577
577
  "zod": "^4.4.3"
@@ -579,8 +579,8 @@ export default withAui(nextConfig);
579
579
  "devDependencies": {
580
580
  "@assistant-ui/next": "workspace:*",
581
581
  "@assistant-ui/x-buildutils": "workspace:*",
582
- "@types/node": "^25.9.1",
583
- "@types/react": "^19.2.15",
582
+ "@types/node": "^25.9.2",
583
+ "@types/react": "^19.2.17",
584
584
  "@types/react-dom": "^19.2.3",
585
585
  "tw-animate-css": "^1.4.0",
586
586
  "typescript": "^6.0.3"
@@ -376,7 +376,7 @@ export default nextConfig;
376
376
  "start:server": "tsx server/server.ts"
377
377
  },
378
378
  "dependencies": {
379
- "@ai-sdk/openai": "^3.0.67",
379
+ "@ai-sdk/openai": "^3.0.68",
380
380
  "@assistant-ui/react": "workspace:*",
381
381
  "@assistant-ui/react-ai-sdk": "workspace:*",
382
382
  "@assistant-ui/react-markdown": "workspace:*",
@@ -385,16 +385,16 @@ export default nextConfig;
385
385
  "@assistant-ui/tap": "workspace:*",
386
386
  "@assistant-ui/ui": "workspace:*",
387
387
  "@modelcontextprotocol/sdk": "^1.29.0",
388
- "ai": "^6.0.193",
388
+ "ai": "^6.0.197",
389
389
  "assistant-stream": "workspace:*",
390
390
  "class-variance-authority": "^0.7.1",
391
391
  "clsx": "^2.1.1",
392
392
  "cors": "^2.8.6",
393
393
  "express": "^5.2.1",
394
394
  "lucide-react": "^1.17.0",
395
- "next": "^16.2.6",
396
- "react": "^19.2.6",
397
- "react-dom": "^19.2.6",
395
+ "next": "^16.2.7",
396
+ "react": "^19.2.7",
397
+ "react-dom": "^19.2.7",
398
398
  "tailwind-merge": "^3.6.0",
399
399
  "zod": "^4.4.3"
400
400
  },
@@ -403,10 +403,10 @@ export default nextConfig;
403
403
  "@tailwindcss/postcss": "^4.3.0",
404
404
  "@types/cors": "^2.8.19",
405
405
  "@types/express": "^5.0.6",
406
- "@types/node": "^25.9.1",
407
- "@types/react": "^19.2.15",
406
+ "@types/node": "^25.9.2",
407
+ "@types/react": "^19.2.17",
408
408
  "@types/react-dom": "^19.2.3",
409
- "concurrently": "^10.0.0",
409
+ "concurrently": "^10.0.3",
410
410
  "postcss": "^8.5.15",
411
411
  "tailwindcss": "^4.3.0",
412
412
  "tsx": "^4.22.4",
@@ -2368,13 +2368,13 @@ export default withAui(nextConfig);
2368
2368
  "@assistant-ui/react-markdown": "workspace:*",
2369
2369
  "@assistant-ui/react-opencode": "workspace:*",
2370
2370
  "@assistant-ui/ui": "workspace:*",
2371
- "@pierre/diffs": "^1.2.5",
2371
+ "@pierre/diffs": "^1.2.7",
2372
2372
  "class-variance-authority": "^0.7.1",
2373
2373
  "clsx": "^2.1.1",
2374
2374
  "lucide-react": "^1.17.0",
2375
- "next": "^16.2.6",
2376
- "react": "^19.2.6",
2377
- "react-dom": "^19.2.6",
2375
+ "next": "^16.2.7",
2376
+ "react": "^19.2.7",
2377
+ "react-dom": "^19.2.7",
2378
2378
  "tailwind-merge": "^3.6.0",
2379
2379
  "zod": "^4.4.3"
2380
2380
  },
@@ -2382,8 +2382,8 @@ export default withAui(nextConfig);
2382
2382
  "@assistant-ui/next": "workspace:*",
2383
2383
  "@assistant-ui/x-buildutils": "workspace:*",
2384
2384
  "@tailwindcss/postcss": "^4.3.0",
2385
- "@types/node": "^25.9.1",
2386
- "@types/react": "^19.2.15",
2385
+ "@types/node": "^25.9.2",
2386
+ "@types/react": "^19.2.17",
2387
2387
  "@types/react-dom": "^19.2.3",
2388
2388
  "postcss": "^8.5.15",
2389
2389
  "tailwindcss": "^4.3.0",
@@ -610,19 +610,19 @@ export default withAui(nextConfig);
610
610
  "start": "next start"
611
611
  },
612
612
  "dependencies": {
613
- "@ai-sdk/openai": "^3.0.67",
613
+ "@ai-sdk/openai": "^3.0.68",
614
614
  "@assistant-ui/react": "workspace:*",
615
615
  "@assistant-ui/react-ai-sdk": "workspace:*",
616
616
  "@assistant-ui/react-hook-form": "workspace:*",
617
617
  "@assistant-ui/react-markdown": "workspace:*",
618
618
  "@assistant-ui/ui": "workspace:*",
619
- "ai": "^6.0.193",
619
+ "ai": "^6.0.197",
620
620
  "class-variance-authority": "^0.7.1",
621
621
  "clsx": "^2.1.1",
622
622
  "lucide-react": "^1.17.0",
623
- "next": "^16.2.6",
624
- "react": "^19.2.6",
625
- "react-dom": "^19.2.6",
623
+ "next": "^16.2.7",
624
+ "react": "^19.2.7",
625
+ "react-dom": "^19.2.7",
626
626
  "react-hook-form": "^7.77.0",
627
627
  "tailwind-merge": "^3.6.0"
628
628
  },
@@ -630,8 +630,8 @@ export default withAui(nextConfig);
630
630
  "@assistant-ui/next": "workspace:*",
631
631
  "@assistant-ui/x-buildutils": "workspace:*",
632
632
  "@tailwindcss/postcss": "^4.3.0",
633
- "@types/node": "^25.9.1",
634
- "@types/react": "^19.2.15",
633
+ "@types/node": "^25.9.2",
634
+ "@types/react": "^19.2.17",
635
635
  "@types/react-dom": "^19.2.3",
636
636
  "postcss": "^8.5.15",
637
637
  "tailwindcss": "^4.3.0",