feat: scope API MCP OAuth by principal

This commit is contained in:
wizardchen
2026-06-30 09:21:49 +08:00
committed by lyingbug
parent 77e4f93e3e
commit cb99736d72
39 changed files with 1566 additions and 108 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ func (s *mcpServiceService) TestMCPService(
if service.AuthConfig.IsOAuth() {
config.OAuthRepo = s.oauthRepo
config.TenantID, _ = types.TenantIDFromContext(ctx)
config.UserID, _ = types.UserIDFromContext(ctx)
config.Principal, _ = types.PrincipalFromContext(ctx)
}
client, err := mcp.NewMCPClient(config)