Skip to content

Commit 647017c

Browse files
authored
Clarify MCP Client documentation and add timeout details
Updated the MCP Client documentation to clarify the protocol description and added timeout information for tools and server configurations.
1 parent d436ca1 commit 647017c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/ecosystem/plugin/mcp-client.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MCP 协议客户端 (MCP Client)
22

3-
MCP 协议是 Model Context Protocol 的缩写,是 LangChain 提供的一种协议,用于在不同的模型之间传递上下文。
3+
MCP 协议是 Model Context Protocol 的缩写,用于在不同的模型之间传递上下文。
44

55
此插件为 ChatLuna 的 Agent 模式提供了 MCP 协议支持。
66

@@ -249,6 +249,13 @@ MCP 服务器的 JSON 配置。支持与 Claude Desktop 和 Cursor 相同的配
249249
"API_KEY": "your-api-key"
250250
},
251251
"cwd": "/path/to/working/directory"
252+
},
253+
"server-name2": {
254+
"url": "https://mcp.jina.ai/sse",
255+
"headers": {
256+
"Authorization": "Bearer KEY"
257+
},
258+
"timeout": 120,
252259
}
253260
}
254261
}
@@ -260,7 +267,8 @@ MCP 服务器的 JSON 配置。支持与 Claude Desktop 和 Cursor 相同的配
260267
* `args`: 命令参数数组
261268
* `env`: 环境变量对象(可选)
262269
* `cwd`: 当前工作目录(可选)
263-
* `url`: MCP 服务器的 URL(用于 HTTP 类型的服务器,可选)
270+
* `url`: MCP 服务器的 URL(用于 HTTP 或者 SSE 类型的服务器,可选)
271+
* `timeout`: 调用此服务器下所有工具的超时时间,按秒计算,默认 60。
264272

265273
### tools
266274

@@ -274,3 +282,4 @@ MCP 服务器的 JSON 配置。支持与 Claude Desktop 和 Cursor 相同的配
274282
* `name`: 注册到 ChatLuna 的工具名称
275283
* `enabled`: 是否启用此工具(默认为 `true`
276284
* `selector`: 消息内容选择器数组,用于限制工具在特定场景下的使用(默认为空数组)
285+
* `timeout`: 调用此工具的超时时间,按秒计算,默认 60。可以覆盖上面的服务器级别的超时时间。

0 commit comments

Comments
 (0)