10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/rails_dev_mcp/tools/dev_server_status.rb', line 10
def call
process = RailsDevMCP.server_process || ProcessManager.new(rails_root: RailsDevMCP.rails_root)
status = process.status
if status[:running]
<<~STATUS
🟢 Rails development server is running
PID: #{status[:pid]}
Port: #{status[:port]}
URL: #{status[:url]}
Log file: #{status[:log_file]}
STATUS
else
<<~STATUS
🔴 Rails development server is not running
Port: #{status[:port]} (configured)
Log file: #{status[:log_file]}
Use 'start_dev_server' to start the server.
STATUS
end
end
|