@assistant-ui/mcp-docs-server 0.1.1
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.
- package/.docs/organized/code-examples/local-ollama.md +1135 -0
- package/.docs/organized/code-examples/search-agent-for-e-commerce.md +1721 -0
- package/.docs/organized/code-examples/with-ai-sdk.md +1081 -0
- package/.docs/organized/code-examples/with-cloud.md +1164 -0
- package/.docs/organized/code-examples/with-external-store.md +1064 -0
- package/.docs/organized/code-examples/with-ffmpeg.md +1305 -0
- package/.docs/organized/code-examples/with-langgraph.md +1819 -0
- package/.docs/organized/code-examples/with-openai-assistants.md +1175 -0
- package/.docs/organized/code-examples/with-react-hook-form.md +1727 -0
- package/.docs/organized/code-examples/with-vercel-ai-rsc.md +1157 -0
- package/.docs/raw/blog/2024-07-29-hello/index.mdx +65 -0
- package/.docs/raw/blog/2024-09-11/index.mdx +10 -0
- package/.docs/raw/blog/2024-12-15/index.mdx +10 -0
- package/.docs/raw/blog/2025-01-31-changelog/index.mdx +129 -0
- package/.docs/raw/docs/about-assistantui.mdx +44 -0
- package/.docs/raw/docs/api-reference/context-providers/AssistantRuntimeProvider.mdx +30 -0
- package/.docs/raw/docs/api-reference/context-providers/TextContentPartProvider.mdx +26 -0
- package/.docs/raw/docs/api-reference/integrations/react-hook-form.mdx +103 -0
- package/.docs/raw/docs/api-reference/integrations/vercel-ai-sdk.mdx +145 -0
- package/.docs/raw/docs/api-reference/overview.mdx +583 -0
- package/.docs/raw/docs/api-reference/primitives/ActionBar.mdx +264 -0
- package/.docs/raw/docs/api-reference/primitives/AssistantModal.mdx +129 -0
- package/.docs/raw/docs/api-reference/primitives/Attachment.mdx +96 -0
- package/.docs/raw/docs/api-reference/primitives/BranchPicker.mdx +87 -0
- package/.docs/raw/docs/api-reference/primitives/Composer.mdx +204 -0
- package/.docs/raw/docs/api-reference/primitives/ContentPart.mdx +173 -0
- package/.docs/raw/docs/api-reference/primitives/Error.mdx +70 -0
- package/.docs/raw/docs/api-reference/primitives/Message.mdx +181 -0
- package/.docs/raw/docs/api-reference/primitives/Thread.mdx +197 -0
- package/.docs/raw/docs/api-reference/primitives/composition.mdx +21 -0
- package/.docs/raw/docs/api-reference/runtimes/AssistantRuntime.mdx +33 -0
- package/.docs/raw/docs/api-reference/runtimes/AttachmentRuntime.mdx +46 -0
- package/.docs/raw/docs/api-reference/runtimes/ComposerRuntime.mdx +69 -0
- package/.docs/raw/docs/api-reference/runtimes/ContentPartRuntime.mdx +22 -0
- package/.docs/raw/docs/api-reference/runtimes/MessageRuntime.mdx +49 -0
- package/.docs/raw/docs/api-reference/runtimes/ThreadListItemRuntime.mdx +32 -0
- package/.docs/raw/docs/api-reference/runtimes/ThreadListRuntime.mdx +31 -0
- package/.docs/raw/docs/api-reference/runtimes/ThreadRuntime.mdx +48 -0
- package/.docs/raw/docs/architecture.mdx +92 -0
- package/.docs/raw/docs/cloud/authorization.mdx +152 -0
- package/.docs/raw/docs/cloud/overview.mdx +55 -0
- package/.docs/raw/docs/cloud/persistence/ai-sdk.mdx +54 -0
- package/.docs/raw/docs/cloud/persistence/langgraph.mdx +123 -0
- package/.docs/raw/docs/concepts/architecture.mdx +19 -0
- package/.docs/raw/docs/concepts/runtime-layer.mdx +163 -0
- package/.docs/raw/docs/concepts/why.mdx +9 -0
- package/.docs/raw/docs/copilots/make-assistant-readable.mdx +71 -0
- package/.docs/raw/docs/copilots/make-assistant-tool-ui.mdx +76 -0
- package/.docs/raw/docs/copilots/make-assistant-tool.mdx +117 -0
- package/.docs/raw/docs/copilots/model-context.mdx +135 -0
- package/.docs/raw/docs/copilots/motivation.mdx +191 -0
- package/.docs/raw/docs/copilots/use-assistant-instructions.mdx +62 -0
- package/.docs/raw/docs/getting-started.mdx +1133 -0
- package/.docs/raw/docs/guides/Attachments.mdx +640 -0
- package/.docs/raw/docs/guides/Branching.mdx +59 -0
- package/.docs/raw/docs/guides/Editing.mdx +56 -0
- package/.docs/raw/docs/guides/Speech.mdx +43 -0
- package/.docs/raw/docs/guides/ToolUI.mdx +663 -0
- package/.docs/raw/docs/guides/Tools.mdx +496 -0
- package/.docs/raw/docs/index.mdx +7 -0
- package/.docs/raw/docs/legacy/styled/AssistantModal.mdx +85 -0
- package/.docs/raw/docs/legacy/styled/Decomposition.mdx +633 -0
- package/.docs/raw/docs/legacy/styled/Markdown.mdx +86 -0
- package/.docs/raw/docs/legacy/styled/Scrollbar.mdx +71 -0
- package/.docs/raw/docs/legacy/styled/Thread.mdx +84 -0
- package/.docs/raw/docs/legacy/styled/ThreadWidth.mdx +21 -0
- package/.docs/raw/docs/mcp-docs-server.mdx +324 -0
- package/.docs/raw/docs/migrations/deprecation-policy.mdx +41 -0
- package/.docs/raw/docs/migrations/v0-7.mdx +188 -0
- package/.docs/raw/docs/migrations/v0-8.mdx +160 -0
- package/.docs/raw/docs/migrations/v0-9.mdx +75 -0
- package/.docs/raw/docs/react-compatibility.mdx +208 -0
- package/.docs/raw/docs/runtimes/ai-sdk/rsc.mdx +226 -0
- package/.docs/raw/docs/runtimes/ai-sdk/use-assistant-hook.mdx +195 -0
- package/.docs/raw/docs/runtimes/ai-sdk/use-chat-hook.mdx +138 -0
- package/.docs/raw/docs/runtimes/ai-sdk/use-chat.mdx +136 -0
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +1624 -0
- package/.docs/raw/docs/runtimes/custom/local.mdx +1185 -0
- package/.docs/raw/docs/runtimes/helicone.mdx +60 -0
- package/.docs/raw/docs/runtimes/langgraph/index.mdx +320 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/index.mdx +11 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/introduction.mdx +28 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +120 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +336 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +385 -0
- package/.docs/raw/docs/runtimes/langserve.mdx +126 -0
- package/.docs/raw/docs/runtimes/mastra/full-stack-integration.mdx +218 -0
- package/.docs/raw/docs/runtimes/mastra/overview.mdx +17 -0
- package/.docs/raw/docs/runtimes/mastra/separate-server-integration.mdx +196 -0
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +222 -0
- package/.docs/raw/docs/ui/AssistantModal.mdx +46 -0
- package/.docs/raw/docs/ui/AssistantSidebar.mdx +42 -0
- package/.docs/raw/docs/ui/Attachment.mdx +82 -0
- package/.docs/raw/docs/ui/Markdown.mdx +72 -0
- package/.docs/raw/docs/ui/Mermaid.mdx +79 -0
- package/.docs/raw/docs/ui/Scrollbar.mdx +59 -0
- package/.docs/raw/docs/ui/SyntaxHighlighting.mdx +253 -0
- package/.docs/raw/docs/ui/Thread.mdx +47 -0
- package/.docs/raw/docs/ui/ThreadList.mdx +49 -0
- package/.docs/raw/docs/ui/ToolFallback.mdx +64 -0
- package/.docs/raw/docs/ui/primitives/Thread.mdx +197 -0
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/dist/chunk-C7O7EFKU.js +38 -0
- package/dist/chunk-CZCDQ3YH.js +420 -0
- package/dist/index.js +1 -0
- package/dist/prepare-docs/prepare.js +199 -0
- package/dist/stdio.js +8 -0
- package/package.json +43 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Custom Scrollbar
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
If you want to show a custom scrollbar UI of the Thread.Viewport in place of the system default, you can integrate `@radix-ui/react-scroll-area`.
|
|
6
|
+
An example implementation of this is [shadcn-ui's Scroll Area](https://ui.shadcn.com/docs/components/scroll-area).
|
|
7
|
+
|
|
8
|
+
## Add shadcn Scroll Area
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npx shadcn@latest add scroll-area
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### @radix-ui/react-scroll-area v1.2.0 release candidate required
|
|
15
|
+
|
|
16
|
+
The v1.2.0-rc.x release candidate can be installed via
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pnpm add @radix-ui/react-scroll-area@next
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Additional Styles
|
|
23
|
+
|
|
24
|
+
The radix-ui Viewport component adds an intermediate `<div data-radix-scroll-area-content>` element.
|
|
25
|
+
Add the following CSS to your `globals.css`:
|
|
26
|
+
|
|
27
|
+
```css title="@/app/globals.css"
|
|
28
|
+
.aui-thread-viewport > [data-radix-scroll-area-content] {
|
|
29
|
+
@apply flex flex-col items-center self-stretch bg-inherit;
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Integration
|
|
34
|
+
|
|
35
|
+
- Decompose `Thread` into `MyThread` (see [Decomposition](/docs/legacy/styled/Decomposition))
|
|
36
|
+
- Wrap `Thread.Root` with `<ScrollAreaPrimitive.Root asChild>`
|
|
37
|
+
- Wrap `Thread.Viewport` with `<ScrollAreaPrimitive.Viewport asChild>`
|
|
38
|
+
- Add shadcn's `<ScrollBar />` to `Thread.Root`
|
|
39
|
+
|
|
40
|
+
The resulting MyThread component should look like this:
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import {
|
|
44
|
+
Thread,
|
|
45
|
+
ThreadWelcome,
|
|
46
|
+
Composer,
|
|
47
|
+
type ThreadConfig,
|
|
48
|
+
} from "@assistant-ui/react-ui";
|
|
49
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"; // [!code highlight]
|
|
50
|
+
import { ScrollBar } from "@/components/ui/scroll-area"; // [!code highlight]
|
|
51
|
+
|
|
52
|
+
const MyThread: FC<ThreadConfig> = (config) => {
|
|
53
|
+
return (
|
|
54
|
+
<ScrollAreaPrimitive.Root asChild> /* [!code highlight] */
|
|
55
|
+
<Thread.Root config={config}>
|
|
56
|
+
<ScrollAreaPrimitive.Viewport asChild> /* [!code highlight] */
|
|
57
|
+
<Thread.Viewport>
|
|
58
|
+
<ThreadWelcome />
|
|
59
|
+
<Thread.Messages />
|
|
60
|
+
<Thread.ViewportFooter>
|
|
61
|
+
<Thread.ScrollToBottom />
|
|
62
|
+
<Composer />
|
|
63
|
+
</Thread.ViewportFooter>
|
|
64
|
+
</Thread.Viewport>
|
|
65
|
+
</ScrollAreaPrimitive.Viewport> /* [!code highlight] */
|
|
66
|
+
<ScrollBar /> /* [!code highlight] */
|
|
67
|
+
</Thread.Root>
|
|
68
|
+
</ScrollAreaPrimitive.Root> /* [!code highlight] */
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
```
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Thread
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
import { Steps, Step } from "fumadocs-ui/components/steps";
|
|
6
|
+
import { Tabs, Tab } from "fumadocs-ui/components/tabs";
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The raw message list and message composer UI. Useful for full screen chat use cases.
|
|
11
|
+
|
|
12
|
+
## Getting Started
|
|
13
|
+
|
|
14
|
+
<Steps>
|
|
15
|
+
<Step>
|
|
16
|
+
|
|
17
|
+
### Install `@assistant-ui/react-ui`
|
|
18
|
+
|
|
19
|
+
```sh npm2yarn
|
|
20
|
+
npm install @assistant-ui/react-ui
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
</Step>
|
|
24
|
+
<Step>
|
|
25
|
+
|
|
26
|
+
### Import CSS styles
|
|
27
|
+
|
|
28
|
+
Add the following to your `tailwind.config.ts`:
|
|
29
|
+
|
|
30
|
+
<Tabs items={["Tailwind", "Tailwind + shadcn-ui", "Not using Tailwind"]}>
|
|
31
|
+
|
|
32
|
+
```ts title="/tailwind.config.ts" tab="Tailwind"
|
|
33
|
+
{
|
|
34
|
+
plugins: [
|
|
35
|
+
require("tailwindcss-animate"), // make sure to "npm install tailwindcss-animate"
|
|
36
|
+
require("@assistant-ui/react-ui/tailwindcss")({
|
|
37
|
+
components: ["thread"],
|
|
38
|
+
})
|
|
39
|
+
],
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```ts title="/tailwind.config.ts" tab="Tailwind + shadcn-ui"
|
|
44
|
+
{
|
|
45
|
+
plugins: [
|
|
46
|
+
require("tailwindcss-animate"), // make sure to "npm install tailwindcss-animate"
|
|
47
|
+
require("@assistant-ui/react-ui/tailwindcss")({
|
|
48
|
+
components: ["thread"],
|
|
49
|
+
shadcn: true
|
|
50
|
+
})
|
|
51
|
+
],
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```ts title="/app/layout.tsx" tab="Not using Tailwind"
|
|
56
|
+
import "@assistant-ui/react-ui/styles/index.css";
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
</Tabs>
|
|
60
|
+
|
|
61
|
+
</Step>
|
|
62
|
+
<Step>
|
|
63
|
+
|
|
64
|
+
### Use it in your app
|
|
65
|
+
|
|
66
|
+
```tsx title="/app/page.tsx"
|
|
67
|
+
import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
|
|
68
|
+
import { Thread } from "@assistant-ui/react-ui";
|
|
69
|
+
|
|
70
|
+
const MyApp = () => {
|
|
71
|
+
const runtime = useChatRuntime({
|
|
72
|
+
api: "/api/chat",
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<div className="h-full">
|
|
77
|
+
<Thread runtime={runtime} />
|
|
78
|
+
</div>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
</Step>
|
|
84
|
+
</Steps>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Thread Width
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
You can modify the max width of the thread via the CSS variable `--aui-thread-max-width`.
|
|
6
|
+
|
|
7
|
+
## Wider Thread
|
|
8
|
+
|
|
9
|
+
```css title="@/app/globals.css"
|
|
10
|
+
:root {
|
|
11
|
+
--aui-thread-max-width: 600px;
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Take up the whole screen
|
|
16
|
+
|
|
17
|
+
```css title="@/app/globals.css"
|
|
18
|
+
:root {
|
|
19
|
+
--aui-thread-max-width: infinity;
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "MCP Docs Server"
|
|
3
|
+
description: "Learn how to use the assistant-ui MCP documentation server in your IDE to access documentation and examples directly."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Tabs, Tab } from "fumadocs-ui/components/tabs";
|
|
7
|
+
|
|
8
|
+
`@assistant-ui/mcp-docs-server` provides direct access to assistant-ui's documentation and examples in Cursor, Windsurf, VSCode, Zed, Claude Code, or any other IDE or tool that supports MCP.
|
|
9
|
+
|
|
10
|
+
It has access to comprehensive documentation and complete code examples which your IDE can read to help you build conversational UI components with assistant-ui.
|
|
11
|
+
|
|
12
|
+
The MCP server tools have been designed to allow an agent to query the specific information it needs to complete an assistant-ui related task - for example: implementing chat components, integrating with different runtimes, or understanding component architecture.
|
|
13
|
+
|
|
14
|
+
## How it works
|
|
15
|
+
|
|
16
|
+
Once it's installed in your IDE you can write prompts and assume the agent will understand everything about assistant-ui.
|
|
17
|
+
|
|
18
|
+
### Add features
|
|
19
|
+
|
|
20
|
+
- "Add a chat interface with streaming support to my app"
|
|
21
|
+
- "Implement branching conversations with the BranchPicker component"
|
|
22
|
+
- "Add attachment support to my assistant using the Attachment primitive"
|
|
23
|
+
|
|
24
|
+
### Ask about integrations
|
|
25
|
+
|
|
26
|
+
- "How do I integrate assistant-ui with the Vercel AI SDK?
|
|
27
|
+
Show me a working example for my Next.js app"
|
|
28
|
+
- "Does assistant-ui support React Server Components? How do I use it?"
|
|
29
|
+
- "Can I use assistant-ui with LangGraph? Show me how to set up the runtime"
|
|
30
|
+
|
|
31
|
+
### Debug or update existing code
|
|
32
|
+
|
|
33
|
+
- "My Thread component isn't updating when new messages arrive, what could be wrong?"
|
|
34
|
+
- "How do I customize the styling of the AssistantModal component?"
|
|
35
|
+
- "I need to add tool UI rendering to my assistant, show me how to implement it"
|
|
36
|
+
|
|
37
|
+
**And more** - if you have a question, try asking your IDE and let it look it up for you.
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
Choose your IDE or tool to get started with the assistant-ui MCP docs server.
|
|
42
|
+
|
|
43
|
+
### Claude Code
|
|
44
|
+
|
|
45
|
+
Add the MCP server using the Claude Code CLI:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Add to current project only
|
|
49
|
+
claude mcp add assistant-ui -- npx -y @assistant-ui/mcp-docs-server
|
|
50
|
+
|
|
51
|
+
# Or add globally for all projects
|
|
52
|
+
claude mcp add --scope user assistant-ui -- npx -y @assistant-ui/mcp-docs-server
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
To manage the server:
|
|
56
|
+
```bash
|
|
57
|
+
# View configured servers
|
|
58
|
+
claude mcp list
|
|
59
|
+
|
|
60
|
+
# Get server details
|
|
61
|
+
claude mcp get assistant-ui
|
|
62
|
+
|
|
63
|
+
# Remove the server
|
|
64
|
+
claude mcp remove assistant-ui
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Claude Desktop
|
|
68
|
+
|
|
69
|
+
Add to your Claude Desktop configuration:
|
|
70
|
+
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
71
|
+
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"mcpServers": {
|
|
76
|
+
"assistant-ui": {
|
|
77
|
+
"command": "npx",
|
|
78
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### IDEs
|
|
85
|
+
|
|
86
|
+
For Cursor, Windsurf, VSCode, and Zed, manually add the following configuration:
|
|
87
|
+
|
|
88
|
+
- **Cursor**: Edit `.cursor/mcp.json` in your project root, or `~/.cursor/mcp.json` for global configuration
|
|
89
|
+
- **Windsurf**: Edit `~/.codeium/windsurf/mcp_config.json` (only supports global configuration)
|
|
90
|
+
- **VSCode**: Edit `~/.vscode/mcp.json` in your project root
|
|
91
|
+
- **Zed**: Edit `settings.json` (open via `cmd+,` or `zed: open settings`)
|
|
92
|
+
|
|
93
|
+
### MacOS/Linux
|
|
94
|
+
|
|
95
|
+
{/*
|
|
96
|
+
LLM CONTEXT: This Tabs component shows MCP server configuration for different IDEs on MacOS/Linux.
|
|
97
|
+
Each tab displays the JSON configuration needed to set up the assistant-ui MCP docs server in that specific IDE.
|
|
98
|
+
The tabs help users find the correct configuration format for their IDE (Cursor, Windsurf, VSCode, or Zed).
|
|
99
|
+
Each tab shows the exact JSON structure and file paths needed for that IDE's MCP configuration.
|
|
100
|
+
*/}
|
|
101
|
+
|
|
102
|
+
<Tabs items={["cursor", "windsurf", "vscode", "zed"]}>
|
|
103
|
+
<Tab>
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"mcpServers": {
|
|
107
|
+
"assistant-ui": {
|
|
108
|
+
"command": "npx",
|
|
109
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
</Tab>
|
|
115
|
+
<Tab>
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"mcpServers": {
|
|
119
|
+
"assistant-ui": {
|
|
120
|
+
"command": "npx",
|
|
121
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
</Tab>
|
|
127
|
+
<Tab>
|
|
128
|
+
```json
|
|
129
|
+
{
|
|
130
|
+
"servers": {
|
|
131
|
+
"assistant-ui": {
|
|
132
|
+
"command": "npx",
|
|
133
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"],
|
|
134
|
+
"type": "stdio"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
</Tab>
|
|
140
|
+
<Tab>
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"context_servers": {
|
|
144
|
+
"assistant-ui": {
|
|
145
|
+
"command": {
|
|
146
|
+
"path": "npx",
|
|
147
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"],
|
|
148
|
+
"env": {}
|
|
149
|
+
},
|
|
150
|
+
"settings": {}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
</Tab>
|
|
156
|
+
</Tabs>
|
|
157
|
+
|
|
158
|
+
### Windows
|
|
159
|
+
|
|
160
|
+
{/*
|
|
161
|
+
LLM CONTEXT: This Tabs component shows MCP server configuration for different IDEs on Windows.
|
|
162
|
+
Each tab displays the Windows-specific JSON configuration needed to set up the assistant-ui MCP docs server.
|
|
163
|
+
The tabs help Windows users find the correct configuration format for their IDE, using cmd instead of direct npx.
|
|
164
|
+
Each tab shows the Windows-specific command structure needed for that IDE's MCP configuration.
|
|
165
|
+
On latest Windsurf and Cursor the direct npx command works, while it's still unconfirmed if this has been fixed for VSCode.
|
|
166
|
+
*/}
|
|
167
|
+
|
|
168
|
+
<Tabs items={["cursor", "windsurf", "vscode", "zed"]}>
|
|
169
|
+
<Tab>
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"mcpServers": {
|
|
173
|
+
"assistant-ui": {
|
|
174
|
+
"command": "npx",
|
|
175
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
</Tab>
|
|
181
|
+
<Tab>
|
|
182
|
+
```json
|
|
183
|
+
{
|
|
184
|
+
"mcpServers": {
|
|
185
|
+
"assistant-ui": {
|
|
186
|
+
"command": "npx",
|
|
187
|
+
"args": ["-y", "@assistant-ui/mcp-docs-server"]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
</Tab>
|
|
193
|
+
<Tab>
|
|
194
|
+
```json
|
|
195
|
+
{
|
|
196
|
+
"servers": {
|
|
197
|
+
"assistant-ui": {
|
|
198
|
+
"command": "cmd",
|
|
199
|
+
"args": ["/c", "npx", "-y", "@assistant-ui/mcp-docs-server"],
|
|
200
|
+
"type": "stdio"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
</Tab>
|
|
206
|
+
<Tab>
|
|
207
|
+
```json
|
|
208
|
+
{
|
|
209
|
+
"context_servers": {
|
|
210
|
+
"assistant-ui": {
|
|
211
|
+
"command": {
|
|
212
|
+
"path": "cmd",
|
|
213
|
+
"args": ["/c", "npx", "-y", "@assistant-ui/mcp-docs-server"],
|
|
214
|
+
"env": {}
|
|
215
|
+
},
|
|
216
|
+
"settings": {}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
</Tab>
|
|
222
|
+
</Tabs>
|
|
223
|
+
|
|
224
|
+
## After Configuration
|
|
225
|
+
|
|
226
|
+
### Claude Code
|
|
227
|
+
|
|
228
|
+
The MCP server starts automatically once added. You can verify it's working by mentioning assistant-ui in your prompts - Claude will have direct access to the documentation and examples.
|
|
229
|
+
|
|
230
|
+
### Claude Desktop
|
|
231
|
+
|
|
232
|
+
1. Restart Claude Desktop after updating the configuration
|
|
233
|
+
2. The MCP server will start automatically when Claude Desktop launches
|
|
234
|
+
3. You can verify it's working by asking about assistant-ui - Claude will have direct access to the documentation and examples
|
|
235
|
+
|
|
236
|
+
### Cursor
|
|
237
|
+
|
|
238
|
+
1. Open Cursor settings by pressing `Cmd/Ctrl + ,`
|
|
239
|
+
2. Navigate to the MCP settings section
|
|
240
|
+
3. Find "assistant-ui" in the list of MCP servers and click "enable"
|
|
241
|
+
4. The server should start automatically. You'll see a status indicator showing it's running
|
|
242
|
+
5. If you have an agent chat open, you'll need to re-open it or start a new chat to use the MCP server
|
|
243
|
+
|
|
244
|
+
The MCP server will automatically start whenever you open Cursor. You can verify it's working by mentioning assistant-ui documentation or examples in your prompts - the agent should now have direct access to this information.
|
|
245
|
+
|
|
246
|
+
### Windsurf
|
|
247
|
+
|
|
248
|
+
1. Fully quit and re-open Windsurf
|
|
249
|
+
2. The MCP server should start automatically. You can verify this in the MCP settings panel
|
|
250
|
+
3. If tool calls start failing, go to Windsurf's MCP settings and re-start the MCP server. This is a common Windsurf MCP issue and isn't specific to this server. Currently, Cursor's MCP implementation tends to be more stable than Windsurf's
|
|
251
|
+
|
|
252
|
+
In both IDEs it may take a minute for the MCP server to start the first time as it needs to download the package from npm.
|
|
253
|
+
|
|
254
|
+
### VSCode
|
|
255
|
+
|
|
256
|
+
1. Open VSCode settings by pressing `Cmd/Ctrl + ,`
|
|
257
|
+
2. Search for "MCP" in the settings search bar
|
|
258
|
+
3. Enable the "Chat > MCP" option by checking the checkbox
|
|
259
|
+
4. Open GitHub Copilot Chat and switch to "Agent" mode (MCP only works in Agent mode)
|
|
260
|
+
5. Open the `mcp.json` file and click the "start" button that appears in the editor
|
|
261
|
+
6. Once started, you can click the tools button in the Copilot pane to see available tools
|
|
262
|
+
|
|
263
|
+
The tools button should show "assistantUIDocs" and "assistantUIExamples" as available tools when the server is running correctly.
|
|
264
|
+
|
|
265
|
+
### Zed
|
|
266
|
+
|
|
267
|
+
1. Open Zed settings by pressing `Cmd/Ctrl + ,` or using `zed: open settings`
|
|
268
|
+
2. The MCP server configuration should be in your `settings.json` under the `context_servers` key
|
|
269
|
+
3. The server will start automatically when you use the Assistant Panel
|
|
270
|
+
4. You can also add servers through the Agent Panel's Settings view (accessible via `agent: open configuration`)
|
|
271
|
+
5. In the Assistant Panel, you can verify the server is available by checking the tools dropdown
|
|
272
|
+
|
|
273
|
+
Zed will automatically start the MCP server when needed. The assistant-ui documentation and examples will be available to the AI assistant in your conversations.
|
|
274
|
+
|
|
275
|
+
### Claude Desktop
|
|
276
|
+
|
|
277
|
+
1. Restart Claude Desktop after updating the configuration
|
|
278
|
+
2. The MCP server will start automatically when Claude Desktop launches
|
|
279
|
+
3. You can verify it's working by asking about assistant-ui - Claude will have direct access to the documentation and examples
|
|
280
|
+
|
|
281
|
+
## Available Agent Tools
|
|
282
|
+
|
|
283
|
+
### assistantUIDocs
|
|
284
|
+
|
|
285
|
+
Access assistant-ui's complete documentation:
|
|
286
|
+
|
|
287
|
+
- Getting started guides and installation instructions
|
|
288
|
+
- Component API references (Thread, AssistantModal, Composer, etc.)
|
|
289
|
+
- Runtime documentation (AI SDK, LangGraph, OpenAI Assistants)
|
|
290
|
+
- Integration guides and best practices
|
|
291
|
+
- Architecture and concept explanations
|
|
292
|
+
|
|
293
|
+
### assistantUIExamples
|
|
294
|
+
|
|
295
|
+
Browse complete code examples:
|
|
296
|
+
|
|
297
|
+
- Integration with Vercel AI SDK
|
|
298
|
+
- React Server Components implementation
|
|
299
|
+
- LangGraph runtime setup
|
|
300
|
+
- OpenAI Assistants integration
|
|
301
|
+
- Local Ollama usage
|
|
302
|
+
- External store management
|
|
303
|
+
- React Hook Form integration
|
|
304
|
+
- Tool UI implementation patterns
|
|
305
|
+
|
|
306
|
+
Each example includes full source code, configuration files, and implementation details that can be directly referenced or adapted for your project.
|
|
307
|
+
|
|
308
|
+
## Common Issues
|
|
309
|
+
|
|
310
|
+
1. **Server Not Starting**
|
|
311
|
+
|
|
312
|
+
- Ensure npx is installed and working
|
|
313
|
+
- Check for conflicting MCP servers
|
|
314
|
+
- Verify your configuration file syntax
|
|
315
|
+
- On Windows, make sure to use the Windows-specific configuration
|
|
316
|
+
|
|
317
|
+
2. **Tool Calls Failing**
|
|
318
|
+
- Restart the MCP server and/or your IDE
|
|
319
|
+
- Update to the latest version of your IDE
|
|
320
|
+
|
|
321
|
+
{/*
|
|
322
|
+
Attribution:
|
|
323
|
+
This docs page, and `@assistant-ui/mcp-docs-server`, is inspired by and based on Mastra's excellent mcp docs server and docs page: https://github.com/mastra/mcp-docs-server/blob/main/docs/mcp-docs-server.mdx
|
|
324
|
+
*/}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Deprecation Policy
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
assistant-ui is committed to providing a stable API, so you can spend your time building amazing things on top of it.
|
|
6
|
+
|
|
7
|
+
Rarely, we need to deprecate a feature we've already shipped, because it is causing performance, usability, or security issues.
|
|
8
|
+
In such cases, we will communicate the intent to unship as soon as possible by marking the feature as `@deprecated` and publishing a notice in the documentation.
|
|
9
|
+
|
|
10
|
+
Deprecations and breaking changes primarily affect new features released. The longer an API has been in the library, the less likely it is to be deprecated.
|
|
11
|
+
For features that have long existed in the library, we will provide a longer deprecation notice period (as described below).
|
|
12
|
+
|
|
13
|
+
Below is a list of features considered stable and those considered experimental.
|
|
14
|
+
|
|
15
|
+
## Experimental Features
|
|
16
|
+
|
|
17
|
+
These features may be removed at any time without notice.
|
|
18
|
+
|
|
19
|
+
- Anything marked as `unstable_`, `experimental_`, or `internal`
|
|
20
|
+
- The `RuntimeCore` API (considered internal)
|
|
21
|
+
|
|
22
|
+
## Beta Features
|
|
23
|
+
|
|
24
|
+
A deprecation of these features will undergo a short (<1) month deprecation notice period.
|
|
25
|
+
|
|
26
|
+
- TailwindCSS Plugins (e.g. `@assistant-ui/react-ui/tailwindcss`)
|
|
27
|
+
- Context API
|
|
28
|
+
- Runtime API
|
|
29
|
+
- Message types
|
|
30
|
+
- Styled UI components
|
|
31
|
+
- Primitive Hooks (e.g. useBranchPickerNext)
|
|
32
|
+
- Attachment APIs
|
|
33
|
+
- shadcn/ui styles
|
|
34
|
+
|
|
35
|
+
## Stable Features
|
|
36
|
+
|
|
37
|
+
A deprecation of these features will undergo a long (>3 month) deprecation notice period.
|
|
38
|
+
|
|
39
|
+
The following features are considered stable:
|
|
40
|
+
|
|
41
|
+
- Primitives (except for `AttachmentPrimitive`)
|