This paper introduces a comprehensive and resilient multi-energy system (MES) designed for independent planning and real-time implementation. A robust daily coordinated planning model is proposed, incorporating adjustable optimization with fundamental operational and uncertainty constraints. The model integrates various energy sources and systems, including photovoltaics, wind turbines, combined heat and power (CHP) units, energy storage system (ESS), electric vehicle (EV), electric boilers, and power-to-gas (P2G) facilities, to manage electricity, natural gas, and heat demands. The objective is to minimize MES operational costs while meeting electricity and heat requirements, considering renewable energy uncertainties. It includes the development of a two-stage flexible robust optimization model that accounts for energy equilibrium, capacity constraints, and demand response mechanisms. The model incorporates price-based demand response with both switchable and interruptible loads, enhancing system controllability and flexibility. Additionally, a scenario generation and reduction technique based on the Kantorovich distance is employed to effectively manage forecast errors and uncertainties. A novel modified Slime Mold Algorithm (SMA) is utilized to solve the optimization problem, demonstrating superior convergence and computational efficiency compared to traditional meta-heuristics. The slime mold algorithm is further enhanced with chaos theory, using a sine map to introduce dynamic exploration capabilities. The findings indicate that the proposed multi-energy system model effectively balances electricity, natural gas, and heat loads while accommodating renewable energy fluctuations. The enhanced slime mold algorithm provides optimal solutions swiftly, ensuring reliable and cost-effective multi-energy system operation.