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

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 (102) hide show
  1. package/.docs/organized/code-examples/waterfall.md +7 -7
  2. package/.docs/organized/code-examples/with-a2a.md +8 -8
  3. package/.docs/organized/code-examples/with-ag-ui.md +12 -12
  4. package/.docs/organized/code-examples/with-ai-sdk-v6.md +10 -10
  5. package/.docs/organized/code-examples/with-artifacts.md +40 -34
  6. package/.docs/organized/code-examples/with-assistant-transport.md +11 -11
  7. package/.docs/organized/code-examples/with-browser-extension.md +9 -9
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +72 -51
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +10 -10
  10. package/.docs/organized/code-examples/with-cloud.md +10 -10
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +10 -10
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +12 -12
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +12 -12
  14. package/.docs/organized/code-examples/with-expo.md +66 -31
  15. package/.docs/organized/code-examples/with-external-store.md +8 -8
  16. package/.docs/organized/code-examples/with-ffmpeg.md +13 -13
  17. package/.docs/organized/code-examples/with-generative-ui.md +98 -368
  18. package/.docs/organized/code-examples/with-google-adk.md +9 -9
  19. package/.docs/organized/code-examples/with-heat-graph.md +7 -7
  20. package/.docs/organized/code-examples/with-image-generation.md +10 -10
  21. package/.docs/organized/code-examples/with-interactables.md +10 -10
  22. package/.docs/organized/code-examples/with-langchain.md +10 -10
  23. package/.docs/organized/code-examples/with-langgraph.md +33 -29
  24. package/.docs/organized/code-examples/with-livekit.md +12 -12
  25. package/.docs/organized/code-examples/with-mcp.md +11 -11
  26. package/.docs/organized/code-examples/with-opencode.md +109 -583
  27. package/.docs/organized/code-examples/with-pi.md +2044 -0
  28. package/.docs/organized/code-examples/with-react-hook-form.md +11 -11
  29. package/.docs/organized/code-examples/with-react-ink-web.md +691 -0
  30. package/.docs/organized/code-examples/with-react-ink.md +309 -102
  31. package/.docs/organized/code-examples/with-react-router.md +14 -14
  32. package/.docs/organized/code-examples/with-resumable-stream.md +11 -11
  33. package/.docs/organized/code-examples/with-store.md +70 -66
  34. package/.docs/organized/code-examples/with-tanstack.md +25 -11
  35. package/.docs/organized/code-examples/with-tap-runtime.md +8 -8
  36. package/.docs/organized/code-examples/with-virtualized-thread.md +656 -0
  37. package/.docs/raw/docs/(docs)/architecture.mdx +65 -53
  38. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +1 -1
  39. package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +3 -0
  40. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +44 -1
  41. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +14 -3
  42. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -1
  43. package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +2 -23
  44. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +22 -0
  45. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +93 -9
  46. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +21 -86
  47. package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
  48. package/.docs/raw/docs/guides/index.mdx +3 -0
  49. package/.docs/raw/docs/guides/input-history.mdx +55 -0
  50. package/.docs/raw/docs/guides/virtualization.mdx +63 -0
  51. package/.docs/raw/docs/ink/adapters.mdx +23 -1
  52. package/.docs/raw/docs/ink/hooks.mdx +22 -19
  53. package/.docs/raw/docs/migrations/toolkit-tools.mdx +14 -8
  54. package/.docs/raw/docs/react-native/hooks.mdx +26 -18
  55. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +39 -0
  56. package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +3 -3
  57. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +46 -4
  58. package/.docs/raw/docs/runtimes/concepts/stability.mdx +1 -1
  59. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +54 -12
  60. package/.docs/raw/docs/runtimes/custom/data-stream.mdx +1 -1
  61. package/.docs/raw/docs/runtimes/custom/external-store.mdx +62 -4
  62. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +120 -4
  63. package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -9
  64. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +13 -0
  65. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +5 -5
  66. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +3 -3
  67. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +6 -6
  68. package/.docs/raw/docs/tools/backend.mdx +19 -11
  69. package/.docs/raw/docs/tools/defining-tools.mdx +177 -52
  70. package/.docs/raw/docs/tools/index.mdx +7 -12
  71. package/.docs/raw/docs/tools/mcp.mdx +83 -15
  72. package/.docs/raw/docs/tools/multi-agent.mdx +5 -5
  73. package/.docs/raw/docs/tools/tool-ui.mdx +64 -28
  74. package/.docs/raw/docs/tools/user-managed-mcp.mdx +4 -4
  75. package/.docs/raw/docs/ui/dot-matrix.mdx +133 -0
  76. package/.docs/raw/docs/ui/mermaid.mdx +16 -9
  77. package/.docs/raw/docs/ui/model-selector.mdx +219 -52
  78. package/.docs/raw/docs/ui/number-roll.mdx +154 -0
  79. package/.docs/raw/docs/ui/part-grouping.mdx +2 -2
  80. package/.docs/raw/docs/ui/reasoning.mdx +3 -3
  81. package/.docs/raw/docs/ui/streamdown.mdx +2 -0
  82. package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -1
  83. package/.docs/raw/docs/ui/thread.mdx +52 -0
  84. package/.docs/raw/docs/ui/tool-fallback.mdx +16 -0
  85. package/.docs/raw/docs/utilities/react-o11y.mdx +2 -2
  86. package/dist/constants.js.map +1 -1
  87. package/dist/index.js.map +1 -1
  88. package/dist/prepare-docs/code-examples.js.map +1 -1
  89. package/dist/prepare-docs/copy-raw.js.map +1 -1
  90. package/dist/prepare-docs/prepare.js.map +1 -1
  91. package/dist/stdio.js.map +1 -1
  92. package/dist/tools/docs.js.map +1 -1
  93. package/dist/tools/examples.js.map +1 -1
  94. package/dist/tools/tests/test-setup.js.map +1 -1
  95. package/dist/utils/mdx.js.map +1 -1
  96. package/dist/utils/paths.js.map +1 -1
  97. package/package.json +4 -4
  98. /package/.docs/raw/docs/{(docs)/copilots → copilots}/assistant-frame.mdx +0 -0
  99. /package/.docs/raw/docs/{(docs)/copilots → copilots}/make-assistant-visible.mdx +0 -0
  100. /package/.docs/raw/docs/{(docs)/copilots → copilots}/model-context.mdx +0 -0
  101. /package/.docs/raw/docs/{(docs)/copilots → copilots}/motivation.mdx +0 -0
  102. /package/.docs/raw/docs/{(docs)/copilots → copilots}/use-assistant-instructions.mdx +0 -0
