Class: MCPServer::Tools::CheckDb

Inherits:
MCP::Tool
  • Object
show all
Defined in:
lib/mcp_server/tools/check_db.rb

Overview

Tool to check if the database is running.

Class Method Summary collapse

Class Method Details

.callObject



13
14
15
16
17
# File 'lib/mcp_server/tools/check_db.rb', line 13

def self.call(*)
  MCP::Tool::Response.new(
    [{ type: 'text', text: "Database running: #{MCPServer::Config.db_running?}" }]
  )
end