Skip to content

fix(mcp): retry registry connects without server/discover on session ID mismatch - #357

Merged
birdayz merged 1 commit into
mainfrom
jb/registry-discover-fallback
Nov 26, 2026
Merged

birdayz merged 1 commit into
mainfrom
jb/registry-discover-fallback

Conversation

@birdayz

@birdayz birdayz commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

What

Managed agents on contextual MCP registries connect to MCP servers that reject server/discover with a session ID, as docs.redpanda.com does.

Changes

  • fix(mcp): connect to servers that reject server/discover with a session ID #354 retried only clientImpl.connect. Registry.connectEntry, the path behind enable-adp-mcp-contextual-registries, still failed with mismatching session IDs
  • Both paths share connectWithDiscoverFallback; the registry builds a fresh registryTransport per attempt, since a failed Connect spends it
  • New test goes through NewRegistry and Snapshot; it fails on main

References

@blacksmith-sh

blacksmith-sh Bot commented Nov 26, 2026

Copy link
Copy Markdown

Found 128 test failures on Blacksmith runners:

Failures

Test View Logs
github.com/redpanda-data/ai-sdk-go/agent/llmagent/
TestToolLoadingLiveProviders_Integration
View Logs
github.com/redpanda-data/ai-sdk-go/cmd/catalog-replay/
TestToolLoadingLiveProviders_Integration/anthropic
View Logs
github.com/redpanda-data/ai-sdk-go/cmd/catalog-replay/
TestToolLoadingLiveProviders_Integration/anthropic/local
View Logs
github.com/redpanda-data/ai-sdk-go/cmd/catalog-replay/
TestToolLoadingLiveProviders_Integration/anthropic/native
View Logs
github.com/redpanda-data/ai-sdk-go/cmd/catalog-replay/
TestToolLoadingStaleHistory_Integration/anthropic
View Logs
github.com/redpanda-data/ai-sdk-go/providers/anthropic/
TestAnthropicAdaptiveThinking_Integration
View Logs
github.com/redpanda-data/ai-sdk-go/providers/anthropic/
TestAnthropicAgentConformance_Integration
View Logs
github.com/redpanda-data/ai-sdk-go/providers/anthropic/
TestAnthropicAgentConformance_Integration/TestBasicToolCalling
View Logs
github.com/redpanda-data/ai-sdk-go/providers/anthropic/
TestAnthropicAgentConformance_Integration/TestMultiTurnToolExecution
View Logs
github.com/redpanda-data/ai-sdk-go/providers/anthropic/
TestAnthropicCachedTokens_Integration
View Logs

...and 118 more test failures. View all on Blacksmith

Fix in Cursor

@redpanda-ai-merge-bot

Copy link
Copy Markdown

⏸️ AI review: human review required

Field Value
Config version 13
Prompt version n/a
Model n/a
Engine agent-action
AI verdict not consulted (gates refused before the model ran)
Files / lines (all) 4 / 81
CI at this commit failed
Reviewable diff 6413 chars (limit 120000)
Reviewable files / lines 4 / 81
Generated (CI-verified) files / lines 0 / 0
Test / source lines 36 / 45 (tests changed with source: True)
Dependency update False
Run https://github.com/redpanda-data/ai-sdk-go/actions/runs/45840785742

Not eligible — reasons

  • CI failed for this commit

Generated by the AI review gate. The bot only posts an approval; the author merges. This is an audit record; the branch ruleset is what enforces it.

@birdayz
birdayz enabled auto-merge (squash) November 26, 2026 14:55
@Leward
Leward self-requested a review November 26, 2026 14:57
@birdayz
birdayz merged commit c303d44 into main Nov 26, 2026
12 of 13 checks passed
@birdayz
birdayz deleted the jb/registry-discover-fallback branch November 26, 2026 14:59
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.

2 participants