Skip to content

feat: implement MCP progress notifications in MCPClient#2290

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

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

Conversation

@joshwand
Copy link
Copy Markdown

@joshwand joshwand commented May 14, 2026

Description

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

Related Issues

#1812

Documentation PR

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>
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.

2 participants