Skip to content

docs: use auto lifecycle in streamable HTTP example - #1187

Open
DaleSeo wants to merge 1 commit into
mainfrom
fix/1164-streamable-http-auto-lifecycle
Open

docs: use auto lifecycle in streamable HTTP example#1187
DaleSeo wants to merge 1 commit into
mainfrom
fix/1164-streamable-http-auto-lifecycle

Conversation

@DaleSeo

@DaleSeo DaleSeo commented Aug 18, 2026

Copy link
Copy Markdown
Member

Closes #1164.

Motivation and Context

This PR updates the example to use ClientLifecycleMode::Auto. It prefers the 2026-07-28 protocol and falls back to legacy initialization with 2025-11-25. It also gives the example the correct identity and calls the argument-free increment tool without creating an unnecessary empty JSON object.

How Has This Been Tested?

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@github-actions github-actions Bot added the T-examples Example code changes label Aug 18, 2026
@DaleSeo DaleSeo self-assigned this Aug 18, 2026
@DaleSeo
DaleSeo marked this pull request as ready for review August 18, 2026 09:12
@DaleSeo
DaleSeo requested a review from a team as a code owner August 18, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-examples Example code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Streamable HTTP client example to use the discover/Auto lifecycle

1 participant