Books 1 and 2 of Starships and Sorcery, The Magus Gene: Awakening and The Magus Gene: Dominion.
Here’s the blurb for the combined saga of The Magus Gene:
Magic flows through the Milky Way. All are scanned before birth. When a starship mechanic casts spells, he becomes the galaxy’s most wanted outlaw.
Mack Rivera fixes starships for a living. He loves coastal drives, carne asada-flavored ramen, his high school sweetheart, and his scholarship at Terran Galactic New Cal. When his life is threatened, dormant magic surges to the surface, and the spells he casts save his life.
The problem is, the prenatal scan missed his magical aptitude, and every spell-slinger is registered by the Bureau of Enchanted Action and Management before they’re even born.
Arrested and transferred into the custody of starship captain Andromeda “Andry” Krios, a maverick bounty hunter, Mack is bound for a government space station known as “The Chop Shop.” But Mack has powerful friends that are willing to risk everything to keep him safe. The elves’ own Empyrean Star Navy interdicts, but they end up on the wrong side of a bandit fleet intent on adding Mack to their ranks.
With an elven prince, a cat girl, a giant, and sentient nanobots at their side, Mack and Andry join forces to uncover the secret that can topple the tyrannical Bureau. While facing deadly pirates and powerful spell-casters, they discover a cryptic prophecy tied to an ancient alien species that harbors deadly intentions.
It’s a race across alien worlds, neon cities, and space stations as they unravel the threads of a deep-rooted conspiracy. The key to their survival—and the galaxy’s future—may lie in the very magic coursing through Mack’s veins.
Here’s the Amazon link.
A lot’s gone into this. It’s a mix of grit and wonder, hard science braided with a fully developed magic system. There are space elves, and space dwarves, spaceships and spells, and a sprinkling of the zeitgeist, as seen through this author’s lens.