Class: MCP::Client::DiscoverResult

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

Overview

The server's DiscoverResult (MCP 2026-07-28, SEP-2575): the modern protocol versions it serves, its capabilities and identity, optional instructions, and the REQUIRED ttlMs/cacheScope cache hints.

Instance Attribute Summary collapse

Instance Attribute Details

#cache_scopeObject

Returns the value of attribute cache_scope

Returns:

  • (Object)

    the current value of cache_scope



98
99
100
# File 'lib/mcp/client.rb', line 98

def cache_scope
  @cache_scope
end

#capabilitiesObject

Returns the value of attribute capabilities

Returns:

  • (Object)

    the current value of capabilities



98
99
100
# File 'lib/mcp/client.rb', line 98

def capabilities
  @capabilities
end

#instructionsObject

Returns the value of attribute instructions

Returns:

  • (Object)

    the current value of instructions



98
99
100
# File 'lib/mcp/client.rb', line 98

def instructions
  @instructions
end

#server_infoObject

Returns the value of attribute server_info

Returns:

  • (Object)

    the current value of server_info



98
99
100
# File 'lib/mcp/client.rb', line 98

def server_info
  @server_info
end

#supported_versionsObject

Returns the value of attribute supported_versions

Returns:

  • (Object)

    the current value of supported_versions



98
99
100
# File 'lib/mcp/client.rb', line 98

def supported_versions
  @supported_versions
end

#ttl_msObject

Returns the value of attribute ttl_ms

Returns:

  • (Object)

    the current value of ttl_ms



98
99
100
# File 'lib/mcp/client.rb', line 98

def ttl_ms
  @ttl_ms
end