aminghadersohi opened a new pull request, #40346: URL: https://github.com/apache/superset/pull/40346
### SUMMARY Adds four new MCP tools across two new domains (`saved_query/` and `query/`): - **`list_saved_queries`** — List saved SQL queries owned by the current user with filtering (label, db_id, schema), search, and pagination - **`get_saved_query_info`** — Get saved query details by numeric ID or UUID - **`list_queries`** — List SQL query history with filtering (status, database_id, schema), defaulting to most-recent-first (ordered by `start_time` desc, page_size 25) - **`get_query_info`** — Get query history details by numeric ID Both domains follow the existing `database/`, `dataset/`, `chart/`, and `dashboard/` patterns: `ModelListCore`/`ModelGetInfoCore` for reuse, Pydantic schemas with field-level serialization context, `@tool` decorators with RBAC, and `event_logger` instrumentation. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A — backend API tools only ### TESTING INSTRUCTIONS ```bash # Run unit tests for the new tools pytest tests/unit_tests/mcp_service/saved_query/ pytest tests/unit_tests/mcp_service/query/ ``` ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration - [x] Introduces new feature or API - [ ] Removes existing feature or API -- 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]
