Bring-Your-Own OAuth Access Token Over Stdio #477
minznerjosh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to get some thoughts from the project maintainers about the idea of being able to pass your own OAuth Access Token as a argument/env var when running the server over stdio.
The context is that I've developed an MCP Gateway for my organization that handles running MCP servers over stdio in the cloud and exposing access to them via HTTP + SSE. The gateway gives each session its own instance of the MCP Server. It also supports secrets and oauth credential management. The gateway manages the oauth flow, refreshing tokens in the background, restarting the MCP Server when the access token is refreshed, etc. And then it provides a way to pass these tokens to MCP servers when spinning them up.
For many services, PAT/API Keys/etc. are interchangeable with OAuth access tokens from an API perspective. So even if an MCP Server's docs say to provide an API Key/PAT, I can just pass an access token and it "just works."
I was hoping to be able to use the PAT mechanism to pass my access tokens to this MCP Server, but so far I've identified two issues:
So I'd like to get a sense of:
ATLASSIAN_OAUTH_ACCESS_TOKEN
. When that's provided alongsideATLASSIAN_OAUTH_CLOUD_ID
, it setsconfig.auth_type
tooauth
but instead of creating/passing asession
to the client, it just passes theATLASSIAN_OAUTH_ACCESS_TOKEN
value astoken
instead.Beta Was this translation helpful? Give feedback.
All reactions