Merge pull request #339 from koic/remove_useless_condition_in_examples

Remove useless condition in example
This commit is contained in:
Koichi ITO 2026-05-09 12:25:20 +09:00 • committed by GitHub
commit 811c56ae80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -137,8 +137,7 @@ class MCPHTTPClient
end
end
# Main script
if __FILE__ == $PROGRAM_NAME
def main
puts <<~MESSAGE
MCP HTTP Client Example
Make sure the HTTP server is running (ruby examples/http_server.rb)
@ -182,3 +181,5 @@ if __FILE__ == $PROGRAM_NAME
client.close_session
end
end
main

View file

@ -176,4 +176,4 @@ def main
end
end
main if __FILE__ == $PROGRAM_NAME
main