How to add code in function MC protocol

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

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.