Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
What Problem This Solves
openclaw mcp servecurrently exposes only sessions with external channel route metadata. An MCP client such as Codex therefore cannot access the local main sessionagent:main:main, cannot send it a turn, and cannot search or read the main agent's persistent memory. Passing eithermainoragent:main:maintoconversation_getreturnsconversation not foundwhen that session has no channel route.Summary
Add a deliberately narrow, owner-only MCP surface:
sessions_historysessions_sendmemory_searchmemory_getThe bridge fixes the target server-side to agent
mainand sessionagent:main:main. The public schemas do not accept agent or session selectors, so these tools cannot target arbitrary sessions.Security Boundary
agentId: mainandsessionKey: agent:main:main.Evidence
Focused test command:
corepack pnpm test src/mcp/channel-server.test.ts --maxWorkers=1Result: 12/12 tests passed locally on both the v2026.10.4 implementation and the branch rebased onto current upstream main.
Added tests verify:
mainand sessionagent:main:main;Live observation before the change:
conversations_listreturned an empty list;conversation_getreturnedconversation not foundfor bothmainandagent:main:main.