Wasn’t New York City the Capitol in 1787? Congress met there and Washington was inaugurated there in 1789.
"The Constitutional Convention[1] took place in Philadelphia from May 25 to September 17, 1787. "
https://en.wikipedia.org/wiki/Constitutional_Convention_(United_States)