forked from 1b-agent/opencadstudio-upstream
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 <[email protected]>
This commit is contained in:
1 parent
593f7ca3e9
commit
4b71106d38
1 file changed
+2
-2
+2
-2
@@ -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"]},
|
||||
|
||||
Reference in new issue
Block a user