Skip to content

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Nov 28, 2025

Add a new helper function that consolidates the common pattern of creating, starting, and initializing an MCP client. This reduces code duplication across test files and centralizes:

  • Client creation with NewStreamableHttpClient
  • Transport start
  • Initialize request with LATEST_PROTOCOL_VERSION
  • Proper resource cleanup

The helper also properly handles cleanup on failure and includes explicit ClientCapabilities in the initialize request.

Add a new helper function that consolidates the common pattern of creating, starting, and initializing an MCP client. This reduces code duplication across test files and centralizes: - Client creation with NewStreamableHttpClient - Transport start - Initialize request with LATEST_PROTOCOL_VERSION - Proper resource cleanup The helper also properly handles cleanup on failure and includes explicit ClientCapabilities in the initialize request.
@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Nov 28, 2025
@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.52%. Comparing base (fda9a56) to head (abe7dfe).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@ ## main #2796 +/- ## ======================================= Coverage 56.52% 56.52% ======================================= Files 319 319 Lines 30886 30886 ======================================= Hits 17458 17458 Misses 11924 11924 Partials 1504 1504 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@jhrozek jhrozek merged commit 5818441 into main Nov 28, 2025
35 of 36 checks passed
@jhrozek jhrozek deleted the e2e_less_boilerplate branch November 28, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

3 participants