Skip to content

fix(cli): clarify mcp list registry scope - #87487

Merged
steipete merged 1 commit into
openclaw:mainfrom
Alix-007:issue-65209-mcp-list-scope
Jun 17, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
Alix-007:issue-65209-mcp-list-scope

Conversation

@Alix-007

@Alix-007 Alix-007 commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #65209

Summary

  • label human-readable openclaw mcp list output as OpenClaw-managed mcp.servers config
  • add a visible note that openclaw mcp list does not include mcporter servers from config/mcporter.json
  • clarify the matching MCP CLI docs
  • keep --json output unchanged
  • clean up a current-base scripts lint false positive so the refreshed lint shard can pass

Real behavior proof

  • Behavior or issue addressed: openclaw mcp list now makes the OpenClaw-managed mcp.servers registry scope visible in normal terminal output, so users do not mistake it for a combined OpenClaw + mcporter listing.
  • Real environment tested: Local OpenClaw checkout /media/vdc/0668001470/workSpace/claw-campaign/openclaw-issue-65209 on Linux with Node v22.22.0, using a temporary OPENCLAW_HOME / OPENCLAW_STATE_DIR and the repository CLI registration path.
  • Exact steps or command run after this patch: Created a temporary OpenClaw home, registered the real mcp CLI command with Commander, ran mcp set context7 {"command":"uvx","args":["context7-mcp"]}, then ran mcp list from the same process.
  • Evidence after fix: Terminal output from the real local run:
Saved MCP server "context7" to /media/vdc/0668001470/tmp/tmp.043Dur88cs/.openclaw/openclaw.json.
OpenClaw-managed MCP servers (/media/vdc/0668001470/tmp/tmp.043Dur88cs/.openclaw/openclaw.json):
- context7

Note: this command only shows OpenClaw-managed mcp.servers entries and does not include mcporter servers from config/mcporter.json.
  • Observed result after fix: The real CLI output identifies the listed servers as OpenClaw-managed and explicitly says mcporter servers from config/mcporter.json are not included.
  • What was not tested: I did not run mcporter list; this PR intentionally leaves behavior unchanged and only clarifies openclaw mcp output/docs.

Supplemental checks

  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.json --pretty false --noEmit
  • node_modules/.bin/oxfmt --check src/cli/mcp-cli.ts src/cli/mcp-cli.test.ts docs/cli/mcp.md
  • node_modules/.bin/oxfmt --check src/cli/mcp-cli.ts src/cli/mcp-cli.test.ts docs/cli/mcp.md scripts/check-cli-startup-memory.mjs
  • node_modules/.bin/oxlint --tsconfig config/tsconfig/oxlint.core.json src/cli/mcp-cli.ts src/cli/mcp-cli.test.ts
  • node_modules/.bin/oxlint --tsconfig config/tsconfig/oxlint.scripts.json scripts/check-cli-startup-memory.mjs
  • node scripts/run-oxlint-shards.mjs --only=scripts --threads=8
  • node scripts/check-docs-mdx.mjs docs/cli/mcp.md
  • git diff --check origin/main...HEAD

Note: the local git hook attempted pnpm install in this symlinked-node_modules worktree and failed with ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY, so the commit was made with --no-verify after the manual checks above.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes size: S proof: supplied External PR includes structured after-fix real behavior proof. labels May 28, 2026
@clawsweeper

clawsweeper Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper review: did not complete due to Codex infrastructure failure. Reviewed June 16, 2026, 11:04 PM ET / 03:04 UTC.

Summary
Review failed before ClawSweeper could summarize the requested change.

PR surface: Source +8, Tests +20, Docs +4. Total +32 across 3 files.

Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: migration/backfill/repair: docs/cli/mcp.md. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Not assessed.
Failure reason: invalid structured output.

This is a ClawSweeper/Codex infrastructure failure, not a PR readiness or patch-quality verdict.
Keep any merge decision on the normal maintainer review path until ClawSweeper can complete a fresh review.

Risk before merge

  • [P1] No close action taken because the review did not complete.

Maintainer options:

  1. Decide the mitigation before merge
    Retry the Codex review after fixing the execution failure.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • Review did not complete, so no work-lane recommendation was made.
Review details

Best possible solution:

Retry the Codex review after fixing the execution failure.

Do we have a high-confidence way to reproduce the issue?

Unclear. The review failed before ClawSweeper could establish a reproduction path.

Is this the best way to solve the issue?

Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 80238595ed4e.

Label changes

Label changes:

  • remove P3: Current review triage priority is none.
  • remove rating: 🦞 diamond lobster: Current review failed before PR readiness was assessed, so no rating label should remain.
  • remove status: 👀 ready for maintainer look: Current PR status no longer selects a status label.
Evidence reviewed

PR surface:

Source +8, Tests +20, Docs +4. Total +32 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 17 9 +8
Tests 1 21 1 +20
Docs 1 6 2 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 44 12 +32

What I checked:

  • failure reason: invalid structured output.
  • codex failure detail: Codex review failed for this PR with exit 0 and wrote invalid JSON or schema-invalid output to /home/runner/work/clawsweeper/clawsweeper/artifacts/event/codex/87487.json: decision.rootCauseCluster.currentItemRelationship fixed_by_candidate requires a canonical PR.
  • codex stderr: No stderr captured.
  • codex stdout: ","src/config/mcp-config.ts","src/cli/mcp-cli.test.ts"],"confidence":"high"},{"person":"steipete","role":"recent MCP docs and CLI area contributor","reason":"Commits 71f37a5 and 048a4e4 added and clarified the MCP CLI docs/server-client modes that this PR updates.","commits":["71f37a59cacf6e287c819a04c02c525b75729367","048a4e4f9e11220e68bc41a840589902bcbc464f"],"files":["docs/cli/mcp.md","src/cli/mcp-cli.ts"],"confidence":"high"},{"person":"jason-allen-oneal","role":"recent adjacent CLI/config contributor","reason":"The current blame boundary for the reviewed MCP CLI/config/doc lines points at commit 94a4a3f, a recent CLI runtime change, making this a useful recent routing signal but not the original behavior source.","commits":["94a4a3fbc4745bf398d7df42c2882050450a40d6"],"files":["src/cli/mcp-cli.ts","src/config/mcp-config.ts","docs/cli/mcp.md"],"conf.

Likely related people:

  • unknown: Codex failed before it could trace repository history. (role: review did not complete; confidence: low)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels May 28, 2026
@clawsweeper

clawsweeper Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

✨ Hatched: 🥚 common Gilded Lint Imp

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.

Rarity: 🥚 common.
Trait: sparkles near resolved comments.
Image traits: location CI tidepool; accessory little merge flag; palette plum, gold, and soft gray; mood sparkly; pose curling around a status light; shell matte ceramic shell; lighting soft studio lighting; background delicate sparkle particles.
Share on X: post this hatch
Copy: My PR egg hatched a 🥚 common Gilded Lint Imp in ClawSweeper.

What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@Alix-007
Alix-007 force-pushed the issue-65209-mcp-list-scope branch from 10b66a1 to 1029ff3 Compare May 28, 2026 03:11
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed size: S proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 28, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels May 28, 2026
@Alix-007
Alix-007 force-pushed the issue-65209-mcp-list-scope branch from 1029ff3 to 884d96f Compare May 28, 2026 03:26
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 28, 2026
@Alix-007

Copy link
Copy Markdown
Contributor Author

CI is now clean on head 884d96f6fe; check-lint and check-guards both pass after the current-base scripts lint cleanup. @clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels May 28, 2026
@Alix-007

Alix-007 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

At ready for maintainer look with proof: sufficient. Small and low-risk — happy to rebase onto latest main or address any feedback whenever a maintainer has a moment. Thanks!

@Alix-007
Alix-007 force-pushed the issue-65209-mcp-list-scope branch from 868c885 to da1b42c Compare June 4, 2026 07:25
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 4, 2026
@Alix-007
Alix-007 force-pushed the issue-65209-mcp-list-scope branch from da1b42c to 868c885 Compare June 4, 2026 07:33
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 4, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 5, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 5, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 14, 2026
@Alix-007
Alix-007 force-pushed the issue-65209-mcp-list-scope branch from c21e3c1 to 2843e13 Compare June 17, 2026 02:32
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 17, 2026
@clawsweeper clawsweeper Bot removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 17, 2026
@Alix-007
Alix-007 force-pushed the issue-65209-mcp-list-scope branch from 2843e13 to 2aa6623 Compare June 17, 2026 07:09
@steipete steipete self-assigned this Jun 17, 2026
@steipete
steipete force-pushed the issue-65209-mcp-list-scope branch from 2aa6623 to 1db485f Compare June 17, 2026 07:59
@steipete

Copy link
Copy Markdown
Contributor

Land-ready verification for rebased head 1db485f7f832454f415f02e69745621abd86d870.

Review:

  • Traced openclaw mcp list from CLI registration through listConfiguredMcpServers; the command reads only OpenClaw mcp.servers.
  • Checked installed mcporter 0.12.0 CLI help and its separate config registry. Clarifying the CLI/docs boundary is the best fix; merging registries would change behavior and ownership.
  • Fresh branch autoreview completed with no findings.

Verification:

Known proof gap: no separate live MCP process was needed because runtime registry behavior is unchanged; the registry scope was verified against both OpenClaw source and the installed mcporter CLI contract.

@steipete
steipete merged commit 93e3bce into openclaw:main Jun 17, 2026
164 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Landed as 93e3bcef7a8219246956f4838efdecbdc83b5ecc. The MCP CLI and docs now clearly identify the OpenClaw mcp.servers registry and its separation from mcporter configuration.

Thanks @Alix-007.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 18, 2026
Clarify that `openclaw mcp list`, `show`, `set`, and `unset` manage the OpenClaw `mcp.servers` registry and do not include the separate mcporter registry.

Co-authored-by: Alix-007 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: supplied External PR includes structured after-fix real behavior proof. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/ux: openclaw mcp list only shows OpenClaw mcp.servers, not mcporter servers

3 participants