Skip to content

Commit 59ef682

Browse files
committed
docs(ecosystem): add line breaks to user message JSON examples in MCP client docs
Add <br/> tags to multi-line JSON content within chat-message User tags to ensure proper line rendering in the documentation. This improves the readability of command examples in the MCP client plugin documentation.
1 parent e6649fe commit 59ef682

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

docs/ecosystem/plugin/mcp-client.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ MCP 协议是 Model Context Protocol 的缩写,是 LangChain 提供的一种
5454
直接调用指令即可:
5555

5656
<chat-panel>
57-
<chat-message nickname="User">chatluna.mcp.add {
58-
"mcpServers": {
59-
"exa": {
60-
"command": "npx",
61-
"args": ["/path/to/exa-mcp-server/build/index.js"],
62-
"env": {
63-
"EXA_API_KEY": "your-api-key-here"
64-
}
65-
}
66-
}
57+
<chat-message nickname="User">chatluna.mcp.add {<br/>
58+
"mcpServers": {<br/>
59+
"exa": {<br/>
60+
"command": "npx",<br/>
61+
"args": ["/path/to/exa-mcp-server/build/index.js"],<br/>
62+
"env": {<br/>
63+
"EXA_API_KEY": "your-api-key-here"<br/>
64+
}<br/>
65+
}<br/>
66+
}<br/>
6767
}</chat-message>
6868
<chat-message nickname="Bot">
6969
成功添加了 1 个 MCP 服务器。
@@ -135,13 +135,13 @@ chatluna.mcp.add <mcpConfig:text>
135135
以下为例子:
136136

137137
<chat-panel>
138-
<chat-message nickname="User">chatluna.mcp.add {
139-
"mcpServers": {
140-
"filesystem": {
141-
"command": "npx",
142-
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]
143-
}
144-
}
138+
<chat-message nickname="User">chatluna.mcp.add {<br/>
139+
"mcpServers": {<br/>
140+
"filesystem": {<br/>
141+
"command": "npx",<br/>
142+
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]<br/>
143+
}<br/>
144+
}<br/>
145145
}</chat-message>
146146
<chat-message nickname="Bot">成功添加了 1 个 MCP 服务器。
147147
</chat-message>
@@ -150,13 +150,13 @@ chatluna.mcp.add <mcpConfig:text>
150150
如果添加的服务器名称已存在,系统会提示是否覆盖:
151151

152152
<chat-panel>
153-
<chat-message nickname="User">chatluna.mcp.add {
154-
"mcpServers": {
155-
"exa": {
156-
"command": "npx",
157-
"args": ["new-server.js"]
158-
}
159-
}
153+
<chat-message nickname="User">chatluna.mcp.add {<br/>
154+
"mcpServers": {<br/>
155+
"exa": {<br/>
156+
"command": "npx",<br/>
157+
"args": ["new-server.js"]<br/>
158+
}<br/>
159+
}<br/>
160160
}</chat-message>
161161
<chat-message nickname="Bot">检测到以下服务器名称已存在:exa<br/>
162162
是否覆盖现有服务器配置?输入 Y 确认,其他任何输入取消。

0 commit comments

Comments
 (0)