codeant-ai-for-open-source[bot] commented on PR #38277:
URL: https://github.com/apache/superset/pull/38277#issuecomment-4030144124
## **Sequence Diagram**
This diagram shows how MCP list tools now apply owner/favorite filters via
DAO subqueries with corrected 1-based pagination, and how chart preview
requests return an explore link URL instead of an error.
```mermaid
sequenceDiagram
participant Client
participant MCPService
participant DashboardDAO
participant Database
participant ChartEngine
Client->>MCPService: List dashboards (owner and favorite filters, page 1)
MCPService->>DashboardDAO: List(page=0, column_operators with
owner/favorite)
DashboardDAO->>Database: Query dashboards via owner M2M and favorite
subquery
Database-->>DashboardDAO: Matching dashboards and total_count
DashboardDAO-->>MCPService: Dashboards and 0-based page info
MCPService-->>Client: Dashboards with 1-based page and pagination
metadata
Client->>MCPService: Get chart preview (format=url)
MCPService->>ChartEngine: Load chart and build explore link
ChartEngine-->>MCPService: Explore link for chart
MCPService-->>Client: Preview result containing explore URL
```
---
*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]