Cowboys' Mike McCarthy to undergo surgery, still expected on sideline for game against Eagles