How to add code in function MC protocol

Hi Steve,
I am facing the case as below.how to open the protocol MC file and add some code.
IMG_20230320_185847

can you link to the issue please

Hi Steve,
I already wrote the code in mcprotocol as pic below. But still appears error time out.please look the pic.