The need for ultrathin fiber-based devices that can deliver light to confined places in order to perform imaging and/or laser ablation of a desired target has been a research area of significant interest. The current endoscopic devices are based on distal optics and scanning mechanisms to focus and scan the light in the end of the fiber. The distal components are limiting factors for decreasing the size of the device. However, using wavefront shaping techniques, lensless focusing and scanning of a laser focus spot through the fiber can be achieved, enabling a smaller endoscopic tool. In our case, a high power focus spot is created by wavefront shaping of the light through a multicore fiber (MCF), providing the possibility of two-photon fluorescence (TPF) imaging. Femtosecond laser ablation through the endoscopic device can be also a powerful tool for a range of applications. Therefore, we investigate limitations in the maximum peak power that can be delivered through the MCF due to nonlinear effects induced in the fiber cores in the ablation peak power regime. After characterizing the capabilities of our system, we demonstrate that femtosecond pulsed laser ablation can be performed through the MCF.