Pittsburgh: Pittsburgh starting pitcher Charlie Morton combined with two relievers to shut out San Francisco and guide the Pirates to a 4-0 win on Thursday that saw them edge within four-and-a-half games of the National League Central Division lead.

The Pirates gained ground on idle St Louis while, in the American League (AL), all three division leaders lost: Kansas City’s five-game winning streak was ended by Boston; Tampa Bay were led to victory over Houston by a dominant pitching performance from Chris Archer; and Cleveland hung on to edge the New York Yankees.

Pittsburgh’s Morton (8-4) struck out eight over 6-2/3 innings and left with a four-run lead after the Giants loaded the bases with two outs.

Jared Hughes, who got Gregor Blanco to line out to end the seventh-inning threat, and Tony Watson completed the shutout.

Neil Walker hit a two-run homer for the Pirates, who have seven of their past eight.

Boston’s Wade Miley pitched into the eighth inning to guide the Red Sox past Kansas City 4-1.

Miley (10-9) helped the Red Sox improve to 5-2 under bench coach Torey Lovullo, who took over when manager John Farrell announced that he is being treated for cancer.

Ryan Hanigan drove in two runs for Boston.

Tampa Bay’s Chris Archer gave up only a fifth-inning single, and struck out 11 to lead the Rays over Houston 1-0.

It was Archer’s third career shutout and second against the Astros, having also blanked them in 2013. Archer (11-9) retired the final 15 batters, striking out five.

Colby Rasmus led off the fifth with a ground ball single for Houston’s only hit and was the last man to reach base for the AL West-leading Astros.

Cleveland’s Josh Tomlin had his second impressive start since returning from shoulder surgery, and steered the Indians past the New York Yankees 3-2.

Tomlin (1-1) only allowed Alex Rodriguez’s home run leading off the fourth and a double to Chase Headley in seven deliberate innings.

Indians closer Cody Allen gave up an RBI single to Carlos Beltran and had two runners on base when he retired the final two batters.