rhysemmerson opened a new issue, #38899: URL: https://github.com/apache/superset/issues/38899
### Bug description I'm trying to get the MCP server working but when calling tools I get this error. ``` g.user was not set by JWT middleware (MCP_AUTH_ENABLED=True, JWT keys configured=True) ``` I'm using JWT auth with a shared secret. I've put the user's username into the JWT payload as suggested in the docs. Looking through the code I can see this function which appears to implement the logic the docs mention, but it doesn't appear to be called anywhere. So I'm at a dead end trying to deubg this. https://github.com/apache/superset/blob/6.1.0rc1/superset/mcp_service/mcp_config.py#L283 ### Screenshots/recordings _No response_ ### Superset version master / latest-dev ### Python version 3.11 ### Node version 16 ### Browser Chrome ### Additional context _No response_ ### Checklist - [x] I have searched Superset docs and Slack and didn't find a solution to my problem. - [x] I have searched the GitHub issue tracker and didn't find a similar bug report. - [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- 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]
