You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "villebro (via GitHub)" <gi...@apache.org> on 2026/10/19 20:56:08 UTC
[I] MCP_API_KEY_CREATE_URL defaults to /profile/, which is a 404 (7.0.0rc2) [superset]
villebro opened a new issue, #45492:
URL: https://github.com/apache/superset/issues/45492
### Bug description
The MCP server tells clients to create an API key at `MCP_API_KEY_CREATE_URL`, which defaults to `"/profile/"` (`superset/mcp_service/mcp_config.py`, with a fallback in `superset/mcp_service/auth.py`). In 7.0 that path is a 404. API keys are managed on the user info page, `/user_info/` (`superset/views/user_info.py`).
**How to reproduce**
1. On a 7.0.0rc2 instance with the MCP service enabled, call it with a missing or invalid API key.
2. The 401 response points to `/profile/`.
3. Opening that link gives a 404.
**Expected behavior**
The link in the 401 response opens the page where API keys are created, `/user_info/`.
### Superset version
master / latest-dev
### Python version
3.11
### Node version
Not applicable
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] MCP_API_KEY_CREATE_URL defaults to /profile/, which is a 404 (7.0.0rc2) [superset]
Posted by "FrancescoCastaldi (via GitHub)" <gi...@apache.org>.
FrancescoCastaldi commented on issue #45492:
URL: https://github.com/apache/superset/issues/45492#issuecomment-6524019889
### Root Cause Analysis & Solution
In `superset/mcp_service/auth.py` and `superset/mcp_service/mcp_config.py`, the fallback configuration for `MCP_API_KEY_CREATE_URL` is hardcoded as `"/profile/"`.
In Superset 7.x, user API key management is served from `"/user_info/"`. When an unauthenticated MCP request is received, the generated 401 response directs the user to a nonexistent `/profile/` route resulting in a 404 error.
#### Solution
Update the default fallback URL in both `auth.py` and `mcp_config.py` from `"/profile/"` to `"/user_info/"`.
Committed to branch `fix/community-unanswered-issues` (commit `39188c68083`) at https://github.com/FrancescoCastaldi/superset/tree/fix/community-unanswered-issues.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] MCP_API_KEY_CREATE_URL defaults to /profile/, which is a 404 (7.0.0rc2) [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro closed issue #45492: MCP_API_KEY_CREATE_URL defaults to /profile/, which is a 404 (7.0.0rc2)
URL: https://github.com/apache/superset/issues/45492
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org