Skip to content

Commit 76a9460

Browse files
committed
Accept plain 'exit'/'quit' in MCP chat
Update Rakefile conversational CLI to recognize plain "exit" and "quit" as commands to leave the chat. Also update help text to list these aliases. This makes the MCP chat interface more forgiving of common exit commands.
1 parent 6d25557 commit 76a9460

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ namespace :mcp do
364364
# /trace — toggle tool-call tracing on/off
365365
# /cost — show running token + USD cost totals
366366
# /history — print conversation history
367-
# /exit — leave the chat (also: /quit, Ctrl-D, empty line)
367+
# /exit — leave the chat (also: /quit, exit, quit, Ctrl-D, empty line)
368368
# -------------------------------------------------------------------------
369369
desc "Conversational CLI: talk to your Parse data via the MCP agent"
370370
task :chat do
@@ -404,7 +404,7 @@ namespace :mcp do
404404
puts " /trace — toggle per-turn tool-call tracing on/off"
405405
puts " /cost — show running token + USD totals (and last turn)"
406406
puts " /history — print the conversation log"
407-
puts " /exit — leave (also /quit, Ctrl-D, empty line)"
407+
puts " /exit — leave (also /quit, exit, quit, Ctrl-D, empty line)"
408408
end
409409

410410
puts "=" * 70
@@ -421,7 +421,7 @@ namespace :mcp do
421421
next if line.empty?
422422

423423
case line
424-
when "/exit", "/quit"
424+
when "/exit", "/quit", "exit", "quit"
425425
break
426426
when "/help"
427427
slash_help.call

0 commit comments

Comments
 (0)