codeant-ai-for-open-source[bot] commented on PR #36933:
URL: https://github.com/apache/superset/pull/36933#issuecomment-4030148569

   ## **Sequence Diagram**
   
   This diagram shows how the new MCP tool and embedded chart frontend work 
together to create an ephemeral chart, issue a guest token, and render the 
chart inside an embedded iframe using a permalink-backed state.
   
   ```mermaid
   sequenceDiagram
       participant Agent
       participant MCPServer
       participant SupersetAPI
       participant HostApp
       participant EmbeddedChartPage
   
       Agent->>MCPServer: Call get_embeddable_chart with dataset and config
       MCPServer->>SupersetAPI: Create permalink and guest token for form data
       SupersetAPI-->>MCPServer: Return iframe URL, guest token, expiry
       MCPServer-->>Agent: Return embed details and iframe HTML snippet
   
       HostApp->>EmbeddedChartPage: Load iframe URL
       HostApp->>EmbeddedChartPage: postMessage with guest token
       EmbeddedChartPage->>SupersetAPI: Fetch embedded chart state by permalink 
key
       SupersetAPI-->>EmbeddedChartPage: Return chart form data
       EmbeddedChartPage->>EmbeddedChartPage: Render chart with StatefulChart
   ```
   
   ---
   *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]

Reply via email to