Before taking on the Blue Jays in the third game of a four-game series at Fenway Park on Sunday afternoon, the Red Sox selected the contract of right-hander Ryan Weber from Triple-A Worcester and added him to the major-league roster.

In a corresponding move, fellow right-hander Brandon Brennan was designated for assignment, the club announced earlier Sunday morning.

Weber, 30, re-joins the Sox’ 40-man roster after being designated and outrighted to Triple-A Worcester last November.

In seven appearances (six starts) with the WooSox this season, the veteran hurler posted a 4.63 ERA and 3.98 xFIP to go along with 10 walks and 33 strikeouts over 35 innings of work.

Weber’s last start for Worcester came on June 8, an outing in which he pitched well against the Syracuse Mets by only allowing two runs in seven innings, so he would be in line to start once again on Sunday.

“It was his spot in the rotation (for Worcester) and he can give us multiple innings,” said Red Sox manager Alex Cora. “If something happens with (Sunday’s starter) Martín (Pérez), we were running short on innings. So he’ll be a guy who can give us multiple innings.”

Originally signing a minor-league pact with Boston in December 2018, Weber has put up a 4.73 ERA over 35 appearances (eight starts) and 83 2/3 innings pitched in parts of two seasons with the Red Sox.

Brandon Brennan, meanwhile, was designated for assignment despite the fact that he does have minor-league options remaining.

The 29-year-old was called up from Triple-A Worcester this past Thursday. He tossed three scoreless innings while scattering three hits, two walks, and one strikeout in his lone appearance out of the Boston bullpen against Toronto on Saturday.

The Red Sox will have seven days to either trade, release, or waive Brennan, who was claimed off waivers from the Mariners last month.

More must-reads:

TODAY'S BEST
Pacers' Pascal Siakam leads team to Game 6 win vs. Knicks
Late goal sends Panthers to Eastern Conference Finals
Ex-teammate of Shohei Ohtani placed bets with same illegal bookmaker as interpreter 
Former Rams first-round pick retires from NFL after 11 seasons
Insider provides major injury update on Celtics' Kristaps Porzingis
Watch: Bruins strike first in Game 6 with incredible backhand goal
Dodgers make series of moves involving notable players
Giants rookie CF to undergo season-ending labrum surgery
Hurricanes not expected to re-sign defenseman, center
Paul Skenes makes incredible Wrigley Field history in second-career MLB start
Maple Leafs tab former Stanley Cup winner as new head coach
NFL insider expands on competition between Steelers QBs Russell Wilson, Justin Fields
NFL sets outrageous prices for Eagles-Packers Brazil game
Scottie Scheffler shoots improbable 66 after warming up for PGA Championship in a jail cell
Nuggets star has worrying comment about latest injury
Broncos 'very unlikely' to bring back former NFL interceptions leader
Greg Olsen offers broadcasting advice to Tom Brady
Yankees' Juan Soto reacts to Hal Steinbrenner contract talk
Mets star has theory about closer Edwin Diaz's recent struggles
Scottie Scheffler arrested, still makes PGA Championship tee time