Server.ran: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/server.bend as Server Lines 442-450 of ezmcp@0.1.0.0/src/server.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/server.bend&start_line=442&end_line=450 import Base import emerging-ezjson@1.2.0.0/src/value.bend as Value import ezmcp@0.1.0.0/src/rpc.bend as Rpc # the reply to a tool call under revision `rev`, once the runner answered: # its tool result, shaped for the revision, or the protocol error it chose # (server/tools#error-handling) def ran(rev: String, id: Value.Json, out: Rpc.Out) -> Value.Json: match out: case Rpc.Ok{result}: Rpc.reply(id, Rpc.Ok{shape(rev, result)}) case Rpc.Err{c, message}: Rpc.reply(id, Rpc.Err{c, message}) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=Out https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=reply https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=shape