def method.of
import ezmcp@0.1.0.0/src/server.bend as Serverimport Base
236def method.of(+meth: String) -> Method:
237 Bool.pick(Method, String.eq(meth, "initialize"), Initialize{},
238 Bool.pick(Method, String.eq(meth, "ping"), Ping{},
239 Bool.pick(Method, String.eq(meth, "tools/list"), ListTools{},
240 Bool.pick(Method, String.eq(meth, "tools/call"), CallTool{}, Other{}))))