Server.dispatch.of: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/server.bend as Server Lines 242-258 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=242&end_line=258 import Base import emerging-ezjson@1.2.0.0/main.bend as Json import emerging-ezjson@1.2.0.0/src/value.bend as Value import ezmcp@0.1.0.0/src/rpc.bend as Rpc def dispatch.of( srv: Server, meth: String, params: Value.Json, which: Method ) -> Step: match which: case Initialize{}: Now{Rpc.Ok{init(srv, params)}} case Ping{}: Now{Rpc.Ok{Json.obj([])}} case ListTools{}: Now{Rpc.Ok{list(srv)}} case CallTool{}: call(srv, params) case Other{}: Now{Rpc.Err{Rpc.MethodNotFound{}, "Method not found: " ++ meth}} Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=obj 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=Code 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/server.bend&name=Method https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=Server https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=Step https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=call https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=init https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=list