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

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 (107) hide show
  1. package/.docs/organized/code-examples/waterfall.md +1 -1
  2. package/.docs/organized/code-examples/with-a2a.md +2 -2
  3. package/.docs/organized/code-examples/with-ag-ui.md +2 -2
  4. package/.docs/organized/code-examples/with-ai-sdk-v6.md +4 -4
  5. package/.docs/organized/code-examples/with-artifacts.md +4 -4
  6. package/.docs/organized/code-examples/with-assistant-transport.md +70 -54
  7. package/.docs/organized/code-examples/with-browser-extension.md +4 -4
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +40 -89
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +4 -4
  10. package/.docs/organized/code-examples/with-cloud.md +4 -4
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +4 -4
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +6 -6
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +6 -6
  14. package/.docs/organized/code-examples/with-eve.md +343 -0
  15. package/.docs/organized/code-examples/with-expo.md +909 -932
  16. package/.docs/organized/code-examples/with-external-store.md +2 -2
  17. package/.docs/organized/code-examples/with-ffmpeg.md +5 -8
  18. package/.docs/organized/code-examples/with-generative-ui.md +5 -5
  19. package/.docs/organized/code-examples/with-google-adk.md +2 -2
  20. package/.docs/organized/code-examples/with-heat-graph.md +1 -1
  21. package/.docs/organized/code-examples/with-image-generation.md +4 -4
  22. package/.docs/organized/code-examples/with-interactables.md +166 -338
  23. package/.docs/organized/code-examples/with-langchain.md +4 -4
  24. package/.docs/organized/code-examples/with-langgraph.md +20 -157
  25. package/.docs/organized/code-examples/with-livekit.md +6 -6
  26. package/.docs/organized/code-examples/with-mcp.md +4 -4
  27. package/.docs/organized/code-examples/with-opencode.md +3 -3
  28. package/.docs/organized/code-examples/with-pi.md +9 -7
  29. package/.docs/organized/code-examples/with-react-hook-form.md +13 -6
  30. package/.docs/organized/code-examples/with-react-ink-web.md +5 -5
  31. package/.docs/organized/code-examples/with-react-ink.md +1 -1
  32. package/.docs/organized/code-examples/with-react-router.md +10 -10
  33. package/.docs/organized/code-examples/with-resumable-stream.md +5 -5
  34. package/.docs/organized/code-examples/with-store.md +1 -1
  35. package/.docs/organized/code-examples/with-tanstack.md +5 -5
  36. package/.docs/organized/code-examples/with-tap-runtime.md +2 -2
  37. package/.docs/organized/code-examples/with-virtualized-thread.md +44 -24
  38. package/.docs/raw/docs/(docs)/cli.mdx +4 -2
  39. package/.docs/raw/docs/(docs)/devtools.mdx +25 -2
  40. package/.docs/raw/docs/(docs)/index.mdx +5 -2
  41. package/.docs/raw/docs/(docs)/installation.mdx +5 -2
  42. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +16 -16
  43. package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +73 -42
  44. package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +3 -20
  45. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +234 -166
  46. package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +51 -0
  47. package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +4 -1
  48. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +70 -38
  49. package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +30 -0
  50. package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +7 -0
  51. package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +26 -0
  52. package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +15 -0
  53. package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +103 -0
  54. package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +16 -0
  55. package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +56 -0
  56. package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +12 -0
  57. package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +12 -0
  58. package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +14 -0
  59. package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +57 -1
  60. package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +6 -0
  61. package/.docs/raw/docs/(reference)/api-reference/tools/interactables-legacy.mdx +55 -0
  62. package/.docs/raw/docs/(reference)/api-reference/tools/interactables.mdx +151 -0
  63. package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +15 -15
  64. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +20 -20
  65. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +25 -9
  66. package/.docs/raw/docs/guides/headless-composer-input.mdx +113 -0
  67. package/.docs/raw/docs/guides/latex.mdx +28 -22
  68. package/.docs/raw/docs/guides/mentions.mdx +32 -7
  69. package/.docs/raw/docs/guides/slash-commands.mdx +3 -6
  70. package/.docs/raw/docs/guides/speech.mdx +5 -7
  71. package/.docs/raw/docs/guides/virtualization.mdx +77 -7
  72. package/.docs/raw/docs/guides/voice.mdx +3 -2
  73. package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +4 -12
  74. package/.docs/raw/docs/integrations/auth/better-auth.mdx +7 -10
  75. package/.docs/raw/docs/integrations/auth/clerk.mdx +3 -9
  76. package/.docs/raw/docs/integrations/auth/next-auth.mdx +3 -8
  77. package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +8 -5
  78. package/.docs/raw/docs/integrations/index.mdx +5 -12
  79. package/.docs/raw/docs/integrations/observability/helicone.mdx +3 -4
  80. package/.docs/raw/docs/integrations/observability/langfuse.mdx +3 -5
  81. package/.docs/raw/docs/integrations/observability/langsmith.mdx +3 -2
  82. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +4 -3
  83. package/.docs/raw/docs/primitives/composer.mdx +8 -0
  84. package/.docs/raw/docs/primitives/thread.mdx +24 -0
  85. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +21 -0
  86. package/.docs/raw/docs/runtimes/custom/external-store.mdx +54 -0
  87. package/.docs/raw/docs/runtimes/eve/overview.mdx +100 -0
  88. package/.docs/raw/docs/runtimes/eve/quickstart.mdx +143 -0
  89. package/.docs/raw/docs/runtimes/langchain.mdx +386 -18
  90. package/.docs/raw/docs/runtimes/langgraph/quickstart.mdx +1 -1
  91. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +1 -1
  92. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +6 -0
  93. package/.docs/raw/docs/tools/defining-tools.mdx +4 -0
  94. package/.docs/raw/docs/tools/interactables-legacy.mdx +410 -0
  95. package/.docs/raw/docs/tools/interactables.mdx +892 -223
  96. package/.docs/raw/docs/tools/mcp.mdx +4 -4
  97. package/.docs/raw/docs/tools/multi-agent.mdx +5 -0
  98. package/.docs/raw/docs/ui/composer-trigger-popover.mdx +2 -0
  99. package/.docs/raw/docs/ui/file.mdx +1 -1
  100. package/.docs/raw/docs/ui/part-grouping.mdx +38 -0
  101. package/.docs/raw/docs/utilities/react-o11y.mdx +92 -6
  102. package/dist/index.d.ts.map +1 -1
  103. package/dist/index.js +18 -2
  104. package/dist/index.js.map +1 -1
  105. package/package.json +4 -4
  106. package/src/index.ts +14 -6
  107. package/src/tools/tests/mcp-protocol.test.ts +9 -0
