The New York Mets probably felt pretty good about themselves when they left Colorado on Sunday: The club had just completed a three-game sweep of the Rockies in which their once-awful offense scored 33 total runs, extending their lead over the heavily favored Washington Nationals in the NL East.

And when they arrived to their hotel in Philadelphia that night, things got even better: Their captain and best player, David Wright, finally returning to the team after more than four months on the disabled list with a back condition, was waiting for them in full uniform with cookies. For real.

Wait, there’s more: On Monday evening, in his first game back after 115 on the shelf and countless whispers that his spinal stenosis could prematurely end his remarkable career, Wright crushed a massive homer into the upper deck at Citizens Bank Park.

Wright’s shot put the Mets on the board, but a rare clunker of a start from ace Jacob deGrom gave the Phillies a 7-2 lead by the end of the third inning.

Then the Mets went ahead and scored 14 unanswered runs. The club totaled eight home runs in the effort, setting a new franchise record behind one longball apiece from Wright, Yoenis Cespedes, Michael Cuddyer, Travis d’Arnaud, and Juan Lagares, and two from Wilmer Flores. The offensive explosion increased the club’s lead to 5.5 games in the division, giving them an 85.8% chance of reaching the postseason, according to Baseball Prospectus.

It’s true: The 2015 New York Mets will probably make the playoffs. After late-season collapses in 2007 and 2008, jaded fans know better than to ink October plans. But unless the Mets go into the tank or the Nats suddenly go white hot, this is happening.

The club’s offensive turnaround has been stunning: The Mets’ .660 OPS in the first half of the season ranked dead last in the National League as they struggled to win games despite an incredible young pitching staff anchored by deGrom, Matt Harvey and rookie Noah Syndergaard. Since the All-Star break, their .777 mark tops the same circuit.

The Mets hit 75 homers in 89 games in the first half of the season. They’ve hit 52 in 35 games since. The eight longballs on Monday are one more than they totaled across a 21-game stretch from June 15 to July 7.

To be fair, it’s an entirely different lineup: The Mets added capable hitters Kelly Johnson and Juan Uribe on July 26, right around the same time Murphy and now-injured first baseman Lucas Duda broke out of long slumps. The Mets then brought in slugger Yoenis Cespedes just before the July 31 trade deadline and got d’Arnaud back from from injury that same day.

Rookie Michael Conforto, promoted on July 24, has hit .270 with an .873 OPS in his first turn around the Majors. Flores, who wept on the field on July 30 because he thought he’d been traded to Milwaukee for Carlos Gomez in a deal that ultimately fell apart, has torched the ball ever since. And Lagares, fighting through an elbow injury all season, has hit far better since the arrival of Cespedes limited his playing time.

For months, outfielder Curtis Granderson appeared to represent the Mets’ only decent hitter. Granderson finally got a day off on Monday — his first of the season — and the club scored 16 runs without him.

The Mets can’t know exactly what to expect from Wright, or how often the third baseman will be able to play as he battles spinal stenosis. But with or without him, their lineup just looks so much deeper now than it did a month ago. And the defensive flexibility offered by players like Flores, Johnson and Murphy means they can stack their lineup with lefty or righty hitters on any given night to maximize platoon matchups.

And — and! — they’ve still got one of the best starting staffs in baseball, deGrom’s rough outing Monday notwithstanding. They’ve got a headache ahead of them as they try to manage innings for Syndergaard and Harvey, who’s in his first season back from Tommy John surgery. But rookie Steven Matz should help with that come September, and righty Logan Verrett threw an eight-inning gem when the Mets skipped Harvey’s start in Colorado on Sunday.

The Mets certainly know better than to count on a postseason berth because of a 5 1/2 game lead in late August, and the Nationals still have plenty of talent all over their roster and plenty of time to surge back toward the top of the standings. But for right now, at least, the Mets look like they’ve got an offense good enough and deep enough to score plenty of runs for those stellar starters. It’s all happening.