State tax filing

I have similar situation - I live in Missouri and worked remotely for a company in NY but never went to NY physically. What are the laws surrounding this? do I have to file NY state tax or just Missouri?