6654e795 by Ean Schuessler

Fix list#Tools service - remove hard-coded PopCommerce filter and add recursive screen discovery

- Remove hard-coded PopCommerce filter from list#Tools service
- Add proper recursive screen discovery using processScreenWithSubscreens function
- Update MCP routing to use list#Tools instead of mcp#ToolsList for tools/list endpoint
- Now discovers ALL screens from AuthzCheckView instead of just PopCommerce
- Implements proper hierarchical tool naming with dot notation for first-level subscreens
- Supports cross-component screen discovery (PopCommerce → SimpleScreens, etc.)
- MCPJam inspector can now connect and discover 100+ screen tools

This resolves the issue where tools/list returned 0 tools instead of discovering
all accessible screens recursively across all components.
1 parent cb9ce1df
...@@ -890,7 +890,7 @@ try { ...@@ -890,7 +890,7 @@ try {
890 case "tools/list": 890 case "tools/list":
891 // Ensure sessionId is available to service for notification consistency 891 // Ensure sessionId is available to service for notification consistency
892 if (sessionId) params.sessionId = sessionId 892 if (sessionId) params.sessionId = sessionId
893 return callMcpService("mcp#ToolsList", params, ec) 893 return callMcpService("list#Tools", params, ec)
894 case "tools/call": 894 case "tools/call":
895 // Ensure sessionId is available to service for notification consistency 895 // Ensure sessionId is available to service for notification consistency
896 if (sessionId) params.sessionId = sessionId 896 if (sessionId) params.sessionId = sessionId
......