惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
宝玉的分享
宝玉的分享
V
V2EX
S
SegmentFault 最新的问题
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
L
LangChain Blog
D
Docker
腾讯CDC

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat: improve MCP operator controls (#88536) · openclaw/o...
steipete · 2026-05-31 · via Recent Commits to openclaw:main

@@ -11,12 +11,12 @@ sidebarTitle: "MCP"

1111

`openclaw mcp` has two jobs:

12121313

- run OpenClaw as an MCP server with `openclaw mcp serve`

14-

- manage OpenClaw-owned outbound MCP server definitions with `list`, `show`, `set`, and `unset`

14+

- manage OpenClaw-owned outbound MCP server definitions with `list`, `show`, `status`, `doctor`, `probe`, `add`, `set`, `configure`, `tools`, `login`, `logout`, `reload`, and `unset`

15151616

In other words:

17171818

- `serve` is OpenClaw acting as an MCP server

19-

- `list` / `show` / `set` / `unset` is OpenClaw acting as an MCP client-side registry for other MCP servers its runtimes may consume later

19+

- the other subcommands are OpenClaw acting as an MCP client-side registry for MCP servers its runtimes may consume later

20202121

Use [`openclaw acp`](/cli/acp) when OpenClaw should host a coding harness session itself and route that runtime through ACP.

2222

@@ -348,8 +348,8 @@ For broader testing context, see [Testing](/help/testing).

348348349349

## OpenClaw as an MCP client registry

350350351-

This is the `openclaw mcp list`, `show`, `status`, `probe`, `add`, `set`,

352-

`configure`, `tools`, `login`, `reload`, and `unset` path.

351+

This is the `openclaw mcp list`, `show`, `status`, `doctor`, `probe`, `add`, `set`,

352+

`configure`, `tools`, `login`, `logout`, `reload`, and `unset` path.

353353354354

These commands do not expose OpenClaw over MCP. They manage OpenClaw-owned MCP server definitions under `mcp.servers` in OpenClaw config.

355355

@@ -358,7 +358,11 @@ Those saved definitions are for runtimes that OpenClaw launches or configures la

358358

<AccordionGroup>

359359

<Accordion title="Important behavior">

360360

- these commands only read or write OpenClaw config

361-

- `status`, `list`, `show`, `set`, `configure`, `tools`, `reload`, and `unset` do not connect to the target MCP server

361+

- `status`, `list`, `show`, `doctor` without `--probe`, `set`, `configure`, `tools`, `logout`, `reload`, and `unset` do not connect to the target MCP server

362+

- `login` performs the MCP OAuth network flow for the configured HTTP server and saves the resulting local credentials

363+

- `status --verbose` prints resolved transport, auth, timeout, filter, and parallel-tool-call hints without connecting

364+

- `doctor` checks saved definitions for local setup problems such as missing stdio commands, invalid working directories, missing TLS files, disabled servers, literal sensitive header/env values, and incomplete OAuth authorization

365+

- `doctor --probe` adds the same live connection proof as `probe` after static checks pass

362366

- `probe` connects to the selected server or all configured servers, lists tools, and reports capabilities/diagnostics

363367

- `add` builds a definition from flags and probes before saving unless `--no-probe` is set or OAuth authorization is needed first

364368

- runtime adapters decide which transport shapes they actually support at execution time

@@ -397,27 +401,31 @@ Commands:

397401398402

- `openclaw mcp list`

399403

- `openclaw mcp show [name]`

400-

- `openclaw mcp status`

404+

- `openclaw mcp status [--verbose]`

405+

- `openclaw mcp doctor [name] [--probe]`

401406

- `openclaw mcp probe [name]`

402407

- `openclaw mcp add <name> [flags]`

403408

- `openclaw mcp set <name> <json>`

404409

- `openclaw mcp configure <name> [flags]`

405410

- `openclaw mcp tools <name> [--include csv] [--exclude csv] [--clear]`

406411

- `openclaw mcp login <name> [--code code]`

412+

- `openclaw mcp logout <name>`

407413

- `openclaw mcp reload`

408414

- `openclaw mcp unset <name>`

409415410416

Notes:

411417412418

- `list` sorts server names.

413419

- `show` without a name prints the full configured MCP server object.

414-

- `status` classifies configured transports without connecting.

420+

- `status` classifies configured transports without connecting. `--verbose` includes resolved launch, timeout, OAuth, filter, and parallel-call details.

421+

- `doctor` performs static checks without connecting. Add `--probe` when the command should also verify that enabled servers connect.

415422

- `probe` connects and reports tool counts, resources/prompts support, list-change support, and diagnostics.

416423

- `add` accepts stdio flags such as `--command`, `--arg`, `--env`, and `--cwd`, or HTTP flags such as `--url`, `--transport`, `--header`, `--auth oauth`, TLS, timeout, and tool-selection flags.

417424

- `set` expects one JSON object value on the command line.

418425

- `configure` updates enablement, tool filters, timeouts, OAuth, TLS, and parallel-tool-call hints without replacing the whole server definition.

419426

- `tools` updates per-server tool filters. Include/exclude entries are MCP tool names and simple `*` globs.

420427

- `login` runs the OAuth flow for HTTP servers configured with `auth: "oauth"`. The first run prints an authorization URL; rerun with `--code` after approval.

428+

- `logout` clears stored OAuth credentials for the named server without removing the saved server definition.

421429

- `reload` disposes cached in-process MCP runtimes. Gateway or agent processes in another process still need their own reload or restart path.

422430

- Use `transport: "streamable-http"` for Streamable HTTP MCP servers. `openclaw mcp set` also normalizes CLI-native `type: "http"` to the same canonical config shape for compatibility.

423431

- `unset` fails if the named server does not exist.

@@ -427,7 +435,8 @@ Examples:

427435

```bash

428436

openclaw mcp list

429437

openclaw mcp show context7 --json

430-

openclaw mcp status

438+

openclaw mcp status --verbose

439+

openclaw mcp doctor --probe

431440

openclaw mcp probe context7 --json

432441

openclaw mcp add memory --command npx --arg -y --arg @modelcontextprotocol/server-memory

433442

openclaw mcp set context7 '{"command":"uvx","args":["context7-mcp"]}'

@@ -436,6 +445,7 @@ openclaw mcp set docs '{"url":"https://mcp.example.com","transport":"streamable-

436445

openclaw mcp configure docs --timeout 20 --connect-timeout 5 --include 'search,read_*'

437446

openclaw mcp configure docs --auth oauth --oauth-scope 'docs.read'

438447

openclaw mcp login docs

448+

openclaw mcp logout docs

439449

openclaw mcp unset context7

440450

```

441451

@@ -526,7 +536,7 @@ Example:

526536

}

527537

```

528538529-

Sensitive values in `url` (userinfo) and `headers` are redacted in logs and status output.

539+

Sensitive values in `url` (userinfo) and `headers` are redacted in logs and status output. `openclaw mcp doctor` warns when sensitive-looking `headers` or `env` entries contain literal values, so operators can move those values out of committed config.

530540531541

### Streamable HTTP transport

532542

@@ -568,9 +578,15 @@ Example:

568578

```

569579570580

<Note>

571-

These commands manage saved config only. They do not start the channel bridge, open a live MCP client session, or prove the target server is reachable.

581+

Registry commands do not start the channel bridge. Only `probe` and `doctor --probe` open a live MCP client session to prove the target server is reachable.

572582

</Note>

573583584+

## Control UI

585+586+

The browser Control UI includes a dedicated MCP settings page at `/mcp`. It shows configured server counts, enabled/OAuth/filter summaries, per-server transport rows, enable/disable controls, common CLI commands, and a scoped editor for the `mcp` config section.

587+588+

Use the page for operator edits and quick inventory. Use `openclaw mcp doctor --probe` or `openclaw mcp probe` when you need live server proof.

589+574590

## Current limits

575591576592

This page documents the bridge as shipped today.