Class: MCP::Client::SkillReadResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp/client/skills.rb

Overview

A skill file read and verified by read_skill_resource: bytes is the verified content as a frozen binary-encoded String (the decoded blob, or the bytes of the text), mime_type is the server's unverified display metadata (never a reason to pick an interpreter), contents is the raw frozen contents Array, skill is the entry object the content was checked against, and verified is true: the digest, size, and (for a SKILL.md) frontmatter matched. Every value is independent of the objects it was built from, so mutating a source cannot change the result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ SkillReadResult

Returns a new instance of SkillReadResult.



32
33
34
35
# File 'lib/mcp/client/skills.rb', line 32

def initialize(**kwargs)
  super(**kwargs)
  freeze
end

Instance Attribute Details

#bytes ⇒ Object

Returns the value of attribute bytes

Returns:

  • (Object) —

    the current value of bytes



31
32
33
# File 'lib/mcp/client/skills.rb', line 31

def bytes
  @bytes
end

#contents ⇒ Object

Returns the value of attribute contents

Returns:

  • (Object) —

    the current value of contents



31
32
33
# File 'lib/mcp/client/skills.rb', line 31

def contents
  @contents
end

#mime_type ⇒ Object

Returns the value of attribute mime_type

Returns:

  • (Object) —

    the current value of mime_type



31
32
33
# File 'lib/mcp/client/skills.rb', line 31

def mime_type
  @mime_type
end

#skill ⇒ Object

Returns the value of attribute skill

Returns:

  • (Object) —

    the current value of skill



31
32
33
# File 'lib/mcp/client/skills.rb', line 31

def skill
  @skill
end

#uri ⇒ Object

Returns the value of attribute uri

Returns:

  • (Object) —

    the current value of uri



31
32
33
# File 'lib/mcp/client/skills.rb', line 31

def uri
  @uri
end

#verified ⇒ Object

Returns the value of attribute verified

Returns:

  • (Object) —

    the current value of verified



31
32
33
# File 'lib/mcp/client/skills.rb', line 31

def verified
  @verified
end