Skip to content

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

Closed

Description

@ajianaz

Summary

build_server_registry_for_mcp(_plan_mode: bool) (crates/tole-cli/src/main.rs:1429) ignores its argument and always calls build_server_registry(None, &[]). Per-session registries honor plan mode, but the server-level registry of tole serve --transport mcp does not, contradicting the 'absent on the wire' guarantee described at main.rs:1568.

Expected

Under --plan-mode the server-level registry exposes only ReadOnly tools (same retain_read_only semantics as the other faces), with a regression test.

Found by

Architecture review 2026-10-07 (verified by reading main.rs).

Activity

  1. added
    bug
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions