Method: Explicit::MCPServer::Router#initialize

Defined in:
lib/explicit/mcp_server/router.rb

#initialize(name:, version:, tools:) ⇒ Router

Returns a new instance of Router.



4
5
6
7
8
# File 'lib/explicit/mcp_server/router.rb', line 4

def initialize(name:, version:, tools:)
  @name = name
  @version = version
  @tools = tools.index_by { _1.request.get_mcp_tool_name }
end