@@ -797,29 +797,29 @@ export default withAui(nextConfig);
797
797
  "start": "next start"
798
798
  },
799
799
  "dependencies": {
800
- "@ai-sdk/openai": "^3.0.67",
800
+ "@ai-sdk/openai": "^3.0.71",
801
801
  "@assistant-ui/react": "workspace:*",
802
802
  "@assistant-ui/react-ai-sdk": "workspace:*",
803
803
  "@assistant-ui/ui": "workspace:*",
804
- "ai": "^6.0.193",
804
+ "ai": "^6.0.204",
805
805
  "class-variance-authority": "^0.7.1",
806
806
  "clsx": "^2.1.1",
807
- "lucide-react": "^1.17.0",
808
- "next": "^16.2.6",
809
- "react": "^19.2.6",
810
- "react-dom": "^19.2.6",
807
+ "lucide-react": "^1.18.0",
808
+ "next": "^16.2.9",
809
+ "react": "^19.2.7",
810
+ "react-dom": "^19.2.7",
811
811
  "tailwind-merge": "^3.6.0",
812
812
  "zod": "^4.4.3"
813
813
  },
814
814
  "devDependencies": {
815
815
  "@assistant-ui/next": "workspace:*",
816
816
  "@assistant-ui/x-buildutils": "workspace:*",
817
- "@tailwindcss/postcss": "^4.3.0",
818
- "@types/node": "^25.9.1",
819
- "@types/react": "^19.2.15",
817
+ "@tailwindcss/postcss": "^4.3.1",
818
+ "@types/node": "^25.9.3",
819
+ "@types/react": "^19.2.17",
820
820
  "@types/react-dom": "^19.2.3",
821
821
  "postcss": "^8.5.15",
822
- "tailwindcss": "^4.3.0",
822
+ "tailwindcss": "^4.3.1",
823
823
  "tw-animate-css": "^1.4.0",
824
824
  "typescript": "^6.0.3"
825
825
  }
@@ -336,25 +336,25 @@ 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.10",
340
- "@langchain/react": "^1.0.10",
339
+ "@langchain/langgraph-sdk": "^1.9.22",
340
+ "@langchain/react": "^1.0.23",
341
341
  "class-variance-authority": "^0.7.1",
342
342
  "clsx": "^2.1.1",
343
- "lucide-react": "^1.17.0",
344
- "next": "^16.2.6",
345
- "react": "^19.2.6",
346
- "react-dom": "^19.2.6",
343
+ "lucide-react": "^1.18.0",
344
+ "next": "^16.2.9",
345
+ "react": "^19.2.7",
346
+ "react-dom": "^19.2.7",
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.0",
353
- "@types/node": "^25.9.1",
354
- "@types/react": "^19.2.15",
352
+ "@tailwindcss/postcss": "^4.3.1",
353
+ "@types/node": "^25.9.3",
354
+ "@types/react": "^19.2.17",
355
355
  "@types/react-dom": "^19.2.3",
356
356
  "postcss": "^8.5.15",
357
- "tailwindcss": "^4.3.0",
357
+ "tailwindcss": "^4.3.1",
358
358
  "tw-animate-css": "^1.4.0",
359
359
  "typescript": "^6.0.3"
360
360
  }
@@ -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,24 +878,24 @@ 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.22",
878
882
  "class-variance-authority": "^0.7.1",
879
883
  "clsx": "^2.1.1",
880
- "lucide-react": "^1.17.0",
881
- "next": "^16.2.6",
882
- "react": "^19.2.6",
883
- "react-dom": "^19.2.6",
884
+ "lucide-react": "^1.18.0",
885
+ "next": "^16.2.9",
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
- "@tailwindcss/postcss": "^4.3.0",
890
- "@types/node": "^25.9.1",
891
- "@types/react": "^19.2.15",
893
+ "@tailwindcss/postcss": "^4.3.1",
894
+ "@types/node": "^25.9.3",
895
+ "@types/react": "^19.2.17",
892
896
  "@types/react-dom": "^19.2.3",
893
897
  "postcss": "^8.5.15",
894
- "tailwindcss": "^4.3.0",
898
+ "tailwindcss": "^4.3.1",
895
899
  "tw-animate-css": "^1.4.0",
896
900
  "typescript": "^6.0.3"
897
901
  }
@@ -554,33 +554,33 @@ 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.71",
558
+ "@ai-sdk/react": "^3.0.206",
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.0",
564
- "ai": "^6.0.193",
563
+ "@tailwindcss/postcss": "^4.3.1",
564
+ "ai": "^6.0.204",
565
565
  "class-variance-authority": "^0.7.1",
566
566
  "clsx": "^2.1.1",
567
- "livekit-client": "^2.19.1",
567
+ "livekit-client": "^2.19.2",
568
568
  "livekit-server-sdk": "^2.15.4",
569
- "lucide-react": "^1.17.0",
569
+ "lucide-react": "^1.18.0",
570
570
  "motion": "^12.40.0",
571
- "next": "^16.2.6",
571
+ "next": "^16.2.9",
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
- "tailwindcss": "^4.3.0",
576
+ "tailwindcss": "^4.3.1",
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": "^25.9.1",
583
- "@types/react": "^19.2.15",
582
+ "@types/node": "^25.9.3",
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.71",
380
380
  "@assistant-ui/react": "workspace:*",
381
381
  "@assistant-ui/react-ai-sdk": "workspace:*",
382
382
  "@assistant-ui/react-markdown": "workspace:*",
@@ -385,30 +385,30 @@ 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.204",
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
- "lucide-react": "^1.17.0",
395
- "next": "^16.2.6",
396
- "react": "^19.2.6",
397
- "react-dom": "^19.2.6",
394
+ "lucide-react": "^1.18.0",
395
+ "next": "^16.2.9",
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
  },
401
401
  "devDependencies": {
402
402
  "@assistant-ui/x-buildutils": "workspace:*",
403
- "@tailwindcss/postcss": "^4.3.0",
403
+ "@tailwindcss/postcss": "^4.3.1",
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.3",
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
- "tailwindcss": "^4.3.0",
411
+ "tailwindcss": "^4.3.1",
412
412
  "tsx": "^4.22.4",
413
413
  "tw-animate-css": "^1.4.0",
414
414
  "typescript": "^6.0.3"