There's no reason a totp/otp needs to be read/typed in the clear - that's merely a convenient way to bridge trust from a phone to a desktop etc.
The otp is proof that you "possess" the otp secret.
Then again, it's a shared secret - so if the server side is compromised - all bets are off. Here client certificates/public key crypto does better.