This section is at https://rollingedition.com/model-context-protocol-in-practice/build-a-host#run-the-host-loop.