Class: StatusMcp::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/status_mcp/server.rb

Defined Under Namespace

Classes: BaseTool, FetchStatusTool, GetServiceDetailsTool, ListServicesTool, SearchServicesTool

Class Method Summary collapse

Class Method Details

.startObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/status_mcp/server.rb', line 13

def self.start
  server = FastMcp::Server.new(name: "status_mcp", version: StatusMcp::VERSION)

  server.register_tool(SearchServicesTool)
  server.register_tool(GetServiceDetailsTool)
  server.register_tool(ListServicesTool)
  server.register_tool(FetchStatusTool)

  server.start
end