msyavuz opened a new pull request, #40328: URL: https://github.com/apache/superset/pull/40328
### SUMMARY Adds an MCP `get_dashboard_layout` tool that returns parsed `position_json` (tabs + chart positions) on demand. Companion to `get_dashboard_info`, which strips `position_json` to keep responses small and now points agents at this tool via its `omitted_fields` hint. Follows the progressive-disclosure pattern: lightweight summary by default, full structured data on explicit request. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A — MCP tool, no UI. ### TESTING INSTRUCTIONS 1. Start the MCP service and call `get_dashboard_info` for a tabbed dashboard. 2. Confirm the response's `omitted_fields.position_json` reasons mentions calling `get_dashboard_layout(identifier)`. 3. Call `get_dashboard_layout` with the same identifier (id, uuid, or slug) and verify `tabs[]` and `charts[]` are populated with correct parent-tab linkage; `has_layout: false` for an empty dashboard. 4. `pytest tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_layout.py` — 7 tests pass. ### ADDITIONAL INFORMATION - [ ] Has associated issue: No - [ ] Required feature flags: None - [ ] Changes UI: No — MCP tool only - [ ] Includes DB Migration: No - [ ] Introduces new feature or API: Yes — new MCP tool `get_dashboard_layout` - [ ] Removes existing feature or API: No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
