mistercrunch commented on code in PR #33976:
URL: https://github.com/apache/superset/pull/33976#discussion_r2175601865


##########
superset/mcp_service/README_ARCHITECTURE.md:
##########
@@ -0,0 +1,115 @@
+# MCP Service Architecture
+
+The Superset MCP (Model Context Protocol) service provides programmatic access 
to Superset dashboards through both REST API and FastMCP interfaces.
+
+## Architecture Overview

Review Comment:
   asked gpt to translate to mermaid, not sure if it's 100% accurate:
   ```mermaid
   flowchart TB
     subgraph MCP_Service["MCP Service"]
       direction TB
   
       subgraph Flask_Stack[" "]
         FS["Flask Server (Port 5008)"]
         FRest["REST API Endpoints\n• /health\n• /list_dashboards\n• 
/dashboard/<id>"]
         FAPI["API Layer (api/v1/)\n• Authentication\n• Request/Response\n• 
Error handling"]
         FS --> FRest --> FAPI
       end
   
       subgraph FastMCP_Stack[" "]
         FM["FastMCP Server (Port 5009)"]
         FTools["FastMCP Tools\n• list_dashboards\n• get_dashboard\n• 
health_check"]
         FClient["HTTP Client (requests)\n• Internal API calls\n• JSON parsing"]
         FM --> FTools --> FClient
       end
   
       subgraph Proxy_Stack[" "]
         PR["Proxy Scripts"]
         PRRest["run_proxy.sh\n• Local proxy for free users"]
         PRCore["simple_proxy.py\n• Background proxy process"]
         PR --> PRRest --> PRCore
       end
   
       FAPI --> SupersetCore
       FClient --> SupersetCore
       PRCore --> SupersetCore
     end
   
     subgraph SupersetCore["Superset Core"]
       DB["Database (SQLAlchemy)"]
       Models["Models\n(Dashboard, Chart, etc.)"]
       DAOs["DAOs"]
       DB --> Models --> DAOs
     end
   
   ```



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