Class: GroqRuby::MCP::Protocol::V2025_11_25

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

Overview

MCP protocol version 2025-11-25 — “The Task Master”. HTTP/HTTPS transport only (no stdio). Adds tasks API, structured output, _meta fields, elicitation, OAuth 2.1 — the tasks methods land in a follow-up; this stub exposes only what the HTTP transport needs (the version string for the ‘MCP-Protocol-Version` header and the `protocolVersion` field in `initialize`).

Class name underscores deliberately mirror the wire format.

Constant Summary collapse

VERSION =

rubocop:disable Naming/ClassAndModuleCamelCase

"2025-11-25".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)


23
24
25
26
27
28
29
# File 'lib/groq_ruby/mcp/protocol/v2025_11_25.rb', line 23

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



16
17
18
# File 'lib/groq_ruby/mcp/protocol/v2025_11_25.rb', line 16

def version
  VERSION
end