A Woburn man was charged with assault with intent to murder in connection to a stabbing at a local restaurant, police said.

James Lyons, 36, was arraigned Monday in Woburn District Court. He had been apprehended by police on Friday after an alleged stabbing outside Jake n JOES restaurant in Woburn. 

According to the Middlesex District Attorney's office, responding officers found a 31-year-old man suffering from apparent stab wounds to the neck. He was taken to a local hospital where he remains in critical but stable condition, officials said. 

Lyons and the victim allegedly left the restaurant together shortly after it closed and were engaged in a heated argument in the parking lot. It was during that altercation that Lyons allegedly pulled out a knife and stabbed him, officials said. 

Lyons was held pending a dangerousness hearing scheduled for Aug. 29.