PORT ST. LUCIE — Matt Harvey’s flaws from last season have been clearly visible to the new Mets pitching coach.

“Mechanically, It looks to me like he got into some bad habits simply because he had some injuries,” Dave Eiland said Wednesday. “And he was probably doing something with his lower half to help his upper half, which is his arm, so it looks like he got into some bad habits.”

Harvey missed 2½ months last season with a stress injury to his right scapula. After returning from the disabled list in early September, he pitched to an 11.28 ERA over his final six appearances. The right-hander missed the second half of the 2016 season after undergoing surgery for thoracic outlet syndrome.

Harvey, according to Eiland, is aware of his mechanical flaws and has spent the last week trying to get on track.

“He’s done his work this winter, he’s healthy, in shape physically and mentally,” Eiland said. “I am getting to know him and have every reason in the world to be optimistic. What has happened in the past is in the past and that is where we are going to leave it.”