villebro opened a new pull request, #45403: URL: https://github.com/apache/superset/pull/45403
### SUMMARY The MCP server tells clients to create an API key at `MCP_API_KEY_CREATE_URL`, which defaulted to `/profile/`. That path is a 404 in 7.0; API keys are managed on the user info page, `/user_info/` (`superset/views/user_info.py`). This changes the default in both `superset/mcp_service/mcp_config.py` and the fallback in `superset/mcp_service/auth.py`, so the link in the MCP server's 401 "Invalid or expired API key" response opens the page where keys are created. The existing invalid-API-key test now also asserts the message points at `/user_info/`. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A ### TESTING INSTRUCTIONS Run `pytest tests/unit_tests/mcp_service/test_auth_api_key.py tests/unit_tests/mcp_service/test_mcp_config.py`. To verify manually, call the MCP server with an invalid `sst_` API key and confirm the error links to `/user_info/`, which loads the API key management page. ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] 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]
