codeant-ai-for-open-source[bot] commented on PR #38405:
URL: https://github.com/apache/superset/pull/38405#issuecomment-4054186600
## **Sequence Diagram**
This PR adds a display-name resolution step when chart data is serialized
for MCP responses. The API now returns both the internal viz type identifier
and a user-friendly chart type name so clients can show readable chart labels.
```mermaid
sequenceDiagram
participant Client
participant MCP API
participant Chart Serializer
participant Viz Name Resolver
participant Chart Metadata
Client->>MCP API: Request list charts or chart info
MCP API->>Chart Serializer: Serialize chart objects
Chart Serializer->>Viz Name Resolver: Resolve display name from viz type
Viz Name Resolver->>Chart Metadata: Load merged name map on first use
Chart Metadata-->>Viz Name Resolver: Legacy names and frontend overrides
Viz Name Resolver-->>Chart Serializer: Return chart type display name
Chart Serializer-->>MCP API: Include viz type and display name fields
MCP API-->>Client: Return charts with friendly type names
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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]