bito-code-review[bot] commented on PR #35835:
URL: https://github.com/apache/superset/pull/35835#issuecomment-3445365756

   <details open>
     <summary><strong>Interaction Diagram by <a 
href="https://bito.ai#sequence_diagram";>Bito</a></strong></summary>
   
   ```mermaid
   sequenceDiagram
   participant CLI as Superset CLI<br/>🟩 Added | ●●● High
   participant MCPCmd as mcp.py<br/>🟩 Added | ●●● High
   participant Server as server.py<br/>🟩 Added | ●●● High
   participant AppFactory as app.py<br/>🟩 Added | ●●● High
   participant FastMCP as FastMCP Instance<br/>🟩 Added | ●●● High
   participant ToolRegistry as Tool Registry<br/>🟩 Added | ●●● High
   participant ChartTool as Chart Tools<br/>🟩 Added | ●●● High
   participant Superset as Superset DAOs
   Note over CLI, MCPCmd: User runs: superset mcp run --port 5008
   CLI->>MCPCmd: Execute mcp.run(host, port, debug)
   MCPCmd->>Server: run_server(host, port, debug)
   Server->>AppFactory: init_fastmcp_server()
   AppFactory->>FastMCP: create_mcp_app() returns FastMCP instance
   AppFactory->>ToolRegistry: Import & register tools (chart, system)
   ToolRegistry->>ChartTool: Decorate with @mcp.tool
   Note over FastMCP, ChartTool: Tools auto-registered via decorator
   FastMCP->>Server: FastMCP instance configured
   Server->>FastMCP: mcp.run(transport=streamable-http)
   FastMCP-->>Superset: Ready to accept MCP requests
   FastMCP-->>Server: HTTP server listening on host:port
   ```
   Critical path: Superset CLI -&gt; mcp.py -&gt; server.py -&gt; app.py -&gt; 
FastMCP Instance -&gt; Tool Registry -&gt; Chart Tools -&gt; Superset DAOs
   
   
   > **Note:** The diff adds a complete MCP (Model Context Protocol) service to 
Superset, enabling AI agents to interact with dashboards and charts. The flow 
starts from the CLI, initializes FastMCP with tool registration, and exposes 
HTTP endpoints for agent communication.
   
   </details>


-- 
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