openclaw-mcp-plugin
OpenClaw插件,将工具调用路由到可流式HTTP MCP服务器(通过URL配置)。
需要OpenClaw的新插件SDK运行时(此包外部化 openclaw/* 导入并期望主机提供它们)和Node.js >=22.
通过以下方式从MCP服务器发现工具 listTools() 并在OpenClaw中动态注册。
配置
通过设置 plugins.entries.openclaw-mcp-plugin.config:
mcpUrl(字符串):MCP服务器端点。违约:http://127.0.0.1:12306/mcptransport(auto|streamable-http|sse):交通偏好。违约:autoclientName(string):显示给服务器的可选MCP客户端名称
安装
openclaw plugins install --pin openclaw-mcp-plugin
openclaw plugins enable openclaw-mcp-plugin
openclaw config set 'plugins.entries["openclaw-mcp-plugin"].config.mcpUrl' "http://127.0.0.1:12306/mcp"