Internal Release 0.3.0
Add configurable exception reporter Avoid leaking tool exceptions by sending them to a configurable exception reporter Add optional context to pass to tools Add basic instrumentation data/labels
This commit is contained in:
parent
f5a3567494
commit
0645351585
1 changed files with 359 additions and 39 deletions
13
lib/model_context_protocol/configuration.rb
Normal file
13
lib/model_context_protocol/configuration.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ModelContextProtocol
|
||||
class Configuration
|
||||
attr_accessor :exception_reporter
|
||||
attr_accessor :instrumentation_callback
|
||||
|
||||
def initialize
|
||||
@exception_reporter = ->(exception, context) {} # Default no-op reporter
|
||||
@instrumentation_callback = ->(data) {} # Default no-op callback
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue