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

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 (112) hide show
  1. package/.docs/organized/code-examples/waterfall.md +15 -17
  2. package/.docs/organized/code-examples/with-a2a.md +19 -19
  3. package/.docs/organized/code-examples/with-ag-ui.md +25 -20
  4. package/.docs/organized/code-examples/with-ai-sdk-v6.md +6 -4
  5. package/.docs/organized/code-examples/with-artifacts.md +34 -28
  6. package/.docs/organized/code-examples/with-assistant-transport.md +59 -47
  7. package/.docs/organized/code-examples/with-browser-extension.md +17 -5
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +376 -78
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +20 -19
  10. package/.docs/organized/code-examples/with-cloud.md +6 -4
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +9 -7
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +18 -16
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +9 -8
  14. package/.docs/organized/code-examples/with-expo.md +23 -17
  15. package/.docs/organized/code-examples/with-external-store.md +4 -2
  16. package/.docs/organized/code-examples/with-ffmpeg.md +317 -280
  17. package/.docs/organized/code-examples/with-generative-ui.md +1018 -214
  18. package/.docs/organized/code-examples/with-google-adk.md +4 -2
  19. package/.docs/organized/code-examples/with-heat-graph.md +8 -6
  20. package/.docs/organized/code-examples/with-image-generation.md +19 -17
  21. package/.docs/organized/code-examples/with-interactables.md +312 -234
  22. package/.docs/organized/code-examples/with-langchain.md +9 -7
  23. package/.docs/organized/code-examples/with-langgraph.md +82 -78
  24. package/.docs/organized/code-examples/with-livekit.md +19 -17
  25. package/.docs/organized/code-examples/with-mcp.md +13 -7
  26. package/.docs/organized/code-examples/with-opencode.md +61 -61
  27. package/.docs/organized/code-examples/with-react-hook-form.md +14 -12
  28. package/.docs/organized/code-examples/with-react-ink.md +2 -2
  29. package/.docs/organized/code-examples/with-react-router.md +11 -9
  30. package/.docs/organized/code-examples/with-resumable-stream.md +10 -9
  31. package/.docs/organized/code-examples/with-store.md +14 -12
  32. package/.docs/organized/code-examples/with-tanstack.md +8 -9
  33. package/.docs/organized/code-examples/with-tap-runtime.md +21 -19
  34. package/.docs/raw/docs/(docs)/architecture.mdx +43 -2
  35. package/.docs/raw/docs/(docs)/cli.mdx +1 -2
  36. package/.docs/raw/docs/(docs)/copilots/model-context.mdx +34 -26
  37. package/.docs/raw/docs/(docs)/copilots/motivation.mdx +32 -26
  38. package/.docs/raw/docs/(docs)/installation.mdx +1 -1
  39. package/.docs/raw/docs/(reference)/api-reference/adapters/persistence.mdx +5 -1
  40. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +14 -14
  41. package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +11 -1
  42. package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +18 -0
  43. package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +33 -0
  44. package/.docs/raw/docs/(reference)/api-reference/generative-ui/spec.mdx +45 -0
  45. package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +41 -41
  46. package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +19 -1
  47. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +122 -122
  48. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +32 -2
  49. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +6 -0
  50. package/.docs/raw/docs/(reference)/api-reference/overview.mdx +4 -6
  51. package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +30 -0
  52. package/.docs/raw/docs/(reference)/api-reference/tools/component-tools.mdx +20 -3
  53. package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +8 -8
  54. package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +52 -4
  55. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +6 -7
  56. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +58 -46
  57. package/.docs/raw/docs/cloud/ai-sdk.mdx +0 -2
  58. package/.docs/raw/docs/guides/chain-of-thought.mdx +7 -9
  59. package/.docs/raw/docs/guides/context-api.mdx +2 -1
  60. package/.docs/raw/docs/guides/index.mdx +3 -12
  61. package/.docs/raw/docs/guides/mentions.mdx +4 -4
  62. package/.docs/raw/docs/guides/slash-commands.mdx +1 -1
  63. package/.docs/raw/docs/guides/suggestions.mdx +1 -1
  64. package/.docs/raw/docs/ink/hooks.mdx +98 -85
  65. package/.docs/raw/docs/ink/migration.mdx +1 -1
  66. package/.docs/raw/docs/ink/primitives.mdx +2 -2
  67. package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +1 -1
  68. package/.docs/raw/docs/integrations/index.mdx +2 -2
  69. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +17 -2
  70. package/.docs/raw/docs/migrations/toolkit-tools.mdx +226 -0
  71. package/.docs/raw/docs/primitives/chain-of-thought.mdx +10 -16
  72. package/.docs/raw/docs/primitives/message.mdx +9 -10
  73. package/.docs/raw/docs/react-native/hooks.mdx +57 -82
  74. package/.docs/raw/docs/react-native/migration.mdx +1 -1
  75. package/.docs/raw/docs/react-native/primitives.mdx +2 -2
  76. package/.docs/raw/docs/runtimes/a2a/client-and-hooks.mdx +3 -0
  77. package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +122 -1
  78. package/.docs/raw/docs/runtimes/concepts/threads.mdx +7 -1
  79. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +18 -7
  80. package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +108 -38
  81. package/.docs/raw/docs/runtimes/langgraph/generative-ui.mdx +2 -2
  82. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +1 -1
  83. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +64 -50
  84. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +98 -86
  85. package/.docs/raw/docs/tools/backend.mdx +136 -0
  86. package/.docs/raw/docs/tools/defining-tools.mdx +413 -0
  87. package/.docs/raw/docs/tools/dynamic-tools.mdx +110 -0
  88. package/.docs/raw/docs/tools/generative-ui.mdx +214 -0
  89. package/.docs/raw/docs/tools/index.mdx +76 -0
  90. package/.docs/raw/docs/{guides → tools}/interactables.mdx +1 -1
  91. package/.docs/raw/docs/{integrations/tools → tools}/mcp.mdx +77 -50
  92. package/.docs/raw/docs/{guides → tools}/multi-agent.mdx +17 -19
  93. package/.docs/raw/docs/tools/tool-ui.mdx +967 -0
  94. package/.docs/raw/docs/{integrations/tools/react-mcp.mdx → tools/user-managed-mcp.mdx} +3 -3
  95. package/.docs/raw/docs/ui/directive-text.mdx +3 -3
  96. package/.docs/raw/docs/ui/mcp-config.mdx +4 -4
  97. package/.docs/raw/docs/ui/part-grouping.mdx +84 -50
  98. package/.docs/raw/docs/ui/reasoning.mdx +4 -5
  99. package/.docs/raw/docs/ui/tool-group.mdx +5 -6
  100. package/.docs/raw/docs/utilities/heat-graph.mdx +1 -1
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/prepare-docs/code-examples.d.ts.map +1 -1
  103. package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
  104. package/dist/utils/paths.d.ts.map +1 -1
  105. package/package.json +3 -3
  106. package/.docs/organized/code-examples/with-parent-id-grouping.md +0 -596
  107. package/.docs/raw/docs/(docs)/copilots/make-assistant-tool-ui.mdx +0 -151
  108. package/.docs/raw/docs/(docs)/copilots/make-assistant-tool.mdx +0 -230
  109. package/.docs/raw/docs/guides/generative-ui.mdx +0 -142
  110. package/.docs/raw/docs/guides/tool-ui.mdx +0 -858
  111. package/.docs/raw/docs/guides/tools.mdx +0 -736
  112. /package/.docs/raw/docs/{guides → tools}/mcp-apps.mdx +0 -0
