Skip to content

feat: add MCP retry policy to Agent Spec#200

Open
paul-cayet wants to merge 1 commit into
mainfrom
mcp-tools-resolution-retry
Open

feat: add MCP retry policy to Agent Spec#200
paul-cayet wants to merge 1 commit into
mainfrom
mcp-tools-resolution-retry

Conversation

@paul-cayet

Copy link
Copy Markdown
Member

Supporting Agent Spec PR for oracle/wayflow#170

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

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 15, 2026
@dhilloulinoracle

Copy link
Copy Markdown
Contributor

Internal regression succeeded 🍏: Build ID #503


``retry_policy`` optionally specifies a ``RetryPolicy`` for MCP toolbox
discovery/resolution and for the execution of tools generated by the toolbox.
This is distinct from retry policies on remote MCP transports, which apply to

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about what does this involve (same for the equivalent paragraph in MCPTool). What kind of failures does it apply to? Does it mean that, for example, service_error_retry_on_any_5xx and recoverable_statuses don't apply (in which case we should make clear that these attributes should not be part of it)?

I think we need to be more clear on what this applies to, as we say "it's not the same as this other thing", but I feel like we don't say what it is. Also, whenever there's a "Runtime implementations decide ..." we are giving up on cross-framework consistency at spec level. I think we need to say what it should apply to, and if runtimes don't support it, that's on the runtime adapter.

runtime handling session management and data relay.

``retry_policy`` optionally specifies a ``RetryPolicy`` for direct MCP tool
resolution and execution. This is distinct from retry policies on remote MCP

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could explain more clearly what "resolution" and "execution" mean

# .. end-##_OAuth_in_MCP_Tools

# .. start-##_MCP_Retry_Policy
mcp_client_for_retry = SSETransport(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have an example with both the retry on the transport and the retry on the MCP tool?

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