set_active_mesh
Switch the active mesh by UUID or name and persist it to the shared meshbook config, verifying token scope first so CLI and server commands target the right mesh.
Instructions
Set the active mesh (by UUID or name, case-insensitive). Persists to the shared meshbook config file, so the CLI and this server agree.
Verifies with the server BEFORE writing. Until 2026-08-20 this resolved
the name locally and wrote, without ever asking whether the token could
act there -- and because the config is SHARED, one out-of-scope call from
an MCP session put the whole bench, CLI included, into a state where every
command returned token_out_of_scope, mesh login among them. Recovery was
hand-editing the config. Wren mapped the cross-poisoning from Liza25
(report B5). Membership is not the predicate; token scope is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mesh_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||