Extract resolveOIDCConfig helper in VirtualMCPServer converter#4505
Conversation
Collapse the two OIDC resolution branches (MCPOIDCConfigRef and legacy inline OIDCConfig) into a single resolveOIDCConfig method that returns an immutable (*vmcpconfig.OIDCConfig, error). This simplifies convertIncomingAuth by making incoming auth construction a single assignment rather than a mutable struct with conditional field mutation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4505 +/- ##
=======================================
Coverage 69.11% 69.11%
=======================================
Files 502 502
Lines 51869 51875 +6
=======================================
+ Hits 35848 35853 +5
+ Misses 13243 13242 -1
- Partials 2778 2780 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @jerm-dro's task in 1m 8s —— View job Behavioral equivalence verification
Verdict: No behavioral changes. The refactor is equivalent. Here's a detailed comparison of the critical paths:
|
Summary
convertIncomingAuthinto a single helper, makingincomingimmutable after construction.resolveOIDCConfigmethod returns(*vmcpconfig.OIDCConfig, error), encapsulating both the MCPOIDCConfigRef path and the legacy inline OIDCConfig path. This simplifiesconvertIncomingAuthto a single assignment.Ref: #4493 (comment)
Type of change
Test plan
task test)task lint-fix)Changes
pkg/vmcpconfig/converter.goresolveOIDCConfigfromconvertIncomingAuth; simplifyconvertIncomingAuthto single OIDC assignmentDoes this introduce a user-facing change?
No
Generated with Claude Code