Skip to content

Support retry for MCP tool resolution#170

Open
paul-cayet wants to merge 2 commits into
mainfrom
mcp-tools-resolution-retry
Open

Support retry for MCP tool resolution#170
paul-cayet wants to merge 2 commits into
mainfrom
mcp-tools-resolution-retry

Conversation

@paul-cayet

@paul-cayet paul-cayet commented May 29, 2026

Copy link
Copy Markdown
Member

#161

Adds optional retry_policy support to MCPTool and MCPToolBox so clients can retry transient MCP tool resolution and execution failures.

This keeps the default behavior unchanged: no retry is performed unless a retry policy is explicitly configured. Missing-tool retries during list_tools() resolution only apply when WayFlow knows which tools are expected, such as through tool_filter or direct MCPTool(name=...).

Changes include:

  • Add retry_policy: Optional[RetryPolicy] to MCPTool and MCPToolBox
  • Retry expected-tool resolution when MCP list_tools() returns a partial response
  • Retry transient MCP call_tool() execution failures, including tool-missing/404-style failures

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 29, 2026
@paul-cayet paul-cayet force-pushed the mcp-tools-resolution-retry branch from 7ac0896 to 8a7cd74 Compare June 1, 2026 09:12
@dhilloulinoracle

Copy link
Copy Markdown
Contributor

Internal regression failed: Build ID #911

@paul-cayet paul-cayet force-pushed the mcp-tools-resolution-retry branch from 8a7cd74 to 9006d84 Compare June 11, 2026 13:32
@paul-cayet paul-cayet marked this pull request as ready for review June 11, 2026 13:34
@paul-cayet paul-cayet requested review from a team, cesarebernardis and sonleoracle June 11, 2026 13:34
@paul-cayet paul-cayet changed the title Add configurable retry policy for MCP tool resolution Support retry for MCP tool resolution Jun 11, 2026
@dhilloulinoracle

Copy link
Copy Markdown
Contributor

Internal regression failed: Build ID #920

Comment thread docs/wayflowcore/source/core/changelog.rst
Comment thread docs/wayflowcore/source/core/code_examples/howto_mcp.py Outdated
Comment thread docs/wayflowcore/source/core/code_examples/howto_mcp.py
Comment thread wayflowcore/src/wayflowcore/mcp/mcphelpers.py
Comment thread wayflowcore/tests/mcptools/test_mcp_tools.py Outdated
Comment thread wayflowcore/tests/mcptools/test_mcp_tools.py Outdated
Comment thread wayflowcore/src/wayflowcore/mcp/mcphelpers.py
Comment thread docs/wayflowcore/source/core/code_examples/howto_mcp.py
Comment thread wayflowcore/src/wayflowcore/mcp/mcphelpers.py
Comment thread wayflowcore/src/wayflowcore/mcp/tools.py Outdated
Comment thread wayflowcore/tests/mcptools/test_mcp_tools.py Outdated
@paul-cayet paul-cayet force-pushed the mcp-tools-resolution-retry branch from b8af16b to 2efff04 Compare June 15, 2026 13:04
@dhilloulinoracle

Copy link
Copy Markdown
Contributor

Internal regression failed: Build ID #924

@dhilloulinoracle

Copy link
Copy Markdown
Contributor

Internal regression succeeded 🍏: Build ID #925

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

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants