@assistant-ui/mcp-docs-server 0.1.3 → 0.1.4
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 +7 -7
- package/.docs/organized/code-examples/search-agent-for-e-commerce.md +9 -9
- package/.docs/organized/code-examples/with-ai-sdk.md +7 -7
- package/.docs/organized/code-examples/with-cloud.md +7 -7
- package/.docs/organized/code-examples/with-external-store.md +6 -6
- package/.docs/organized/code-examples/with-ffmpeg.md +10 -10
- package/.docs/organized/code-examples/with-langgraph.md +10 -10
- package/.docs/organized/code-examples/with-openai-assistants.md +7 -7
- package/.docs/organized/code-examples/with-react-hook-form.md +10 -10
- package/.docs/organized/code-examples/with-vercel-ai-rsc.md +7 -7
- package/.docs/raw/docs/api-reference/context-providers/{TextContentPartProvider.mdx → TextMessagePartProvider.mdx} +3 -3
- package/.docs/raw/docs/api-reference/integrations/react-hook-form.mdx +2 -2
- package/.docs/raw/docs/api-reference/overview.mdx +23 -23
- package/.docs/raw/docs/api-reference/primitives/Error.mdx +5 -3
- package/.docs/raw/docs/api-reference/primitives/Message.mdx +32 -0
- package/.docs/raw/docs/api-reference/primitives/{ContentPart.mdx → MessagePart.mdx} +41 -41
- package/.docs/raw/docs/api-reference/runtimes/MessagePartRuntime.mdx +22 -0
- package/.docs/raw/docs/api-reference/runtimes/ThreadListRuntime.mdx +1 -0
- package/.docs/raw/docs/api-reference/runtimes/ThreadRuntime.mdx +1 -0
- package/.docs/raw/docs/concepts/runtime-layer.mdx +7 -7
- package/.docs/raw/docs/copilots/make-assistant-tool-ui.mdx +22 -13
- package/.docs/raw/docs/copilots/make-assistant-tool.mdx +20 -14
- package/.docs/raw/docs/getting-started.mdx +11 -10
- package/.docs/raw/docs/guides/Attachments.mdx +24 -21
- package/.docs/raw/docs/guides/ToolUI.mdx +45 -8
- package/.docs/raw/docs/migrations/v0-11.mdx +169 -0
- package/.docs/raw/docs/migrations/v0-7.mdx +8 -8
- package/.docs/raw/docs/migrations/v0-8.mdx +14 -14
- package/.docs/raw/docs/migrations/v0-9.mdx +3 -3
- package/.docs/raw/docs/runtimes/ai-sdk/rsc.mdx +2 -2
- package/.docs/raw/docs/runtimes/ai-sdk/use-assistant-hook.mdx +1 -1
- package/.docs/raw/docs/runtimes/ai-sdk/use-chat-hook.mdx +2 -2
- package/.docs/raw/docs/runtimes/ai-sdk/use-chat.mdx +2 -2
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +5 -5
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +2 -2
- package/.docs/raw/docs/ui/Attachment.mdx +5 -2
- package/.docs/raw/docs/ui/Markdown.mdx +2 -3
- package/.docs/raw/docs/ui/ToolFallback.mdx +2 -2
- package/package.json +5 -5
- package/.docs/raw/docs/api-reference/runtimes/ContentPartRuntime.mdx +0 -22
|
@@ -30,7 +30,7 @@ This adds a `/components/assistant-ui/markdown-text.tsx` file to your project, w
|
|
|
30
30
|
|
|
31
31
|
### Use it in your application
|
|
32
32
|
|
|
33
|
-
Pass the `MarkdownText` component to the `MessagePrimitive.
|
|
33
|
+
Pass the `MarkdownText` component to the `MessagePrimitive.Parts` component
|
|
34
34
|
|
|
35
35
|
```tsx twoslash title="/components/assistant-ui/thread.tsx" {1,11}
|
|
36
36
|
// @filename: /components/assistant-ui/markdown-text.tsx
|
|
@@ -52,7 +52,7 @@ const AssistantMessage: FC = () => {
|
|
|
52
52
|
return (
|
|
53
53
|
<MessagePrimitive.Root className="...">
|
|
54
54
|
<div className="...">
|
|
55
|
-
<MessagePrimitive.
|
|
55
|
+
<MessagePrimitive.Parts components={{ Text: MarkdownText }} />
|
|
56
56
|
</div>
|
|
57
57
|
<AssistantActionBar />
|
|
58
58
|
|
|
@@ -69,4 +69,3 @@ const AssistantMessage: FC = () => {
|
|
|
69
69
|
## Syntax highlighting
|
|
70
70
|
|
|
71
71
|
Syntax Highlighting is not included by default, see [Syntax Highlighting](/docs/ui/SyntaxHighlighting) to learn how to add it.
|
|
72
|
-
|
|
@@ -26,7 +26,7 @@ This adds a `/components/assistant-ui/tool-fallback.tsx` file to your project, w
|
|
|
26
26
|
|
|
27
27
|
### Use it in your application
|
|
28
28
|
|
|
29
|
-
Pass the `ToolFallback` component to the `MessagePrimitive.
|
|
29
|
+
Pass the `ToolFallback` component to the `MessagePrimitive.Parts` component
|
|
30
30
|
|
|
31
31
|
```tsx twoslash title="/components/assistant-ui/thread.tsx" {1,11}
|
|
32
32
|
// @filename: /components/assistant-ui/tool-fallback.tsx
|
|
@@ -48,7 +48,7 @@ const AssistantMessage: FC = () => {
|
|
|
48
48
|
return (
|
|
49
49
|
<MessagePrimitive.Root className="...">
|
|
50
50
|
<div className="...">
|
|
51
|
-
<MessagePrimitive.
|
|
51
|
+
<MessagePrimitive.Parts
|
|
52
52
|
components={{ tools: { Fallback: ToolFallback } }}
|
|
53
53
|
/>
|
|
54
54
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assistant-ui/mcp-docs-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "MCP server for assistant-ui documentation and examples",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
"assistant-ui-mcp": "./dist/stdio.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
12
|
-
"zod": "^3.25.
|
|
11
|
+
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
12
|
+
"zod": "^3.25.67",
|
|
13
13
|
"gray-matter": "^4.0.3",
|
|
14
14
|
"cross-env": "^7.0.3"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/node": "^24.0.
|
|
17
|
+
"@types/node": "^24.0.4",
|
|
18
18
|
"tsup": "^8.5.0",
|
|
19
19
|
"tsx": "^4.20.3",
|
|
20
20
|
"typescript": "^5.8.3",
|
|
21
|
-
"vitest": "^3.2.
|
|
21
|
+
"vitest": "^3.2.4",
|
|
22
22
|
"eslint": "^9.29.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: ContentPartRuntime
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
import { ParametersTable } from "@/components/docs";
|
|
6
|
-
import { ContentPartState } from "@/components/docs/parameters/context";
|
|
7
|
-
|
|
8
|
-
### `useContentPart`
|
|
9
|
-
|
|
10
|
-
Access the content part state:
|
|
11
|
-
|
|
12
|
-
```tsx
|
|
13
|
-
import { useContentPart } from "@assistant-ui/react";
|
|
14
|
-
|
|
15
|
-
const part = useContentPart();
|
|
16
|
-
const partState = useContentPart.getState();
|
|
17
|
-
|
|
18
|
-
const status = useContentPart((m) => m.status);
|
|
19
|
-
const statusAgain = useContentPart.getState().status;
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
<ParametersTable {...ContentPartState} />
|