File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 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。可以覆盖上面的服务器级别的超时时间。
You can’t perform that action at this time.
0 commit comments