Repository navigation
fix(tutorials): repair five tutorials that fail with a real model - #546
Merged
Merged
Conversation
openai-websearch-mcp pins mcp 1.13.1, which imports a private pydantic helper that pydantic 2.14 removed. uvx resolves each server unpinned, so the server died at import and the agent made no tool calls. Add pydantic<2.14 to the existing uvx pin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…CP server Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The instruction sent every weather question to get_weather, including ones the tool can't answer (for example, what causes rain), which in the Temporal tutorial also runs an extra activity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…questions (Temporal) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…questions (base) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
Five tutorials fail or flake against a real model. Three have MCP servers that die at startup, and two have agents that sometimes answer without calling their tool:
10_async/10_temporal/020_state_machine--with pydantic<2.14to the existing uvx pin10_async/10_temporal/010_agent_chatuvx openai-websearch-mcp10_async/00_base/040_other_sdksnpxfor the sequential-thinking server raisesFileNotFoundError: 'npx'nodejs npmin its Dockerfile10_async/10_temporal/110_pydantic_ai,10_async/00_base/110_pydantic_aigpt-4o-minisometimes answers a weather question without callingget_weather(seen failing all 3 attempts in one run)get_weatherand never answer from memory. The test is unchanged.The pydantic break.
openai-websearch-mcppinsmcp==1.13.1, which importseval_type_backportfrom pydantic's internals. pydantic 2.14.0, released 2026-10-08, removed it.uvxresolves each server unpinned, so it picks up 2.14.0 and the server dies at import:The agent's MCP context then fails with
Connection closedbefore the model runs, and the tests report "Did not use tool requests" or time out.Verification
uvx --with "mcp<2" openai-websearch-mcp: exits 1 with the ImportError above (pydantic 2.14.0).--with "pydantic<2.14"added: starts and exits cleanly (exit 0).mcp-server-timeandmcp-server-fetchwith the same pin also exit 0.npx -y @modelcontextprotocol/server-sequential-thinkingstarts ("running on stdio") once Node is installed.The tutorial images need to be republished after merge for the agentex integration tests to pick them up.
🤖 Generated with Claude Code

Confidence Score: 5/5
The PR appears safe to merge; the earlier weather-tool concern has been addressed.Summary
The PR updates three tutorials so their MCP servers use a compatible Pydantic version, adds Node and npm to an image that runs an
npxserver, and tells two weather agents to callget_weather.040_other_sdkstutorial image can run itsnpxserver.get_weather.Reviews (5) · Last reviewed commit: "fix(tutorials): limit the get_weather in..." · Reviewed by Greptile