Skip to content

feat: implement MCP progress notifications in MCPClient#2290

Open
joshwand wants to merge 12 commits into
strands-agents:mainfrom
joshwand:copilot/implement-mcp-progress-notifications
Open

feat: implement MCP progress notifications in MCPClient#2290
joshwand wants to merge 12 commits into
strands-agents:mainfrom
joshwand:copilot/implement-mcp-progress-notifications

Conversation

@joshwand

@joshwand joshwand commented May 14, 2026

Copy link
Copy Markdown

Description

Adds basic support for MCP-Progress notifications in Strands MCPClient.

Related Issues

#1812

Type of Change

New feature

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • I ran hatch run prepare
  • I ran full sdk test suite
  • I created a test agent that processes the callbacks by sending them in the agent stream as progress messages.

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.

Copilot AI and others added 3 commits May 5, 2026 06:05
- Add `progress_callback: ProgressFnT | None` parameter to `MCPClient.__init__`
- Thread callback through `call_tool_sync`, `call_tool_async`, and
  `_create_call_tool_coroutine` to `ClientSession.call_tool()`
- Support per-call override: per-call callback takes precedence over instance callback
- Export `ProgressFnT` from `strands.tools.mcp` package
- Update existing tests to include `progress_callback` in call assertions
- Add new tests for instance-level callback, per-call override, and default None behavior

Agent-Logs-Url: https://github.com/joshwand/strands-sdk-python/sessions/7ab253b3-c748-48ed-9a8a-ae5c8508e938

Co-authored-by: joshwand <22531+joshwand@users.noreply.github.com>
@yonib05 yonib05 added the area-mcp MCP related label May 27, 2026
Comment thread src/strands/tools/mcp/__init__.py Outdated
Comment thread src/strands/tools/mcp/mcp_client.py
@gautamsirdeshmukh

Copy link
Copy Markdown
Contributor

Thanks for taking this up! Just 2 small callouts, looks like you'll need to rebase as well, then this should be good to go!

@yonib05 yonib05 added the enhancement New feature or request label May 29, 2026
Copilot AI and others added 6 commits June 3, 2026 18:26
- Add `progress_callback: ProgressFnT | None` parameter to `MCPClient.__init__`
- Thread callback through `call_tool_sync`, `call_tool_async`, and
  `_create_call_tool_coroutine` to `ClientSession.call_tool()`
- Support per-call override: per-call callback takes precedence over instance callback
- Export `ProgressFnT` from `strands.tools.mcp` package
- Update existing tests to include `progress_callback` in call assertions
- Add new tests for instance-level callback, per-call override, and default None behavior

Agent-Logs-Url: https://github.com/joshwand/strands-sdk-python/sessions/7ab253b3-c748-48ed-9a8a-ae5c8508e938

Co-authored-by: joshwand <22531+joshwand@users.noreply.github.com>
…comments' into copilot/rebase-and-implement-pr-comments
@github-actions github-actions Bot added size/m and removed size/m labels Jun 5, 2026
@joshwand joshwand marked this pull request as ready for review June 5, 2026 20:15
@joshwand

joshwand commented Jun 5, 2026

Copy link
Copy Markdown
Author

@gautamsirdeshmukh updated from upstream/main; made suggested changes, added docs. PR ready for review/merge. 🙏

@yonib05 yonib05 added the python Pull requests that update python code label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mcp MCP related enhancement New feature or request python Pull requests that update python code size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants