@assistant-ui/mcp-docs-server 0.1.39 → 0.2.0

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 (136) hide show
  1. package/.docs/organized/code-examples/waterfall.md +7 -7
  2. package/.docs/organized/code-examples/with-a2a.md +7 -7
  3. package/.docs/organized/code-examples/with-ag-ui.md +8 -8
  4. package/.docs/organized/code-examples/with-ai-sdk-v7.md +9 -9
  5. package/.docs/organized/code-examples/with-artifacts.md +463 -138
  6. package/.docs/organized/code-examples/with-assistant-transport.md +7 -7
  7. package/.docs/organized/code-examples/with-browser-extension.md +6 -6
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +11 -11
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +9 -9
  10. package/.docs/organized/code-examples/with-cloud.md +9 -9
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +9 -9
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +11 -11
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +11 -11
  14. package/.docs/organized/code-examples/with-eve.md +8 -8
  15. package/.docs/organized/code-examples/with-expo.md +26 -46
  16. package/.docs/organized/code-examples/with-external-store.md +7 -7
  17. package/.docs/organized/code-examples/with-ffmpeg.md +9 -9
  18. package/.docs/organized/code-examples/with-generative-ui.md +10 -10
  19. package/.docs/organized/code-examples/with-google-adk.md +8 -8
  20. package/.docs/organized/code-examples/with-heat-graph.md +6 -6
  21. package/.docs/organized/code-examples/with-image-generation.md +9 -9
  22. package/.docs/organized/code-examples/with-interactables.md +9 -9
  23. package/.docs/organized/code-examples/with-langchain.md +9 -9
  24. package/.docs/organized/code-examples/with-langgraph.md +9 -9
  25. package/.docs/organized/code-examples/with-livekit.md +11 -11
  26. package/.docs/organized/code-examples/with-mcp.md +28 -23
  27. package/.docs/organized/code-examples/with-opencode.md +8 -11
  28. package/.docs/organized/code-examples/with-pi.md +14 -14
  29. package/.docs/organized/code-examples/with-react-hook-form.md +10 -10
  30. package/.docs/organized/code-examples/with-react-ink-web.md +5 -5
  31. package/.docs/organized/code-examples/with-react-ink.md +2 -2
  32. package/.docs/organized/code-examples/with-react-router.md +11 -11
  33. package/.docs/organized/code-examples/with-resumable-stream.md +10 -10
  34. package/.docs/organized/code-examples/with-store.md +6 -6
  35. package/.docs/organized/code-examples/with-tanstack.md +9 -9
  36. package/.docs/organized/code-examples/with-tap-runtime.md +7 -7
  37. package/.docs/organized/code-examples/with-virtualized-thread.md +8 -8
  38. package/.docs/raw/docs/(docs)/cli.mdx +2 -0
  39. package/.docs/raw/docs/(docs)/devtools.mdx +7 -2
  40. package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +40 -0
  41. package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +3 -0
  42. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +19 -420
  43. package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +4 -1
  44. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +21 -0
  45. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -9
  46. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +1 -18
  47. package/.docs/raw/docs/cloud/langgraph.mdx +1 -1
  48. package/.docs/raw/docs/copilots/model-context.mdx +1 -1
  49. package/.docs/raw/docs/copilots/motivation.mdx +1 -1
  50. package/.docs/raw/docs/guides/attachments.mdx +3 -3
  51. package/.docs/raw/docs/guides/branching.mdx +2 -2
  52. package/.docs/raw/docs/guides/context-api.mdx +89 -111
  53. package/.docs/raw/docs/guides/editing.mdx +5 -5
  54. package/.docs/raw/docs/guides/electron.mdx +369 -0
  55. package/.docs/raw/docs/guides/index.mdx +10 -0
  56. package/.docs/raw/docs/guides/quoting.mdx +3 -3
  57. package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +2 -2
  58. package/.docs/raw/docs/ink/hooks.mdx +3 -3
  59. package/.docs/raw/docs/ink/primitives.mdx +14 -7
  60. package/.docs/raw/docs/integrations/auth/better-auth.mdx +2 -2
  61. package/.docs/raw/docs/integrations/auth/clerk.mdx +2 -2
  62. package/.docs/raw/docs/integrations/auth/next-auth.mdx +3 -3
  63. package/.docs/raw/docs/integrations/observability/langsmith.mdx +1 -1
  64. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +36 -9
  65. package/.docs/raw/docs/migrations/v0-15.mdx +156 -0
  66. package/.docs/raw/docs/primitives/composer.mdx +1 -1
  67. package/.docs/raw/docs/primitives/thread-list.mdx +2 -2
  68. package/.docs/raw/docs/react-native/hooks.mdx +3 -3
  69. package/.docs/raw/docs/react-native/index.mdx +2 -2
  70. package/.docs/raw/docs/react-native/primitives.mdx +39 -5
  71. package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +3 -3
  72. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +4 -4
  73. package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +4 -4
  74. package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +4 -4
  75. package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +2 -2
  76. package/.docs/raw/docs/runtimes/concepts/threads.mdx +10 -10
  77. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +2 -2
  78. package/.docs/raw/docs/runtimes/custom/external-store.mdx +1 -1
  79. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +3 -3
  80. package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
  81. package/.docs/raw/docs/runtimes/langgraph/overview.mdx +1 -1
  82. package/.docs/raw/docs/runtimes/opencode/hooks.mdx +3 -1
  83. package/.docs/raw/docs/tools/a2ui.mdx +107 -0
  84. package/.docs/raw/docs/tools/interactables-legacy.mdx +4 -4
  85. package/.docs/raw/docs/tools/interactables.mdx +3 -3
  86. package/.docs/raw/docs/tools/mcp-apps.mdx +61 -2
  87. package/.docs/raw/docs/tools/user-managed-mcp.mdx +52 -7
  88. package/.docs/raw/docs/ui/follow-up-suggestions.mdx +2 -0
  89. package/.docs/raw/docs/ui/model-selector.mdx +1 -1
  90. package/.docs/raw/docs/ui/part-grouping.mdx +0 -4
  91. package/.docs/raw/docs/ui/reasoning.mdx +1 -1
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +2 -2
  94. package/dist/index.js.map +1 -1
  95. package/dist/prepare-docs/code-examples.js.map +1 -1
  96. package/dist/prepare-docs/prepare.d.ts +1 -1
  97. package/dist/stdio.d.ts +1 -1
  98. package/dist/tools/docs.d.ts +6 -10
  99. package/dist/tools/docs.d.ts.map +1 -1
  100. package/dist/tools/docs.js +2 -2
  101. package/dist/tools/docs.js.map +1 -1
  102. package/dist/tools/examples.d.ts +4 -8
  103. package/dist/tools/examples.d.ts.map +1 -1
  104. package/dist/tools/examples.js +2 -2
  105. package/dist/tools/examples.js.map +1 -1
  106. package/dist/tools/resources.d.ts +1 -1
  107. package/dist/tools/resources.d.ts.map +1 -1
  108. package/dist/tools/resources.js +1 -1
  109. package/dist/tools/resources.js.map +1 -1
  110. package/dist/tools/search.d.ts +4 -10
  111. package/dist/tools/search.d.ts.map +1 -1
  112. package/dist/tools/search.js +2 -2
  113. package/dist/tools/search.js.map +1 -1
  114. package/dist/tools/tests/mcp-test-client.d.ts +15 -0
  115. package/dist/tools/tests/mcp-test-client.d.ts.map +1 -0
  116. package/dist/tools/tests/mcp-test-client.js +68 -0
  117. package/dist/tools/tests/mcp-test-client.js.map +1 -0
  118. package/dist/tools/tests/test-setup.d.ts.map +1 -1
  119. package/dist/tools/xulux-templates.d.ts +9 -23
  120. package/dist/tools/xulux-templates.d.ts.map +1 -1
  121. package/dist/tools/xulux-templates.js +4 -4
  122. package/dist/tools/xulux-templates.js.map +1 -1
  123. package/dist/utils/logger.d.ts.map +1 -1
  124. package/dist/utils/security.js.map +1 -1
  125. package/package.json +4 -3
  126. package/src/index.ts +2 -2
  127. package/src/tools/docs.ts +2 -2
  128. package/src/tools/examples.ts +2 -2
  129. package/src/tools/resources.ts +1 -4
  130. package/src/tools/search.ts +2 -2
  131. package/src/tools/tests/completions.test.ts +40 -26
  132. package/src/tools/tests/integration.test.ts +3 -4
  133. package/src/tools/tests/mcp-protocol.test.ts +160 -175
  134. package/src/tools/tests/mcp-test-client.ts +111 -0
  135. package/src/tools/tests/resources.test.ts +97 -66
  136. package/src/tools/xulux-templates.ts +4 -4
@@ -418,7 +418,7 @@ export function WaterfallRow() {
418
418
  <SpanPrimitive.CollapseToggle className="text-muted-foreground hover:text-foreground flex shrink-0 items-center justify-center rounded p-0.5">
419
419
  <svg
420
420
  aria-hidden="true"
421
- className="data-[collapsed=true]:[-rotate-90] size-3.5 transition-transform"
421
+ className="size-3.5 transition-transform group-data-[collapsed=true]:-rotate-90"
422
422
  viewBox="0 0 16 16"
423
423
  fill="currentColor"
424
424
  >
@@ -772,19 +772,19 @@ export default withAui(nextConfig);
772
772
  "@assistant-ui/react-o11y": "workspace:*",
773
773
  "@assistant-ui/store": "workspace:*",
774
774
  "@assistant-ui/tap": "workspace:*",
775
- "next": "^16.2.10",
776
- "react": "^19.2.7",
777
- "react-dom": "^19.2.7"
775
+ "next": "^16.2.11",
776
+ "react": "^19.2.8",
777
+ "react-dom": "^19.2.8"
778
778
  },
779
779
  "devDependencies": {
780
780
  "@assistant-ui/next": "workspace:*",
781
781
  "@assistant-ui/x-buildutils": "workspace:*",
782
- "@tailwindcss/postcss": "^4.3.2",
782
+ "@tailwindcss/postcss": "^4.3.3",
783
783
  "@types/node": "^26.1.1",
784
784
  "@types/react": "^19.2.17",
785
785
  "@types/react-dom": "^19.2.3",
786
- "postcss": "^8.5.19",
787
- "tailwindcss": "^4.3.2",
786
+ "postcss": "^8.5.23",
787
+ "tailwindcss": "^4.3.3",
788
788
  "typescript": "npm:@typescript/typescript6@^6.0.2",
789
789
  "typescript-7": "npm:typescript@^7.0.2"
790
790
  }
@@ -553,21 +553,21 @@ export default withAui(nextConfig);
553
553
  "@assistant-ui/ui": "workspace:*",
554
554
  "class-variance-authority": "^0.7.1",
555
555
  "clsx": "^2.1.1",
556
- "lucide-react": "^1.24.0",
557
- "next": "^16.2.10",
558
- "react": "^19.2.7",
559
- "react-dom": "^19.2.7",
556
+ "lucide-react": "^1.26.0",
557
+ "next": "^16.2.11",
558
+ "react": "^19.2.8",
559
+ "react-dom": "^19.2.8",
560
560
  "tailwind-merge": "^3.6.0"
561
561
  },
562
562
  "devDependencies": {
563
563
  "@assistant-ui/next": "workspace:*",
564
564
  "@assistant-ui/x-buildutils": "workspace:*",
565
- "@tailwindcss/postcss": "^4.3.2",
565
+ "@tailwindcss/postcss": "^4.3.3",
566
566
  "@types/node": "^26.1.1",
567
567
  "@types/react": "^19.2.17",
568
568
  "@types/react-dom": "^19.2.3",
569
- "postcss": "^8.5.19",
570
- "tailwindcss": "^4.3.2",
569
+ "postcss": "^8.5.23",
570
+ "tailwindcss": "^4.3.3",
571
571
  "tw-animate-css": "^1.4.0",
572
572
  "typescript": "npm:@typescript/typescript6@^6.0.2",
573
573
  "typescript-7": "npm:typescript@^7.0.2"
@@ -314,7 +314,7 @@ function NewThreadButton() {
314
314
  return (
315
315
  <button
316
316
  type="button"
317
- onClick={() => aui.threads().switchToNewThread()}
317
+ onClick={() => aui.threads.switchToNewThread()}
318
318
  className="bg-background hover:bg-accent absolute top-4 right-4 z-10 flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium shadow-sm transition-colors"
319
319
  >
320
320
  <PlusIcon className="size-4" />
@@ -425,21 +425,21 @@ export default withAui(nextConfig);
425
425
  "@assistant-ui/ui": "workspace:*",
426
426
  "class-variance-authority": "^0.7.1",
427
427
  "clsx": "^2.1.1",
428
- "lucide-react": "^1.24.0",
429
- "next": "^16.2.10",
430
- "react": "^19.2.7",
431
- "react-dom": "^19.2.7",
428
+ "lucide-react": "^1.26.0",
429
+ "next": "^16.2.11",
430
+ "react": "^19.2.8",
431
+ "react-dom": "^19.2.8",
432
432
  "tailwind-merge": "^3.6.0"
433
433
  },
434
434
  "devDependencies": {
435
435
  "@assistant-ui/next": "workspace:*",
436
436
  "@assistant-ui/x-buildutils": "workspace:*",
437
- "@tailwindcss/postcss": "^4.3.2",
437
+ "@tailwindcss/postcss": "^4.3.3",
438
438
  "@types/node": "^26.1.1",
439
439
  "@types/react": "^19.2.17",
440
440
  "@types/react-dom": "^19.2.3",
441
- "postcss": "^8.5.19",
442
- "tailwindcss": "^4.3.2",
441
+ "postcss": "^8.5.23",
442
+ "tailwindcss": "^4.3.3",
443
443
  "tw-animate-css": "^1.4.0",
444
444
  "typescript": "npm:@typescript/typescript6@^6.0.2",
445
445
  "typescript-7": "npm:typescript@^7.0.2"
@@ -320,30 +320,30 @@ export default withAui(nextConfig);
320
320
  "start": "next start"
321
321
  },
322
322
  "dependencies": {
323
- "@ai-sdk/openai": "^4.0.14",
323
+ "@ai-sdk/openai": "^4.0.20",
324
324
  "@assistant-ui/react": "workspace:*",
325
325
  "@assistant-ui/react-ai-sdk": "workspace:*",
326
326
  "@assistant-ui/react-markdown": "workspace:*",
327
327
  "@assistant-ui/ui": "workspace:*",
328
- "ai": "^7.0.28",
328
+ "ai": "^7.0.37",
329
329
  "class-variance-authority": "^0.7.1",
330
330
  "clsx": "^2.1.1",
331
- "lucide-react": "^1.24.0",
332
- "next": "^16.2.10",
333
- "react": "^19.2.7",
334
- "react-dom": "^19.2.7",
331
+ "lucide-react": "^1.26.0",
332
+ "next": "^16.2.11",
333
+ "react": "^19.2.8",
334
+ "react-dom": "^19.2.8",
335
335
  "tailwind-merge": "^3.6.0",
336
336
  "zod": "^4.4.3"
337
337
  },
338
338
  "devDependencies": {
339
339
  "@assistant-ui/next": "workspace:*",
340
340
  "@assistant-ui/x-buildutils": "workspace:*",
341
- "@tailwindcss/postcss": "^4.3.2",
341
+ "@tailwindcss/postcss": "^4.3.3",
342
342
  "@types/node": "^26.1.1",
343
343
  "@types/react": "^19.2.17",
344
344
  "@types/react-dom": "^19.2.3",
345
- "postcss": "^8.5.19",
346
- "tailwindcss": "^4.3.2",
345
+ "postcss": "^8.5.23",
346
+ "tailwindcss": "^4.3.3",
347
347
  "tw-animate-css": "^1.4.0",
348
348
  "typescript": "npm:@typescript/typescript6@^6.0.2",
349
349
  "typescript-7": "npm:typescript@^7.0.2"