¶1 Robert C. Jones, Louisiana prisoner # 92145, filed the instant 28 U.S.C. § 2241 petition seeking release from his pre-trial custody in a state mental facility. He appeals from the magistrate judge’s denial of his “Emergency Application for Writ of Habeas Corpus Ad Testificandum,” which he filed several months after he filed his § 2241 petition.
¶2 This court must examine the basis of its jurisdiction on its own motion if necessary. Mosley v. Cozby, 813 F.2d 659, 660 (5th Cir.1987). There is no evidence in the record that Jones consented to proceed before the magistrate judge pursuant to 28 U.S.C. § 636(c)(1) or that the district court ever considered the magistrate judge’s order denying Jones’s emergency application for habeas relief. Consequently, we DISMISS this appeal for lack of appellate jurisdiction. See Gregg v. Linder, 349 F.3d 860, 862 (5th Cir.2003).