Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelcontextprotocol/ruby-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: modelcontextprotocol/ruby-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: client-spec-complicance-initialization
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 4, 2025

  1. client: add client_info and protocol_version configuration

    - Add client_info parameter to configure client name/version
    - Add protocol_version parameter (defaults to 2025-06-18)
    - Add @initialized and @session_info instance variables for session tracking
    - Expose client_info, protocol_version, and session_info as readable attributes
    topherbullock committed Nov 4, 2025
    Configuration menu
    Copy the full SHA
    753676f View commit details
    Browse the repository at this point in the history
  2. client: add session initialization

    - Send initialize request with protocolVersion and clientInfo
      - Store session_info from server response
      - Send notifications/initialized after successful init
      - Methods now automatically initialize session on first use
    - Add session management with Mcp-Session-Id header
      - Track session_id from server responses
      - Automatically include Mcp-Session-Id header in subsequent requests
      - Expose session_id as readable `Client` attribute
    topherbullock committed Nov 4, 2025
    Configuration menu
    Copy the full SHA
    c89ee14 View commit details
    Browse the repository at this point in the history
Loading