@@ -277,12 +277,13 @@ export default function Home() {
277
277
  ## next.config.js
278
278
 
279
279
  ```javascript
280
+ import { withAui } from "@assistant-ui/next";
280
281
  /** @type {import('next').NextConfig} */
281
282
  const nextConfig = {
282
283
  transpilePackages: ["@assistant-ui/react", "@assistant-ui/react-google-adk"],
283
284
  };
284
285
 
285
- export default nextConfig;
286
+ export default withAui(nextConfig);
286
287
 
287
288
  ```
288
289
 
@@ -307,7 +308,7 @@ export default nextConfig;
307
308
  "@google/adk": "^1.1.0",
308
309
  "class-variance-authority": "^0.7.1",
309
310
  "clsx": "^2.1.1",
310
- "lucide-react": "^1.16.0",
311
+ "lucide-react": "^1.17.0",
311
312
  "next": "^16.2.6",
312
313
  "react": "^19.2.6",
313
314
  "react-dom": "^19.2.6",
@@ -315,6 +316,7 @@ export default nextConfig;
315
316
  "zod": "^4.4.3"
316
317
  },
317
318
  "devDependencies": {
319
+ "@assistant-ui/next": "workspace:*",
318
320
  "@assistant-ui/x-buildutils": "workspace:*",
319
321
  "@tailwindcss/postcss": "^4.3.0",
320
322
  "@types/node": "^25.9.1",
@@ -77,7 +77,7 @@ export default function Home() {
77
77
  return (
78
78
  <div className="min-h-screen bg-white p-8">
79
79
  <div className="mx-auto max-w-4xl">
80
- <h1 className="mb-6 font-bold text-3xl text-gray-900">
80
+ <h1 className="mb-6 text-3xl font-bold text-gray-900">
81
81
  Activity Graph
82
82
  </h1>
83
83
  <div className="rounded-xl border border-gray-200 bg-white p-6">
@@ -124,7 +124,7 @@ function MonthLabels() {
124
124
  <HeatGraph.MonthLabels>
125
125
  {({ label, totalWeeks }) => (
126
126
  <span
127
- className="absolute text-gray-500 text-xs"
127
+ className="absolute text-xs text-gray-500"
128
128
  style={{ left: `${(label.column / totalWeeks) * 100}%` }}
129
129
  >
130
130
  {HeatGraph.MONTH_SHORT[label.month]}
@@ -140,7 +140,7 @@ function DayLabels() {
140
140
  <div className="flex w-8 shrink-0 flex-col justify-between py-[2px]">
141
141
  <HeatGraph.DayLabels>
142
142
  {({ label }) => (
143
- <span className="flex h-[13px] items-center text-gray-500 text-xs">
143
+ <span className="flex h-[13px] items-center text-xs text-gray-500">
144
144
  {label.row % 2 === 0 ? HeatGraph.DAY_SHORT[label.dayOfWeek] : ""}
145
145
  </span>
146
146
  )}
@@ -159,7 +159,7 @@ function CellGrid() {
159
159
 
160
160
  function CellTooltip() {
161
161
  return (
162
- <HeatGraph.Tooltip className="pointer-events-none whitespace-nowrap rounded-md bg-gray-900 px-3 py-1.5 text-white text-xs shadow-lg">
162
+ <HeatGraph.Tooltip className="pointer-events-none rounded-md bg-gray-900 px-3 py-1.5 text-xs whitespace-nowrap text-white shadow-lg">
163
163
  {({ cell }) => (
164
164
  <>
165
165
  <strong>{cell.count} contributions</strong> on{" "}
@@ -176,7 +176,7 @@ function CellTooltip() {
176
176
 
177
177
  function GraphLegend() {
178
178
  return (
179
- <div className="ml-auto flex items-center gap-1 text-gray-500 text-xs">
179
+ <div className="ml-auto flex items-center gap-1 text-xs text-gray-500">
180
180
  <span>Less</span>
181
181
  <HeatGraph.Legend>
182
182
  {() => (
@@ -245,13 +245,14 @@ export function generateSampleData(
245
245
  ## next.config.ts
246
246
 
247
247
  ```typescript
248
+ import { withAui } from "@assistant-ui/next";
248
249
  import type { NextConfig } from "next";
249
250
 
250
251
  const nextConfig: NextConfig = {
251
252
  /* config options here */
252
253
  };
253
254
 
254
- export default nextConfig;
255
+ export default withAui(nextConfig);
255
256
 
256
257
  ```
257
258
 
@@ -275,6 +276,7 @@ export default nextConfig;
275
276
  "react-dom": "^19.2.6"
276
277
  },
277
278
  "devDependencies": {
279
+ "@assistant-ui/next": "workspace:*",
278
280
  "@assistant-ui/x-buildutils": "workspace:*",
279
281
  "@tailwindcss/postcss": "^4.3.0",
280
282
  "@types/node": "^25.9.1",
@@ -199,7 +199,7 @@ export default function RootLayout({
199
199
  }: Readonly<{ children: React.ReactNode }>) {
200
200
  return (
201
201
  <html lang="en">
202
- <body className="h-dvh bg-background text-foreground">{children}</body>
202
+ <body className="bg-background text-foreground h-dvh">{children}</body>
203
203
  </html>
204
204
  );
205
205
  }
@@ -265,7 +265,7 @@ export default function Home() {
265
265
  return (
266
266
  <main className="mx-auto flex h-full max-w-xl flex-col gap-4 p-6">
267
267
  <header>
268
- <h1 className="font-semibold text-xl">Image Generation</h1>
268
+ <h1 className="text-xl font-semibold">Image Generation</h1>
269
269
  <p className="text-muted-foreground text-sm">
270
270
  Calls a server route that runs <code>ai.generateImage</code> and
271
271
  renders the result with the <code>@assistant-ui/ui</code> Image
@@ -289,7 +289,7 @@ export default function Home() {
289
289
  <button
290
290
  type="submit"
291
291
  disabled={isGenerating || !prompt.trim()}
292
- className="rounded bg-primary px-3 py-2 text-primary-foreground disabled:opacity-50"
292
+ className="bg-primary text-primary-foreground rounded px-3 py-2 disabled:opacity-50"
293
293
  >
294
294
  {isGenerating ? "Generating…" : "Generate"}
295
295
  </button>
@@ -356,12 +356,13 @@ export default function Home() {
356
356
  ## next.config.js
357
357
 
358
358
  ```javascript
359
+ import { withAui } from "@assistant-ui/next";
359
360
  /** @type {import('next').NextConfig} */
360
361
  const nextConfig = {
361
362
  transpilePackages: ["@assistant-ui/react", "@assistant-ui/react-ai-sdk"],
362
363
  };
363
364
 
364
- export default nextConfig;
365
+ export default withAui(nextConfig);
365
366
 
366
367
  ```
367
368
 
@@ -379,28 +380,29 @@ export default nextConfig;
379
380
  "start": "next start"
380
381
  },
381
382
  "dependencies": {
382
- "@ai-sdk/openai": "^3.0.41",
383
+ "@ai-sdk/openai": "^3.0.67",
383
384
  "@assistant-ui/react": "workspace:*",
384
385
  "@assistant-ui/ui": "workspace:*",
385
- "ai": "^6.0.116",
386
+ "ai": "^6.0.193",
386
387
  "class-variance-authority": "^0.7.1",
387
388
  "clsx": "^2.1.1",
388
- "lucide-react": "^0.577.0",
389
- "next": "^16.1.6",
390
- "react": "^19.2.4",
391
- "react-dom": "^19.2.4",
392
- "tailwind-merge": "^3.5.0"
389
+ "lucide-react": "^1.17.0",
390
+ "next": "^16.2.6",
391
+ "react": "^19.2.6",
392
+ "react-dom": "^19.2.6",
393
+ "tailwind-merge": "^3.6.0"
393
394
  },
394
395
  "devDependencies": {
396
+ "@assistant-ui/next": "workspace:*",
395
397
  "@assistant-ui/x-buildutils": "workspace:*",
396
- "@tailwindcss/postcss": "^4.2.1",
397
- "@types/node": "^25.5.0",
398
- "@types/react": "^19.2.14",
398
+ "@tailwindcss/postcss": "^4.3.0",
399
+ "@types/node": "^25.9.1",
400
+ "@types/react": "^19.2.15",
399
401
  "@types/react-dom": "^19.2.3",
400
- "postcss": "^8.5.8",
401
- "tailwindcss": "^4.2.1",
402
+ "postcss": "^8.5.15",
403
+ "tailwindcss": "^4.3.0",
402
404
  "tw-animate-css": "^1.4.0",
403
- "typescript": "^5.9.3"
405
+ "typescript": "^6.0.3"
404
406
  }
405
407
  }
406
408