You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: www/apps/book/app/learn/introduction/build-with-llms-ai/page.mdx
+55-44Lines changed: 55 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,50 +18,6 @@ export const metadata = {
18
18
19
19
In this chapter, you'll learn how you can use AI assistants and LLMs effectively in your Medusa development.
20
20
21
-
## AI Assistant in Documentation
22
-
23
-
The Medusa documentation is equipped with an AI Assistant that can answer your questions and help you build customizations with Medusa.
24
-
25
-
### Open the AI Assistant
26
-
27
-
To open the AI Assistant, either:
28
-
29
-
- Use the keyboard shortcut `Ctrl + I` for Windows/Linux, or `Cmd + I` for macOS.
30
-
- Click the <InlineIconIcon={AiAssistent}alt="AI Assistant" /> icon in the top right corner of the documentation.
31
-
32
-
You can then ask the AI Assistant any questions about Medusa, such as:
33
-
34
-
- What is a workflow?
35
-
- How to create a product review module?
36
-
- How to update Medusa?
37
-
- How to fix this error?
38
-
39
-
The AI Assistant will provide you with relevant documentation links, code snippets, and explanations to help you with your development.
40
-
41
-
### Ask About Code Snippets
42
-
43
-
While browsing the documentation, you'll find a <InlineIconIcon={AiAssistentLuminosity}alt="AI Assistant" /> icon in the header of code snippets. You can click this icon to ask the AI Assistant about the code snippet.
44
-
45
-
The AI Assistant will analyze the code and provide explanations, usage examples, and any additional information you need to understand how the code works.
46
-
47
-
### Ask About Documentation Pages
48
-
49
-
If you need more help understanding a specific documentation page, you can click the "Explain with AI Assistant" link in the page's right sidebar. This will open the AI Assistant and provide context about the current page, allowing you to ask questions related to the content.
50
-
51
-
### Formatting and Code Blocks
52
-
53
-
In your questions to the AI Assistant, you can format code blocks by wrapping them in triple backticks (```). For example:
54
-
55
-
~~~markdown
56
-
```
57
-
console.log("Hello, World!")
58
-
```
59
-
~~~
60
-
61
-
You can add new lines using the `Shift + Enter` shortcut.
62
-
63
-
---
64
-
65
21
## MCP Remote Server
66
22
67
23
The Medusa documentation provides a remote Model Context Protocol (MCP) server that allows you to find information from the Medusa documentation right in your IDEs or AI tools, such as Cursor.
After connecting to the Medusa MCP server in your AI tool or IDE, you can start asking questions or requesting your AI assistant to build Medusa customizations. It will fetch the relevant information from the Medusa documentation and provide you with accurate answers, code snippets, and explanations.
86
+
87
+
For example, you can ask:
88
+
89
+
1. "Create a Product Review module for Medusa. Refer to the Medusa documentation for information."
90
+
2. "How to update Medusa to the latest version?"
91
+
3. "Explain the Medusa workflow system."
92
+
4. "Integrate Medusa with X provider. Refer to the Medusa documentation for information."
93
+
94
+
---
95
+
96
+
## AI Assistant in Documentation
97
+
98
+
The Medusa documentation is equipped with an AI Assistant that can answer your questions and help you build customizations with Medusa.
99
+
100
+
### Open the AI Assistant
101
+
102
+
To open the AI Assistant, either:
103
+
104
+
- Use the keyboard shortcut `Ctrl + I` for Windows/Linux, or `Cmd + I` for macOS.
105
+
- Click the <InlineIconIcon={AiAssistent}alt="AI Assistant" /> icon in the top right corner of the documentation.
106
+
107
+
You can then ask the AI Assistant any questions about Medusa, such as:
108
+
109
+
- What is a workflow?
110
+
- How to create a product review module?
111
+
- How to update Medusa?
112
+
- How to fix this error?
113
+
114
+
The AI Assistant will provide you with relevant documentation links, code snippets, and explanations to help you with your development.
115
+
116
+
### Ask About Code Snippets
117
+
118
+
While browsing the documentation, you'll find a <InlineIconIcon={AiAssistentLuminosity}alt="AI Assistant" /> icon in the header of code snippets. You can click this icon to ask the AI Assistant about the code snippet.
119
+
120
+
The AI Assistant will analyze the code and provide explanations, usage examples, and any additional information you need to understand how the code works.
121
+
122
+
### Ask About Documentation Pages
123
+
124
+
If you need more help understanding a specific documentation page, you can click the "Explain with AI Assistant" link in the page's right sidebar. This will open the AI Assistant and provide context about the current page, allowing you to ask questions related to the content.
125
+
126
+
### Formatting and Code Blocks
127
+
128
+
In your questions to the AI Assistant, you can format code blocks by wrapping them in triple backticks (```). For example:
129
+
130
+
~~~markdown
131
+
```
132
+
console.log("Hello, World!")
133
+
```
134
+
~~~
135
+
136
+
You can add new lines using the `Shift + Enter` shortcut.
Copy file name to clipboardExpand all lines: www/apps/book/public/llms-full.txt
+45-34Lines changed: 45 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -25870,6 +25870,51 @@ The following diagram illustrates Medusa's architecture including all its layers
25870
25870
25871
25871
In this chapter, you'll learn how you can use AI assistants and LLMs effectively in your Medusa development.
25872
25872
25873
+
## MCP Remote Server
25874
+
25875
+
The Medusa documentation provides a remote Model Context Protocol (MCP) server that allows you to find information from the Medusa documentation right in your IDEs or AI tools, such as Cursor.
25876
+
25877
+
Medusa hosts a Streamable HTTP MCP server available at `https://docs.medusajs.com/mcp`. you can add it to AI agents that support connecting to MCP servers.
25878
+
25879
+
### Cursor
25880
+
25881
+
<Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=medusa&config=eyJ1cmwiOiJodHRwczovL2RvY3MubWVkdXNhanMuY29tL21jcCJ9" target="_blank" rel="noopener noreferrer" variant="content">Click here</Link> to add the Medusa MCP server to Cursor.
25882
+
25883
+
To manually connect to the Medusa MCP server in Cursor, add the following to your `.cursor/mcp.json` file or Cursor settings, as explained in the [Cursor documentation](https://docs.cursor.com/context/model-context-protocol):
25884
+
25885
+
```json
25886
+
{
25887
+
"mcpServers": {
25888
+
"medusa": {
25889
+
"url": "https://docs.medusajs.com/mcp"
25890
+
}
25891
+
}
25892
+
}
25893
+
```
25894
+
25895
+
### VSCode
25896
+
25897
+
To manually connect to the Medusa MCP server in Claude Code, run the following command in your terminal:
25898
+
25899
+
```sh
25900
+
claude mcp add --transport http medusa https://docs.medusajs.com/mcp
25901
+
```
25902
+
25903
+
### Claude Code
25904
+
25905
+
### How to Use the MCP Server
25906
+
25907
+
After connecting to the Medusa MCP server in your AI tool or IDE, you can start asking questions or requesting your AI assistant to build Medusa customizations. It will fetch the relevant information from the Medusa documentation and provide you with accurate answers, code snippets, and explanations.
25908
+
25909
+
For example, you can ask:
25910
+
25911
+
1. "Create a Product Review module for Medusa. Refer to the Medusa documentation for information."
25912
+
2. "How to update Medusa to the latest version?"
25913
+
3. "Explain the Medusa workflow system."
25914
+
4. "Integrate Medusa with X provider. Refer to the Medusa documentation for information."
25915
+
25916
+
***
25917
+
25873
25918
## AI Assistant in Documentation
25874
25919
25875
25920
The Medusa documentation is equipped with an AI Assistant that can answer your questions and help you build customizations with Medusa.
@@ -25914,40 +25959,6 @@ You can add new lines using the `Shift + Enter` shortcut.
25914
25959
25915
25960
***
25916
25961
25917
-
## MCP Remote Server
25918
-
25919
-
The Medusa documentation provides a remote Model Context Protocol (MCP) server that allows you to find information from the Medusa documentation right in your IDEs or AI tools, such as Cursor.
25920
-
25921
-
Medusa hosts a Streamable HTTP MCP server available at `https://docs.medusajs.com/mcp`. you can add it to AI agents that support connecting to MCP servers.
25922
-
25923
-
### Cursor
25924
-
25925
-
<Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=medusa&config=eyJ1cmwiOiJodHRwczovL2RvY3MubWVkdXNhanMuY29tL21jcCJ9" target="_blank" rel="noopener noreferrer" variant="content">Click here</Link> to add the Medusa MCP server to Cursor.
25926
-
25927
-
To manually connect to the Medusa MCP server in Cursor, add the following to your `.cursor/mcp.json` file or Cursor settings, as explained in the [Cursor documentation](https://docs.cursor.com/context/model-context-protocol):
25928
-
25929
-
```json
25930
-
{
25931
-
"mcpServers": {
25932
-
"medusa": {
25933
-
"url": "https://docs.medusajs.com/mcp"
25934
-
}
25935
-
}
25936
-
}
25937
-
```
25938
-
25939
-
### VSCode
25940
-
25941
-
To manually connect to the Medusa MCP server in Claude Code, run the following command in your terminal:
25942
-
25943
-
```sh
25944
-
claude mcp add --transport http medusa https://docs.medusajs.com/mcp
25945
-
```
25946
-
25947
-
### Claude Code
25948
-
25949
-
***
25950
-
25951
25962
## Plain Text Documentation
25952
25963
25953
25964
The Medusa documentation is available in plain text format, which allows LLMs and AI tools to easily parse and understand the content.
0 commit comments