Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/tutorials/10_async/00_base/040_other_sdks/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ RUN apt-get update && apt-get install -y \
gcc \
cmake \
netcat-openbsd \
nodejs \
npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ class StateModel(BaseModel):
args=["-y", "@modelcontextprotocol/server-sequential-thinking"],
),
StdioServerParameters(
command="uvx", args=["openai-websearch-mcp"], env={"OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY", "")}
# openai-websearch-mcp pins mcp 1.13.1, which imports a private
# pydantic helper that pydantic 2.14 removed; uvx resolves pydantic
# unpinned, so cap it until the server allows a newer mcp.
command="uvx",
args=["--with", "pydantic<2.14", "openai-websearch-mcp"],
env={"OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY", "")},
),
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
Guidelines:
- Be concise and helpful
- Use tools when they would help answer the user's question
- When asked for the current weather in a place, call get_weather; never answer that from memory
- If you're unsure, ask clarifying questions
- Always provide accurate information
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ class StateModel(BaseModel):
# ),
StdioServerParameters(
command="uvx",
args=["openai-websearch-mcp"],
# openai-websearch-mcp pins mcp 1.13.1, which imports a private
# pydantic helper that pydantic 2.14 removed; uvx resolves pydantic
# unpinned, so cap it until the server allows a newer mcp.
args=["--with", "pydantic<2.14", "openai-websearch-mcp"],
env={"OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY", "")},
),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
# resolves ``mcp`` unpinned there, ignoring the version this project pins, so without
# this constraint every server dies at import and the agent silently makes zero tool
# calls. Drop the pin once the servers support mcp 2.x.
_MCP_PIN = ["--with", "mcp<2"]
# pydantic is capped for the same reason: openai-websearch-mcp pins mcp 1.13.1,
# which imports a private pydantic helper that pydantic 2.14 removed. Drop the
# cap once that server allows a newer mcp.
_MCP_PIN = ["--with", "mcp<2", "--with", "pydantic<2.14"]

MCP_SERVERS = [
StdioServerParameters(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
Guidelines:
- Be concise and helpful
- Use tools when they would help answer the user's question
- When asked for the current weather in a place, call get_weather; never answer that from memory
- If you're unsure, ask clarifying questions
- Always provide accurate information
"""
Expand Down
Loading