Module: GoogleCalendarMcp::Server

Defined in:
lib/google_calendar_mcp/server.rb

Class Method Summary collapse

Class Method Details

.startObject



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

def start
  server = MCP::Server.new(
    name: "google-calendar",
    tools: [
      GoogleCalendarMcp::Tools::ListCalendars,
      GoogleCalendarMcp::Tools::ListEvents,
      GoogleCalendarMcp::Tools::GetEvent
    ]
  )

  transport = MCP::Server::Transports::StdioTransport.new(server)
  transport.open
end