Andy Murray sets up Kyle Edmund showdown after dispatching Mackenzie McDonald

Murray won 3-6 6-4 7-5 but struggled and showed signs of pain in between points.

This was Murray’s first appearance since pulling out of Wimbledon last month as he bids to play at the US Open.

Murray was out of sorts in the first set of the rain-delayed match, losing three service games behind some uncharacteristically soft second serves.

He looked in trouble but found new life when McDonald sent a forehand wide to hand Murray a break and a 5-4 advantage in the second set.

The error ignited the three-time grand slam champion, who pumped his fist and screamed after easily holding serve to set up a third-set decider.

McDonald, coming off a round of 16 appearance at Wimbledon that put him in the top 100 for the first time in his career, blasted winners all night but was ultimately undone by a torrent of unforced errors in the third set, including a costly one when his racquet crossed the net on a volley.

Despite the win, Murray looked far from his dominant self.

He walked awkwardly around the court between points, especially in the lengthy third set when at one point he grabbed his hamstring and winced in pain.

The 31-year-old also tightened up at key moments in the match, needing seven match point opportunities before finally crossing the finish line.

Next up for Murray is countryman Edmund, who he will face on Wednesday.

Murray has a 2-1 lead in head-to-head matches against Edmund but the 23-year-old won in straight sets when the pair met in the second round of the Eastbourne International last month.

Elsewhere American Tim Smyczek won his rain-interrupted match against Lithuanian Ricardas Berankis 7-6(4) 6-2 and will next face Mischa Zverev, who defeated Smyczek in three sets at the Atlanta Open last week.

Tunisian Malek Jaziri cruised to a 6-4 6-1 win over Russian Evgeny Donskoy while Romanian Marius Copil fired nine aces en route to a 7-6(9) 6-4 win over Mirza Basic.

American Noah Rubin’s powerful serving overwhelmed Russian Mikhail Youzhny.

Lukas Lacko held a 1-0 lead over American Denis Kudla before their match was called off due to rain while three-times grand slam champion Stan Wawrinka’s match against struggling American Donald Young was rescheduled.