Files

49 lines
1.5 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MCPManager 插件配置
# MCP (Model Context Protocol) 服务器管理
[mcp]
# 是否启用 MCP 功能
enabled = true
# 工具超时时间(秒)
tool_timeout = 60
# 服务器启动超时(秒)
server_start_timeout = 30
# 是否在启动时自动连接所有服务器
auto_connect = true
# ==================== MCP 服务器配置 ====================
# 每个 [[mcp.servers]] 定义一个 MCP 服务器
#
# 支持两种类型:
# 1. stdio 类型(本地子进程):需要 command 和 args
# 2. http 类型(远程 HTTP需要 url 和 headers
#
# 参数说明:
# name: 服务器名称(唯一标识)
# type: 传输类型,"stdio" 或 "http"(可选,自动检测)
# command: 启动命令stdio 类型)
# args: 命令参数列表stdio 类型)
# url: HTTP 端点 URLhttp 类型)
# headers: HTTP 请求头http 类型)
# env: 环境变量(可选)
# enabled: 是否启用(可选,默认 true
# tool_prefix: 工具名前缀(可选,避免冲突)
# working_dir: 工作目录可选stdio 类型)
# ==================== 已启用的 MCP 服务器 ====================
# ---------- 智谱 AI Web Reader网页阅读 ----------
[[mcp.servers]]
name = "web-reader"
type = "http"
url = "https://open.bigmodel.cn/api/mcp/web_reader/mcp"
headers = { Authorization = "6dcaa11f2bd94941b46a5ceb3cf2b3ce.UWjeg6FHezV0WSUz" }
enabled = true
tool_prefix = "web"
# ==================== 示例配置(取消注释后使用) ====================