From 7f98be4f91c706cdf8a85d855d7cf3cf65771082 Mon Sep 17 00:00:00 2001 From: shaw Date: Fri, 23 Jan 2026 15:59:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(oauth):=20=E6=9B=B4=E6=96=B0=20Anthropic=20?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=20OAuth=20=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=9C=80=E6=96=B0=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/pkg/oauth/oauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/pkg/oauth/oauth.go b/backend/internal/pkg/oauth/oauth.go index 66c84445..33caffd7 100644 --- a/backend/internal/pkg/oauth/oauth.go +++ b/backend/internal/pkg/oauth/oauth.go @@ -24,9 +24,9 @@ const ( RedirectURI = "https://platform.claude.com/oauth/code/callback" // Scopes - Browser URL (includes org:create_api_key for user authorization) - ScopeOAuth = "org:create_api_key user:profile user:inference user:sessions:claude_code" + ScopeOAuth = "org:create_api_key user:profile user:inference user:sessions:claude_code user:mcp_servers" // Scopes - Internal API call (org:create_api_key not supported in API) - ScopeAPI = "user:profile user:inference user:sessions:claude_code" + ScopeAPI = "user:profile user:inference user:sessions:claude_code user:mcp_servers" // Scopes - Setup token (inference only) ScopeInference = "user:inference"