You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analysis of the most recent commit: refactor: consolidate over-fragmented files in internal/ packages
Summary
Semantic analysis of the 120+ Go files changed in the recent refactoring commit identified 2 significant duplication patterns that affect maintainability. Both exceed the reporting threshold (>10 duplicated lines or 3+ similar patterns).
Maintainability Risk: Medium — the constant-arg repetition in rejectRequest calls risks divergence if error codes change; the list-method pattern is already partially refactored
Refactoring Priority: Medium for pattern 1 (server/hmac.go), Low for pattern 2 (mcp/connection_methods.go)
Analysis of the most recent commit:
refactor: consolidate over-fragmented files in internal/ packagesSummary
Semantic analysis of the 120+ Go files changed in the recent refactoring commit identified 2 significant duplication patterns that affect maintainability. Both exceed the reporting threshold (>10 duplicated lines or 3+ similar patterns).
Detected Patterns
rejectRequestwith hardcoded constant category/error-type arguments — Severity: Medium — See sub-issue [duplicate-code] Duplicate Code Pattern: Hardcoded constant args in rejectRequest calls (server/hmac.go, server/middleware.go) #7360listTools/listResources/listPromptsstructural duplication — Severity: Low-Medium — See sub-issue [duplicate-code] Duplicate Code Pattern: Structural duplication in listTools/listResources/listPrompts (mcp/connection_methods.go) #7361Overall Impact
rejectRequestpattern + 3 × 12 lines for list methods)internal/server/hmac.go,internal/server/middleware.go,internal/mcp/connection_methods.go)rejectRequestcalls risks divergence if error codes change; the list-method pattern is already partially refactoredNext Steps
rejectHMACRequestandrejectAuthRequesthelpers ininternal/server/Analysis Metadata
08bc2c4(refactor: consolidate over-fragmented files in internal/ packages)*_test.gofiles,.github/files,test/directory