Exception: MCP::Methods::MissingRequiredCapabilityError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mcp/methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, capability) ⇒ MissingRequiredCapabilityError

Returns a new instance of MissingRequiredCapabilityError.



40
41
42
43
44
# File 'lib/mcp/methods.rb', line 40

def initialize(method, capability)
  super("Server does not support #{capability} (required for #{method})")
  @method = method
  @capability = capability
end

Instance Attribute Details

#capabilityObject (readonly)

Returns the value of attribute capability.



38
39
40
# File 'lib/mcp/methods.rb', line 38

def capability
  @capability
end

#methodObject (readonly)

Returns the value of attribute method.



37
38
39
# File 'lib/mcp/methods.rb', line 37

def method
  @method
end