Sonic Pipe: Sonic Pi from the command line (< 4.0)

Actually inspired by the literate programming post
I was looking for a remote interface to Sonic PI to possibly run/play from a mdbook
edited code as in the mdbook example given there.
But this seems not to be easily available jet.