Skip to content

fix(web-security): retry transient Caido/proxy MCP failures instead o…#62

Merged
GangGreenTemperTatum merged 1 commit into
mainfrom
ads/cap-1120-surface-intermittent-caido-mcp-behavior-in-web-capability
Jun 26, 2026
Merged

fix(web-security): retry transient Caido/proxy MCP failures instead o…#62
GangGreenTemperTatum merged 1 commit into
mainfrom
ads/cap-1120-surface-intermittent-caido-mcp-behavior-in-web-capability

Conversation

@GangGreenTemperTatum

@GangGreenTemperTatum GangGreenTemperTatum commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

…f giving up

Three changes to prevent the model from marking proxy MCPs as 'intermittently unavailable' after a single transient failure:

  1. mcp/caido.py: safe_get() now retries once (2s delay) before returning an error. CONNECT_TIMEOUT raised from 10s to 30s to accommodate Caido under load or slow token refresh.

  2. agents/web-security.md: replaced 'do not retry' proxy guidance with 'retry once -- transient connection issues are common'. Also updated thermoptic guidance for consistency.

  3. tests/test_caido_mcp.py: 7 new tests covering retry-on-transient, both-fail-returns-error, client-reset-between-retries, and delay-is-respected.

Fixes: CAP-1120

…f giving up

Three changes to prevent the model from marking proxy MCPs as
'intermittently unavailable' after a single transient failure:

1. mcp/caido.py: safe_get() now retries once (2s delay) before
   returning an error.  CONNECT_TIMEOUT raised from 10s to 30s to
   accommodate Caido under load or slow token refresh.

2. agents/web-security.md: replaced 'do not retry' proxy guidance
   with 'retry once -- transient connection issues are common'.
   Also updated thermoptic guidance for consistency.

3. tests/test_caido_mcp.py: 7 new tests covering retry-on-transient,
   both-fail-returns-error, client-reset-between-retries, and
   delay-is-respected.

The SDK side (dreadnode-tiger) adds complementary transport-level
retry in _make_execute_on_server for the general MCP case.

Fixes: CAP-1120
@GangGreenTemperTatum GangGreenTemperTatum merged commit aed8a22 into main Jun 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant