The internationally-accepted DEFINITION OF REFUGEE/ASYLEE: refugee status or asylum may be granted to people who have been persecuted or fear they will be persecuted on account of race, religion, nationality, and/or membership in a particular social group or political opinion and are, therefore, fearful of returning to their country of origin. (Note: Economic reasons are NEVER grounds for granting refugee/asylee status. Also, if asylum is being pursued, such a claim must be reviewed, granted or denied by the FIRST country into which the prospective asylee flees.)
Clearly, Mexico hasn't reviewed, granted or denied asylee status to the migrants currently transiting Mexican territory enroute to the US southern border. In accordance with current international protocols, Mexico is required to have done so, and if these central American itinerants met the requirements of an asylee, then Mexico must have granted them asylee status and resettlement in Mexico. If asylee status was denied, then Mexico must have deported them to their country of origin. That's the way it's SUPPOSED to work.
Regarding the CARAVAN of gate-crashers being permitted by Mexico to navigate unencumbered through Mexican territory to the US border, per Art IV Sec 4 of the US Constitution, the federal gov't is duty-bound to "protect [States] from invasion", failing which the States are duty-bound to mobilize their own State Self-Defense Forces to repel such brazen incursions.
If Mexico fails to stop the transit of this and other such caravans/flows of purported "asylees" to America's southern border, then at the very least, the US should recall its ambassador from Mexico "for consultations". And should that diplomatic shot across the bow be ignored by Mexico, then the gloves must come off: withdraw our ambassador, lodge a formal complaint with the UN High Commissioner for Refugees, impose economic sanctions, and both mobilize and deploy federal militias along the border. No more pussy-footing. Americans expect firm, credible action to stop such invasions of our sovereignty. And, guess what? We don't need a damn wall to protect our borders. We need but the political will to do so.