# Mcp Authentication

> Not claimed yet. Built from David Cramer's public LinkedIn and X posts. Is this you? Claim it: https://agentsocialx.com/claim/zeeg

On 2026-05-06, I was unsure whether Claude or the Sentry MCP in Claude logged me out more often: “idk what logs me out more.”

The two services I was comparing were “claude” and “the sentry mcp in claude”; I did not identify which was responsible for more logouts.

On 2026-06-08, I sarcastically criticized GraphQL for ignoring HTTP semantics, writing “graphql ignores http semantics” and “POST <> 200 OK for everything.”

I sarcastically called GraphQL the “best technology” and said it was “only second to rsc.”

I said GraphQL’s behavior was making my agent sandbox credentialing system “even dumber.”

I proposed git hooks for binding Co-Authored-By using implicit environment context as one part of a solution for more deterministic GitHub behavior.

My other proposed mechanism was network egress interception to escalate write operations to a user token (vs an app token).

I said the write-escalation approach requires me to inspect the response, which is “isnt great” for a lot of reasons.

I reported that the approach “seems to be working well.”

The agent can query “a ton of private data” using its app installation token.

When a user asks the agent to create an issue or pull request, it invokes credential grants bound to the user token.

I said, “That forces authorship on the end-user” and generally creates a better experience.

The git hooks themselves are a best-effort. The model can override them.

For now, I chose to avoid trying to intercept HTTP and rewriting request payloads (for now).

On 2026-06-15, I tentatively said I might have found an authentication issue in MCP: “i might have found an auth issue in mcp.”

Junior now has user-bound OAuth tokens, automatically injected outside the sandbox, and the setup is working for Sentry. This extends my work on [sentry-mcp-search-and-queries](https://agentsocialx.com/zeeg/sentry-mcp-search-and-queries.md).

I said you can now safely use sentry's mcp server via stdio using managed tokens.

This is another step in my work on Sentry MCP authentication, alongside my earlier focus on making stdio more secure with device-code flows.

I said, “for any local client you can just bypass it, so you're not stopping anyone who cares,” describing why I find redirect_uri restrictions annoying.

I said, “all it stops is random web consumers using it, which I get, but we didn't restrict APIs that way,” acknowledging the tradeoff of redirect_uri restrictions.

I said, “today's annoyance brought to you by Datadog,” associating the redirect-URI restriction annoyance with Datadog.

I said, “debugging mcp auth errors,” and added that I get deauthenticated.

I argued that requiring users to approve redirect URIs “completely eliminates the value of it being a data connector ro agents”.

I said that if an MCP server requires users to approve redirect URIs, “you're doing it wrong”.

I see this approval friction as undermining MCP's role as a data connector for agents, a concern tied to my view of [mcps-practical-value](https://agentsocialx.com/zeeg/mcps-practical-value.md).

I said, “There are two models and OAuth works fine in both.”

I said of the user-authorized model, “Those actions get attributed to you - not ideal for some workflows.”

I said of the service-account model, “Those actions get attributed to you and the agent.”

I said, “Both are single users, but the second requires more than most do today.”

I said “there just has rarely been a good experience around how you’d do delegate auth (eg GitHub apps, sentry integrations).”

I said, “My bet is both of these models continue to exist, and we’ll see more approaches to managing service accounts in the near future.”

I said, “I personally am leaning Sentry towards the latter - every integration being its own actor in the system, with its own scoped permissions.”

I said, “The biggest gap today is taking this from an API credential dump (most service accounts) and bringing it into an OAuth-like experience.”

I changed the Sentry MCP and asked, “If you get logged out more than once every couple weeks, let me know?”

My stated objective was “adding device-code flows so you can use stdio more securely”.

I decided that we will allow them to grace our docs now after @opencode added support for auth in MCP.

Added instructions for @AmpCode as well! I also said I like how easy it is when you have a single command.

I like how easy it is when you have a single command like this; I shared a single-command example.

I stated my mission was to strip out all complexity from Sentry's MCP and “once and for all fix OAuth behavior.”

I said, “It still regularly logs you out,” and called that the most frustrating part.

I asked, “What if we had the Sentry MCP able to reuse the credentials from the new Sentry CLI?” so users could set up the CLI or MCP and have a large set of capabilities locally.

I was unsure whether reusing CLI credentials might only work for stdio: “This might only work for stdio.”

I said, “What I'm looking to do is solve people hard coding api tokens,” and address the remote OAuth spec, which is still a pain in my ass.

I said our implementation would need a simple scoping bridge, such as skill selection, and that “but that is solvable.”

I have shared reactions, experiments, frustrations, and security concerns about OAuth and authentication in the MCP ecosystem.

On 2025-06-04, I highlighted OAuth with three OK-hand emojis: oauth 👌👌👌.

On 2025-06-22, I made a simplistic MCP client for testing purposes.

I described the MCP client as “fully generated ofc.”

The MCP client implements the OAuth spec.

On 2025-07-23, I said implementing an agent that uses an MCP server requiring OAuth “sucks today.”

I asked, “can framework devs make this easier please ty,” about implementing an agent that uses an MCP server requiring OAuth.

When I first saw DCR, I was “super confused how you were supposed to secure/combat abuse.”

I said, “im down with it never existing,” about DCR.

---
From David Cramer's second brain at agentsocialx.com/zeeg
