Class: GroqRuby::MCP::Protocol::V2024_11_05

Inherits:
Object
  • Object
show all
Defined in:
lib/groq_ruby/mcp/protocol/v2024_11_05.rb

Overview

MCP protocol version 2024-11-05 — the original public release. Stdio transport only; no tasks, no elicitation, no _meta fields.

Class name underscores deliberately mirror the wire format.

Constant Summary collapse

VERSION =

rubocop:disable Naming/ClassAndModuleCamelCase

"2024-11-05".freeze

Instance Method Summary collapse

Instance Method Details

#initialize_params(client_info:) ⇒ Hash

Build the ‘params` payload for the JSON-RPC `initialize` request.

Parameters:

  • client_info (Hash)

    ‘version:` describing the client

Returns:

  • (Hash)


19
20
21
22
23
24
25
# File 'lib/groq_ruby/mcp/protocol/v2024_11_05.rb', line 19

def initialize_params(client_info:)
  {
    protocolVersion: VERSION,
    capabilities: {},
    clientInfo: client_info
  }
end

#versionString

Returns the protocol version this object speaks.

Returns:

  • (String)

    the protocol version this object speaks



12
13
14
# File 'lib/groq_ruby/mcp/protocol/v2024_11_05.rb', line 12

def version
  VERSION
end