class DynamicGreeter
[:hello, :goodbye].each do |method|
define_method(method) do |name|
"#{method.capitalize}, #{name}!"
end
end
def method_missing(name, *args)
"Method #{name} not defined"
end
end
dg = DynamicGreeter.new
puts dg.hello("Name")
puts dg.foobar("X")
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shashankss1205/CodeGraphContext'
If you have feedback or need assistance with the MCP directory API, please join our Discord server