The optimization of radiofrequency-wave (RF) systems for fusion experiments is often performed using ray-tracing codes, which rely on the geometrical-optics (GO) approximation. However, GO fails at caustics such as cutoffs and focal points, erroneously predicting the wave intensity to be infinite. This is a critical shortcoming of GO-based methods, as often the wave intensity at a caustic is precisely the quantity being optimized, for example, when a wave is focused on a resonance to provide plasma heating. Researchers often turn to full-wave modeling in such situations, which are computationally expensive and thereby limit the speed at which such optimizations can be performed. In previous work, we have developed a less expensive alternative called metaplectic geometrical optics (MGO). Instead of evolving the electric field ψ in the usual x (coordinate) or k (spectral) representation, MGO uses a mixed X = Ax + Bk representation. By continuously adjusting the matrix coefficients A and B along the rays, one can ensure that GO remains valid in the X variables, so ψ(X) can be calculated efficiently and without caustic singularities. The result is then mapped back onto the original x space using integrals (called metaplectic transforms) that can be efficiently computed using a numerical steepest-descent method. Here, we overview the theory of MGO and discuss recently developed algorithms that will aid the development of an MGO-based ray-tracing code. We also demonstrate the potential utility of MGO by numerically computing the spectrum of a wave bounded between two cutoffs in a quadratic plasma cavity.