go-sdk icon indicating copy to clipboard operation
go-sdk copied to clipboard

Add OAuth 2.0 Authentication Support

Open NiharDoshi99 opened this issue 2 months ago • 1 comments

Is your feature request related to a problem? Please describe.

The modelcontextprotocol/go-sdk currently does not provide any built-in support for OAuth 2.0 authentication, which is required for connecting to MCP servers that enforce modern authentication flows.

NiharDoshi99 avatar Nov 14 '25 09:11 NiharDoshi99

We have experimental support, protected by a build tag. See https://github.com/modelcontextprotocol/go-sdk/blob/main/auth/client.go.

jba avatar Nov 14 '25 12:11 jba

Closing as a dupe of #19.

findleyr avatar Nov 14 '25 19:11 findleyr