fix: replace undefined mapToStruct with parseActionOptions in MCP server

- Replace all mapToStruct calls with parseActionOptions function
- Add parseActionOptions implementation for MCP request parameter parsing
- Remove undefined mapToStruct function that was causing compilation errors
- Standardize parameter names (fromX/fromY/toX/toY -> from_x/from_y/to_x/to_y)
- Add AntiRisk support for TapAbsXY and Drag tools
- Improve parameter validation for Drag tool
- Update corresponding test cases to match new parameter names

This fixes compilation errors and ensures all MCP tools work correctly.
This commit is contained in:
lilong.129
2025-05-29 20:37:14 +08:00
parent dc20eaa816
commit 4e77ec4002
3 changed files with 152 additions and 127 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2505291922
v5.0.0-beta-2505292037