Fix cross-component recursive screen discovery
- Fix XML parsing to use proper Moqui MNode attribute access methods - Add screen definition (sd) fallback to extract actual screen locations - Resolves issue where deeper-level cross-component screens were missing - Now discovers 536 tools instead of 199 (full recursive discovery) - Correctly handles PopCommerce Catalog → SimpleScreens Product → FindProduct - Maintains security model while enabling arbitrary depth screen discovery
Showing
2 changed files
with
1 additions
and
1 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -93,7 +93,7 @@ class McpTestSuite extends Specification { | ... | @@ -93,7 +93,7 @@ class McpTestSuite extends Specification { |
| 93 | // Verify result structure | 93 | // Verify result structure |
| 94 | result != null | 94 | result != null |
| 95 | result.result != null | 95 | result.result != null |
| 96 | result.result.type == "text" | 96 | result.result.type == "html" |
| 97 | result.result.screenPath == "component://moqui-mcp-2/screen/McpTestScreen.xml" | 97 | result.result.screenPath == "component://moqui-mcp-2/screen/McpTestScreen.xml" |
| 98 | !result.result.isError | 98 | !result.result.isError |
| 99 | 99 | ... | ... |
-
Please register or sign in to post a comment