ruby-sdk/bin/console
Koichi ITO 9a7b4a8465 Fix an error when using bin/console
Follow-up to #24.

This PR fixes the following error when using `bin/console`:

```console
$ bin/console
/Users/koic/.rbenv/versions/3.4.4/lib/ruby/3.4.0/bundled_gems.rb:82:
in 'Kernel.require': cannot load such file -- model_context_protocol (LoadError)
from /Users/koic/.rbenv/versions/3.4.4/lib/ruby/3.4.0/bundled_gems.rb:82:
in 'block (2 levels) in Kernel#replace_require'
        from bin/console:5:in '<main>'
```
2025-05-30 11:26:35 +09:00

15 lines
368 B
Ruby
Executable file

#!/usr/bin/env ruby
# frozen_string_literal: true
require "bundler/setup"
require "mcp"
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start
require "irb"
IRB.start(__FILE__)