本页内容

本页内容

CLI 命令

MCP

openclaw mcp 有两个职责:

  • 使用 openclaw mcp serve 将 OpenClaw 作为 MCP 服务器运行
  • manage OpenClaw- 托管出站 MCP 服务器定义,包括 list、show、status、doctor、probe、add、 set、configure、tools、login、logout、reload 和 unset

serve 是 OpenClaw 作为 MCP 服务器运行。其他子命令则是 OpenClaw 作为 MCP 客户端侧的服务器注册表,供其自身运行时稍后使用。

当 OpenClaw 应该自行托管编码 harness 会话,并将该运行时通过 ACP 路由时,请使用 openclaw acp。

选择合适的 MCP 路径

目标 用途 原因
让外部 MCP 客户端 read/send OpenClaw 通道会话 openclaw mcp serve OpenClaw 是 MCP 服务器,通过 stdio 公开网关支持的对话。
保存第三方 MCP 服务器以供 OpenClaw- 托管代理运行 openclaw mcp add, set, configure, tools, login OpenClaw 是 MCP 客户端注册表,稍后将这些服务器投影到合格的运行时中。
在不运行代理回合的情况下检查已保存的服务器 openclaw mcp status, doctor, probe status 和 doctor 用于检查配置;probe 会打开实时 MCP 连接并列出能力。
从浏览器编辑 MCP 配置 Control UI /settings/mcp(/mcp 别名) 该页面显示清单、启用、OAuth/filter 摘要、命令提示和范围 mcp 编辑器。
为 Codex app-server 提供一个作用域受限的原生 MCP 服务器 mcp.servers.<name>.codex codex 块仅影响 Codex app-server 线程投影,并会在传给原生配置前被剥离。
运行 ACP- 托管harness会话 openclaw acp 和 ACP Agents ACP 桥接模式不接受每会话 MCP 服务器注入;配置 gateway/plugin 桥接器。

MCP 页数

此页是一个索引。 openclaw mcp 有六页,每个读者作业一页。打开与您的任务匹配的页面。

页面 读它的时候
作为 MCP 服务器运行 OpenClaw MCP 客户端应通过 openclaw mcp serve 读取或发送 OpenClaw 通道对话。
管理已保存的MCP服务器 您正在保存、检查或批准用于 OpenClaw- 托管运行的第三方 MCP 服务器。
JSON 输出形状 您正在针对 status --json、doctor --json 或 probe --json 编写脚本。
传输和 OAuth 您需要传输配置字段,或者您正在运行 MCP OAuth 登录流程。
MCP 中的 Control UI 您想要从浏览器编辑或检查 MCP 配置。
MCP Apps 您正在启用或保护 MCP Apps 主机桥。

各部分移动的地方

先前单页版本中的每个锚点仍可在此处解析,因此现有链接(例如 /cli/mcp#bridge-tools)仍然有效。每个条目都指向现在保存内容的页面。

相关内容

本页有帮助吗?