From 4b71106d38570c96e18a1875747fa283b6a5a292 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Wed, 30 Sep 2026 14:51:48 +0300 Subject: [PATCH] fix(mcp): user_select and getpoint descriptions sit on the variant, not in properties The two variants put their description string inside `properties`, where every value must be a schema, so strict clients (Claude Code, and by the look of discussion #1541 Codex too) rejected ocs_execute and only the read tools loaded. The whole tools/list schema now walks clean. Fixes #1555 Co-Authored-By: Claude Opus 5.5 --- src/mcp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcp.rs b/src/mcp.rs index b3f9eeaeb..201dcf447 100644 --- a/src/mcp.rs +++ b/src/mcp.rs @@ -1172,8 +1172,8 @@ fn execute_request_schema() -> Value { {"properties":{"op":{"const":"group_create"}},"required":["name","handles"]}, {"properties":{"op":{"const":"selection_set_save"}},"required":["name","handles"]}, {"properties":{"op":{"const":"selection_set_load"}},"required":["name"]}, - {"properties":{"op":{"const":"user_select"},"description":"Ask the person at the screen to pick entities; resolves when they press Enter (or cancel on Escape). Optional type/layer/prompt/detail/clear."}}, - {"properties":{"op":{"const":"getpoint"},"description":"Ask the person at the screen to pick one point; resolves with the picked point when they click, or cancels on Escape. Optional prompt."}}, + {"properties":{"op":{"const":"user_select"}},"description":"Ask the person at the screen to pick entities; resolves when they press Enter (or cancel on Escape). Optional type/layer/prompt/detail/clear."}, + {"properties":{"op":{"const":"getpoint"}},"description":"Ask the person at the screen to pick one point; resolves with the picked point when they click, or cancels on Escape. Optional prompt."}, {"properties":{"op":{"const":"close"}}}, {"properties":{"op":{"const":"sysvar"}}}, {"properties":{"op":{"const":"layout_create"}},"required":["name"]},