Blog Post
Smart AI Integration with the Model Context Protocol (MCP) ... part 5
Hi alkondanc ... thanks for message. The Repo does have a version of MCP running as a Azure Function App - but it is using the SSE protocol which is being deprecated (I'm waiting for the functions team to support MCP HTTP ... when this is available i'll revisit it) . It uses a key for authentication. With Azure Function Apps - you could just turn EasyAuth (App Service Authentication/Authorization) on.
The folder ColorsMCP-SSE-func in https://github.com/markharrison/colorsmcp
Hi Mark Harrison (UK), thanks for the samples.
I was trying to go via the Web app route and followed the http MCP samples. I was able to successfully authenticate. However, I would need the user tokens inside my MCP tools as well to extract user claims. HttpContextAccessor does not seem to be injecting properly. By any chance, have you encountered similar issue. Thanks!
- Mark Harrison (UK)Jul 22, 2025
Microsoft
Hi ... check this file https://github.com/markharrison/ColorsMCP/blob/main/ColorsMCP-HTTP-Auth/Program.cs ... lines 54 to 60. By default I have them commented out - but i used them to dump the JWT token in its entirety and/or the individual claims from the token. Its in the screenshots in the post.
Is that what you need ?