Skip to content

Commit 529590a

Browse files
danielmillerpclaude
andcommitted
fix(tutorials): cap pydantic for the other-SDKs web-search MCP server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 65dc317 commit 529590a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • examples/tutorials/10_async/00_base/040_other_sdks/project

‎examples/tutorials/10_async/00_base/040_other_sdks/project/acp.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ class StateModel(BaseModel):
5454
args=["-y", "@modelcontextprotocol/server-sequential-thinking"],
5555
),
5656
StdioServerParameters(
57-
command="uvx", args=["openai-websearch-mcp"], env={"OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY", "")}
57+
# openai-websearch-mcp pins mcp 1.13.1, which imports a private
58+
# pydantic helper that pydantic 2.14 removed; uvx resolves pydantic
59+
# unpinned, so cap it until the server allows a newer mcp.
60+
command="uvx",
61+
args=["--with", "pydantic<2.14", "openai-websearch-mcp"],
62+
env={"OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY", "")},
5863
),
5964
]
6065

0 commit comments

Comments
 (0)