Mr. Spaceship by Philip K. Dick

In a near-future wartime setting, Earth attempts to gain an edge by creating a spaceship controlled by a transplanted human brain, and the story follows the volunteers, engineers, and officials who confront the moral, psychological, and practical consequences of trapping a living mind inside a machine—raising fraught questions about identity, sacrifice, and what it means to remain human when consciousness is repurposed as a weapon.

Purchase from Bookshop.org