Class: MCPServer::Tools::CheckDb
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- MCPServer::Tools::CheckDb
- 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
.call ⇒ Object
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 |