Skip to content

fix: Upgrade mcp minimum dependency to 1.23.0 for Tasks support#1674

Open
clareliguori wants to merge 1 commit intostrands-agents:mainfrom
clareliguori:upgrade-mcp-dep
Open

fix: Upgrade mcp minimum dependency to 1.23.0 for Tasks support#1674
clareliguori wants to merge 1 commit intostrands-agents:mainfrom
clareliguori:upgrade-mcp-dep

Conversation

@clareliguori
Copy link
Contributor

Description

The recent changes for MCP tasks support in ecfb864 assume that the Pydantic models from the MCP SDK have tasks attrs. I happened to have an older MCP 1.22.0 cached locally, and got errors like:

      | Traceback (most recent call last):
      |   File "/home/ANT.AMAZON.COM/liguori/code/library-book-renewal-agent/.venv/lib/python3.13/site-packages/strands/tools/mcp/mcp_client.py", line 746, in _async_background_thread
      |     and caps.tasks is not None
      |         ^^^^^^^^^^
      |   File "/home/ANT.AMAZON.COM/liguori/code/library-book-renewal-agent/.venv/lib/python3.13/site-packages/pydantic/main.py", line 1026, in __getattr__
      |     raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
      | AttributeError: 'ServerCapabilities' object has no attribute 'tasks'
      +------------------------------------

This change upgrades to the minimum version where Tasks was added to the MCP SDK.

Type of Change

Bug fix

Testing

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant