Skip to content

Comments

fix: add mcp as explicit dependency in strands template#366

Merged
notgitika merged 1 commit intomainfrom
template-fixes
Feb 20, 2026
Merged

fix: add mcp as explicit dependency in strands template#366
notgitika merged 1 commit intomainfrom
template-fixes

Conversation

@tejaskash
Copy link
Contributor

Summary

  • The strands template's mcp_client/client.py imports directly from the mcp package (from mcp.client.streamable_http import streamablehttp_client), but mcp was not declared in pyproject.toml
  • It was only available as a transitive dependency through strands-agents, which is fragile coupling that may break on any strands-agents update
  • Adds "mcp >= 1.19.0" as an explicit dependency, matching the version floor used by the langchain_langgraph template

Test plan

  • All 148 unit test files pass (1737 tests)
  • Snapshot updated and verified
  • pip install --dry-run confirms no dependency resolution conflicts between mcp >= 1.19.0 and strands-agents >= 1.13.0

The strands template's mcp_client/client.py imports directly from the
mcp package, but mcp was not declared in pyproject.toml. It was only
available as a transitive dependency through strands-agents, which is
fragile coupling that may break on any strands-agents update.
@tejaskash tejaskash requested a review from a team February 20, 2026 17:14
@github-actions github-actions bot added the size/xs PR size: XS label Feb 20, 2026
@github-actions
Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 43.53% 2883 / 6623
🔵 Statements 43.12% 3038 / 7045
🔵 Functions 45.53% 607 / 1333
🔵 Branches 48.48% 1893 / 3904
Generated in workflow #475 for commit a004764 by the Vitest Coverage Report Action

@notgitika notgitika merged commit c6d0735 into main Feb 20, 2026
16 of 18 checks passed
@notgitika notgitika deleted the template-fixes branch February 20, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants