A more or less fully working command listener dispatching to mcp.