Addressing feedback

This commit is contained in:
Riley Shott 2025-06-11 13:44:54 -07:00
commit 4d79263a87

View file

@ -2,19 +2,6 @@
module MCP
class Transport
class << self
def register(name, transport_class)
@transports ||= {}
@transports[name] = transport_class
end
def get(name)
raise "Transport #{name} not found" unless @transports
@transports.fetch(name) { raise "Transport #{name} not found" }
end
end
# Initialize the transport with the server instance
def initialize(server)
@server = server