Left-handed reliever Jake McGee is leaving the Los Angeles Dodgers to join the rival San Francisco Giants, agreeing to a two-year, $7 million contract, a source confirmed to ESPN's Jeff Passan.

McGee, who went 3-1 with a 2.66 ERA in 24 appearances for the Dodgers in the pandemic-shortened 2020 season, could get ample opportunities to close with the Giants.