gsibble 10 hours ago

I don’t think this is a great article. MCP is inherently designed so integrating something like oAUTH is going to be very difficult. What callback url are you going to use? How are you going to pass the token in so it isn’t stored by the LLM provider? Etc.

  • boleary-gl 9 hours ago

    You’re not wrong but also this does raise a central question that I think is super un-considered in this whole MCP thing: how are we handling identity in those contexts.

    If anything we should be more concerned so it that because of the power that it can hand over to agents.

    • adamm255 5 hours ago

      Totally. Still getting my head around this write up but it goes into a lot of detail. https://aaronparecki.com/2025/04/03/15/oauth-for-model-conte...

      • slowmovintarget 3 hours ago

        Following those guidelines, how do you not end up with a perpetual 401 response from the REST API?

        I understand the idea of separating the OAuth audience between the MCP Server and the REST API it wraps. What I don't understand is how the MCP Server itself gets authorized against the REST API, unless there's a privileged client (that is the MCP Server has an API client by which it identifies itself, and not the end user).

        How do you operate within the privileges of the end user in that case? It seems like it would still require the REST API to accept some additional signal of the end user's identity in order to make the authorization decisions. So while the MCP Server access token is "no good on the REST APIs" you have the additional problem of either "trust me, I'm an MCP Server" or the MCP Server has to exchange the "no good" token for an equivalent "good" token that also somehow carries the index to limitations of the user (identity in the case of fine-grained access control, and scopes in the case of coarse-grained).

  • spacebanana7 8 hours ago

    I feel the authorisation layer really needs to sit with the MCP server.

    Ultimately the LLM provider’s servers can’t be prevented from using a token however they want.