@@ -0,0 +1,343 @@
1
+ # Example: with-eve
2
+
3
+ ## agent/agent.ts
4
+
5
+ ```typescript
6
+ import { defineAgent } from "eve";
7
+
8
+ export default defineAgent({
9
+ model: "anthropic/claude-sonnet-4.6",
10
+ });
11
+
12
+ ```
13
+
14
+ ## agent/instructions.md
15
+
16
+ ```markdown
17
+ You are a concise product engineer helping someone explore an Eve-powered assistant-ui app.
18
+
19
+ Prefer concrete answers. When asked about this project, explain that the Next.js app uses `withEve()` from `eve/next` to mount the Eve HTTP channel on the same origin, and the React page uses `useEveAgentRuntime()` from `@assistant-ui/eve` to adapt Eve's `useEveAgent()` state into an assistant-ui runtime.
20
+
21
+ ```
22
+
23
+ ## app/globals.css
24
+
25
+ ```css
26
+ @import "tailwindcss";
27
+ @import "tw-animate-css";
28
+
29
+ @source "../../../packages/ui/src";
30
+
31
+ @custom-variant dark (&:is(.dark *));
32
+
33
+ @theme inline {
34
+ --radius-sm: calc(var(--radius) - 4px);
35
+ --radius-md: calc(var(--radius) - 2px);
36
+ --radius-lg: var(--radius);
37
+ --radius-xl: calc(var(--radius) + 4px);
38
+ --color-background: var(--background);
39
+ --color-foreground: var(--foreground);
40
+ --color-card: var(--card);
41
+ --color-card-foreground: var(--card-foreground);
42
+ --color-popover: var(--popover);
43
+ --color-popover-foreground: var(--popover-foreground);
44
+ --color-primary: var(--primary);
45
+ --color-primary-foreground: var(--primary-foreground);
46
+ --color-secondary: var(--secondary);
47
+ --color-secondary-foreground: var(--secondary-foreground);
48
+ --color-muted: var(--muted);
49
+ --color-muted-foreground: var(--muted-foreground);
50
+ --color-accent: var(--accent);
51
+ --color-accent-foreground: var(--accent-foreground);
52
+ --color-destructive: var(--destructive);
53
+ --color-border: var(--border);
54
+ --color-input: var(--input);
55
+ --color-ring: var(--ring);
56
+ --color-chart-1: var(--chart-1);
57
+ --color-chart-2: var(--chart-2);
58
+ --color-chart-3: var(--chart-3);
59
+ --color-chart-4: var(--chart-4);
60
+ --color-chart-5: var(--chart-5);
61
+ --color-sidebar: var(--sidebar);
62
+ --color-sidebar-foreground: var(--sidebar-foreground);
63
+ --color-sidebar-primary: var(--sidebar-primary);
64
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
65
+ --color-sidebar-accent: var(--sidebar-accent);
66
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
67
+ --color-sidebar-border: var(--sidebar-border);
68
+ --color-sidebar-ring: var(--sidebar-ring);
69
+ }
70
+
71
+ :root {
72
+ --radius: 0.625rem;
73
+ --background: oklch(1 0 0);
74
+ --foreground: oklch(0.141 0.005 285.823);
75
+ --card: oklch(1 0 0);
76
+ --card-foreground: oklch(0.141 0.005 285.823);
77
+ --popover: oklch(1 0 0);
78
+ --popover-foreground: oklch(0.141 0.005 285.823);
79
+ --primary: oklch(0.21 0.006 285.885);
80
+ --primary-foreground: oklch(0.985 0 0);
81
+ --secondary: oklch(0.967 0.001 286.375);
82
+ --secondary-foreground: oklch(0.21 0.006 285.885);
83
+ --muted: oklch(0.967 0.001 286.375);
84
+ --muted-foreground: oklch(0.552 0.016 285.938);
85
+ --accent: oklch(0.967 0.001 286.375);
86
+ --accent-foreground: oklch(0.21 0.006 285.885);
87
+ --destructive: oklch(0.577 0.245 27.325);
88
+ --border: oklch(0.92 0.004 286.32);
89
+ --input: oklch(0.92 0.004 286.32);
90
+ --ring: oklch(0.705 0.015 286.067);
91
+ --chart-1: oklch(0.646 0.222 41.116);
92
+ --chart-2: oklch(0.6 0.118 184.704);
93
+ --chart-3: oklch(0.398 0.07 227.392);
94
+ --chart-4: oklch(0.828 0.189 84.429);
95
+ --chart-5: oklch(0.769 0.188 70.08);
96
+ --sidebar: oklch(0.985 0 0);
97
+ --sidebar-foreground: oklch(0.141 0.005 285.823);
98
+ --sidebar-primary: oklch(0.21 0.006 285.885);
99
+ --sidebar-primary-foreground: oklch(0.985 0 0);
100
+ --sidebar-accent: oklch(0.967 0.001 286.375);
101
+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
102
+ --sidebar-border: oklch(0.92 0.004 286.32);
103
+ --sidebar-ring: oklch(0.705 0.015 286.067);
104
+ }
105
+
106
+ .dark {
107
+ --background: oklch(0.141 0.005 285.823);
108
+ --foreground: oklch(0.985 0 0);
109
+ --card: oklch(0.21 0.006 285.885);
110
+ --card-foreground: oklch(0.985 0 0);
111
+ --popover: oklch(0.21 0.006 285.885);
112
+ --popover-foreground: oklch(0.985 0 0);
113
+ --primary: oklch(0.92 0.004 286.32);
114
+ --primary-foreground: oklch(0.21 0.006 285.885);
115
+ --secondary: oklch(0.274 0.006 286.033);
116
+ --secondary-foreground: oklch(0.985 0 0);
117
+ --muted: oklch(0.274 0.006 286.033);
118
+ --muted-foreground: oklch(0.705 0.015 286.067);
119
+ --accent: oklch(0.274 0.006 286.033);
120
+ --accent-foreground: oklch(0.985 0 0);
121
+ --destructive: oklch(0.704 0.191 22.216);
122
+ --border: oklch(1 0 0 / 10%);
123
+ --input: oklch(1 0 0 / 15%);
124
+ --ring: oklch(0.552 0.016 285.938);
125
+ --chart-1: oklch(0.488 0.243 264.376);
126
+ --chart-2: oklch(0.696 0.17 162.48);
127
+ --chart-3: oklch(0.769 0.188 70.08);
128
+ --chart-4: oklch(0.627 0.265 303.9);
129
+ --chart-5: oklch(0.645 0.246 16.439);
130
+ --sidebar: oklch(0.21 0.006 285.885);
131
+ --sidebar-foreground: oklch(0.985 0 0);
132
+ --sidebar-primary: oklch(0.488 0.243 264.376);
133
+ --sidebar-primary-foreground: oklch(0.985 0 0);
134
+ --sidebar-accent: oklch(0.274 0.006 286.033);
135
+ --sidebar-accent-foreground: oklch(0.985 0 0);
136
+ --sidebar-border: oklch(1 0 0 / 10%);
137
+ --sidebar-ring: oklch(0.552 0.016 285.938);
138
+ }
139
+
140
+ @layer base {
141
+ * {
142
+ @apply border-border outline-ring/50;
143
+ }
144
+ body {
145
+ @apply bg-background text-foreground;
146
+ }
147
+ }
148
+
149
+ ```
150
+
151
+ ## app/layout.tsx
152
+
153
+ ```tsx
154
+ import type { Metadata } from "next";
155
+ import "./globals.css";
156
+
157
+ export const metadata: Metadata = {
158
+ title: "Eve Example",
159
+ description: "Example using @assistant-ui/eve with the eve/next plugin",
160
+ };
161
+
162
+ export default function RootLayout({
163
+ children,
164
+ }: Readonly<{
165
+ children: React.ReactNode;
166
+ }>) {
167
+ return (
168
+ <html lang="en">
169
+ <body className="h-dvh">{children}</body>
170
+ </html>
171
+ );
172
+ }
173
+
174
+ ```
175
+
176
+ ## app/page.tsx
177
+
178
+ ```tsx
179
+ "use client";
180
+
181
+ import { Thread } from "@/components/assistant-ui/thread";
182
+ import {
183
+ AssistantRuntimeProvider,
184
+ Suggestions,
185
+ useAui,
186
+ } from "@assistant-ui/react";
187
+ import { useEveAgentRuntime } from "@assistant-ui/eve";
188
+
189
+ export default function Home() {
190
+ const runtime = useEveAgentRuntime();
191
+ const aui = useAui({
192
+ suggestions: Suggestions([
193
+ {
194
+ title: "Explain Eve",
195
+ label: "and the Next.js plugin",
196
+ prompt:
197
+ "Explain how an Eve agent is mounted into this Next.js app in two short paragraphs.",
198
+ },
199
+ {
200
+ title: "Draft an agent",
201
+ label: "for product support",
202
+ prompt:
203
+ "Draft a concise set of instructions for an Eve agent that helps with product support.",
204
+ },
205
+ ]),
206
+ });
207
+
208
+ return (
209
+ <AssistantRuntimeProvider runtime={runtime} aui={aui}>
210
+ <div className="h-full">
211
+ <Thread />
212
+ </div>
213
+ </AssistantRuntimeProvider>
214
+ );
215
+ }
216
+
217
+ ```
218
+
219
+ ## components.json
220
+
221
+ ```json
222
+ {
223
+ "$schema": "https://ui.shadcn.com/schema.json",
224
+ "style": "new-york",
225
+ "rsc": true,
226
+ "tsx": true,
227
+ "tailwind": {
228
+ "config": "",
229
+ "css": "app/globals.css",
230
+ "baseColor": "zinc",
231
+ "cssVariables": true,
232
+ "prefix": ""
233
+ },
234
+ "aliases": {
235
+ "components": "@/components",
236
+ "utils": "@/lib/utils",
237
+ "ui": "@/components/ui",
238
+ "lib": "@/lib",
239
+ "hooks": "@/hooks"
240
+ },
241
+ "iconLibrary": "lucide",
242
+ "registries": {
243
+ "@assistant-ui": "https://r.assistant-ui.com/{name}.json"
244
+ }
245
+ }
246
+
247
+ ```
248
+
249
+ ## next.config.ts
250
+
251
+ ```typescript
252
+ import { withAui } from "@assistant-ui/next";
253
+ import type { NextConfig } from "next";
254
+ import { withEve } from "eve/next";
255
+
256
+ const nextConfig: NextConfig = {
257
+ transpilePackages: ["@assistant-ui/eve", "@assistant-ui/react"],
258
+ };
259
+
260
+ export default withEve(withAui(nextConfig));
261
+
262
+ ```
263
+
264
+ ## package.json
265
+
266
+ ```json
267
+ {
268
+ "name": "with-eve",
269
+ "version": "0.0.0",
270
+ "private": true,
271
+ "type": "module",
272
+ "scripts": {
273
+ "dev": "next dev",
274
+ "build": "next build",
275
+ "start": "next start"
276
+ },
277
+ "dependencies": {
278
+ "@assistant-ui/eve": "workspace:*",
279
+ "@assistant-ui/react": "workspace:*",
280
+ "@assistant-ui/react-markdown": "workspace:*",
281
+ "@assistant-ui/ui": "workspace:*",
282
+ "class-variance-authority": "^0.7.1",
283
+ "clsx": "^2.1.1",
284
+ "eve": "^0.12.0",
285
+ "lucide-react": "^1.21.0",
286
+ "next": "^16.2.9",
287
+ "react": "^19.2.7",
288
+ "react-dom": "^19.2.7",
289
+ "tailwind-merge": "^3.6.0"
290
+ },
291
+ "devDependencies": {
292
+ "@assistant-ui/next": "workspace:*",
293
+ "@assistant-ui/x-buildutils": "workspace:*",
294
+ "@tailwindcss/postcss": "^4.3.1",
295
+ "@types/node": "^26.0.0",
296
+ "@types/react": "^19.2.17",
297
+ "@types/react-dom": "^19.2.3",
298
+ "postcss": "^8.5.15",
299
+ "tailwindcss": "^4.3.1",
300
+ "tw-animate-css": "^1.4.0",
301
+ "typescript": "^6.0.3"
302
+ }
303
+ }
304
+
305
+ ```
306
+
307
+ ## README.md
308
+
309
+ ```markdown
310
+ # assistant-ui + Eve
311
+
312
+ This example mounts an Eve agent into a Next.js app with `withEve()` from `eve/next`, then adapts Eve's React hook into assistant-ui with `useEveAgentRuntime()`.
313
+
314
+ ```bash
315
+ pnpm --filter with-eve dev
316
+ ```
317
+
318
+ The Eve channel is served on the same origin as the Next app, so the browser UI does not need a separate agent URL.
319
+
320
+ ```
321
+
322
+ ## tsconfig.json
323
+
324
+ ```json
325
+ {
326
+ "extends": "@assistant-ui/x-buildutils/ts/next",
327
+ "compilerOptions": {
328
+ "paths": {
329
+ "@/*": ["./*"],
330
+ "@/components/assistant-ui/*": [
331
+ "../../packages/ui/src/components/assistant-ui/*"
332
+ ],
333
+ "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
334
+ "@/lib/utils": ["../../packages/ui/src/lib/utils"],
335
+ "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
336
+ }
337
+ },
338
+ "include": ["**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
339
+ "exclude": ["node_modules"]
340
+ }
341
+
342
+ ```
343
+