aminghadersohi opened a new pull request, #38405: URL: https://github.com/apache/superset/pull/38405
## Summary - MCP responses exposed internal viz_type identifiers (e.g. `echarts_timeseries_line`, `pivot_table_v2`, `deck_grid`) to end users - Added a `chart_type_display_name` field to `ChartInfo` that maps internal IDs to user-friendly names (e.g. "Line Chart", "Pivot Table", "deck.gl Grid") - Created `viz_type_names.py` with a comprehensive mapping of ~50 viz types to display names, with a fallback that title-cases unknown types - Updated MCP instructions to reference display names instead of internal identifiers ## Testing Instructions 1. Start the MCP server: `python -m superset.mcp_service.server` 2. Call `list_charts` with `select_columns: ["id", "slice_name", "viz_type", "chart_type_display_name"]` 3. Verify each chart includes a `chart_type_display_name` field with a human-readable name 4. Verify `viz_type` is still present (for backward compat / filtering) 5. Run unit tests: `pytest tests/unit_tests/mcp_service/chart/test_viz_type_names.py -v` -- 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]
