Exception: MCP::Client::SkillVerificationError

Inherits:
SkillError
  • Object
show all
Defined in:
lib/mcp/client/skill_errors.rb

Overview

The content a resources/read returned does not match the skill's manifest: reason is one of :contents (not exactly one item for the requested URI with exactly one of text or blob, an undecodable blob, or an item nested too deeply to copy), :size, :digest, :parse (the SKILL.md frontmatter cannot be read), or :frontmatter (it differs from the entry). The skill is latched for the life of the connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, uri:, skill_uri:, reason:) ⇒ SkillVerificationError

Returns a new instance of SkillVerificationError.



22
23
24
25
26
27
# File 'lib/mcp/client/skill_errors.rb', line 22

def initialize(message, uri:, skill_uri:, reason:)
  super(message)
  @uri = uri
  @skill_uri = skill_uri
  @reason = reason
end

Instance Attribute Details

#reason ⇒ Object (readonly)

Returns the value of attribute reason.



20
21
22
# File 'lib/mcp/client/skill_errors.rb', line 20

def reason
  @reason
end

#skill_uri ⇒ Object (readonly)

Returns the value of attribute skill_uri.



20
21
22
# File 'lib/mcp/client/skill_errors.rb', line 20

def skill_uri
  @skill_uri
end

#uri ⇒ Object (readonly)

Returns the value of attribute uri.



20
21
22
# File 'lib/mcp/client/skill_errors.rb', line 20

def uri
  @uri
end