When Carmelo Anthony staged a dinner meeting with his entourage Friday night, at least two Knicks officials were in attendance to discuss his free-agent future, according to a source familiar with the situation.

Among the attendees at the dinner meeting at Pergola, a well-known Middle Eastern eatery on 28th Street, was Knicks general manager Steve Mills.

Anthony’s Creative Artists Agency agent Leon Rose and CAA adviser William Wesley were also in the group, which sat in a private back room for “a few hours,’’ the source said. Anthony’s birthday is Thursday, but this was more than a birthday bash, as Melo becomes a free agent July 1.

On April 29, Anthony secretly met for two hours at a Tribeca steakhouse with Knicks president Phil Jackson, who told him at the time that Steve Kerr was going to be the new Knicks coach.