Skip to content

Commit 400a2d7

Browse files
danielmillerpclaude
andcommitted
fix(tutorials): cap pydantic for the state machine MCP servers
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>
1 parent 6d68f3a commit 400a2d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎examples/tutorials/10_async/10_temporal/020_state_machine/project/workflows/deep_research/performing_deep_research.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
# resolves ``mcp`` unpinned there, ignoring the version this project pins, so without
1919
# this constraint every server dies at import and the agent silently makes zero tool
2020
# calls. Drop the pin once the servers support mcp 2.x.
21-
_MCP_PIN = ["--with", "mcp<2"]
21+
# pydantic is capped for the same reason: openai-websearch-mcp pins mcp 1.13.1,
22+
# which imports a private pydantic helper that pydantic 2.14 removed. Drop the
23+
# cap once that server allows a newer mcp.
24+
_MCP_PIN = ["--with", "mcp<2", "--with", "pydantic<2.14"]
2225

2326
MCP_SERVERS = [
2427
StdioServerParameters(

0 commit comments

Comments
 (0)