If it were me, I would be adding coffee post boil, or even at packaging time. The boil will most likely drive off some of the aromatics from the coffee.
coffee is cheap is far as adjuncts go add it when ever you want.Mash work fine, I would personally avoid boiling it for any amount if time.But its not the wrong thing to do either.
cafe patron is amazing in porters too