Skip to content

fix(cli): apply plan mode to the MCP server-level registry - #297

Merged
ajianaz merged 1 commit into
developfrom
fix/mcp-server-registry-plan-mode
Oct 7, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/mcp-server-registry-plan-mode

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What

build_server_registry_for_mcp now honors plan_mode: the server-level registry of tole serve --transport mcp keeps only ReadOnly tools under --plan-mode.

Why

The argument was ignored (_plan_mode), so Write tools stayed registered at the server level, contradicting the 'absent on the wire' guarantee and the per-session / tole mcp behavior.

Changes

Testing

fmt, clippy -D warnings, workspace tests, --no-default-features --features shell-tools --tests check, cora review --staged clean. New test verified failing with the fix reverted.

🤖 Generated with Claude Code

build_server_registry_for_mcp ignored its plan_mode argument, so the
server-level registry of 'tole serve --transport mcp' kept Write tools
under --plan-mode. Apply retain_read_only like the other faces.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit b3bab01 into develop Oct 7, 2026
17 checks passed
@ajianaz
ajianaz deleted the fix/mcp-server-registry-plan-mode branch October 9, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp server face: build_server_registry_for_mcp ignores plan_mode (registry not read-only under --plan-mode)

1 participant