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]
" \u{1F7E2} Rails development server is running\n \n PID: \#{status[:pid]}\n Port: \#{status[:port]}\n URL: \#{status[:url]}\n Log file: \#{status[:log_file]}\n STATUS\n else\n <<~STATUS\n \u{1F534} Rails development server is not running\n \n Port: \#{status[:port]} (configured)\n Log file: \#{status[:log_file]}\n \n Use 'start_dev_server' to start the server.\n STATUS\n end\nend\n"
|