Not sure what tech stack you are using but OAuth in C# SDK is in preview and will be officially supported soon, you can check this article for more details https://den.dev/blog/mcp-csharp-sdk-authorization/. I assume other SDKs are implement something similar.