File a Part-Year Resident Return for both Missouri and Kansas. Prepare your Kansas return first, then your Missouri return.
You are correct that you would report the income you earned in Kansas while a Missouri resident as 'double taxed' if you paid Kansas tax on all your income.
Here's more info from the Missouri Dept. of Revenue:
https://dor.mo.gov/faq/personal/nonresident.php