aminghadersohi opened a new pull request, #40306: URL: https://github.com/apache/superset/pull/40306
### SUMMARY Adds 4 new MCP tools across two new domains as part of story #99978 (Add list and info MCP tools for all accessible menu features): **Row Level Security (`superset/mcp_service/rls/`)** - `list_rls_filters` — List RLS filters with filtering (by `name`, `filter_type`), search, pagination, and column selection. Admin access required. - `get_rls_filter_info` — Get full RLS filter details by ID, including tables, roles, and WHERE clause. Admin access required. **Dynamic Plugins (`superset/mcp_service/plugin/`)** - `list_plugins` — List dynamic plugins with filtering (by `name`, `key`), search, pagination, and column selection. Admin access required. - `get_plugin_info` — Get full plugin details by ID, including key and bundle URL. Admin access required. Both domains follow the established pattern: `ModelListCore` / `ModelGetInfoCore`, Pydantic schemas with column filtering via serialization context, `@tool` decorator with RBAC via `class_permission_name`, and `event_logger` instrumentation. A minimal `DynamicPluginDAO` is co-located in `superset/mcp_service/plugin/dao.py` since no top-level DAO exists for `DynamicPlugin`. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A — backend-only MCP tool additions. ### TESTING INSTRUCTIONS Run the new unit tests: ```bash pytest tests/unit_tests/mcp_service/rls/tool/test_rls_tools.py -v pytest tests/unit_tests/mcp_service/plugin/tool/test_plugin_tools.py -v ``` ### 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]
