From 28475f10a736f0f037f54fb573ebc4c13a06367a Mon Sep 17 00:00:00 2001 From: Seungjae Lee Date: Tue, 28 Jul 2026 02:10:36 +0900 Subject: [PATCH] chore: bump openai-agents to 0.19.0 and openai to 2.48.0 openai-agents 0.17.3 requires mcp<2, which conflicts with fastmcp>=4.0 that requires mcp>=2.0.0b2. Bumping to 0.19.0 which includes MCP Python SDK v2 compatibility (see openai/openai-agents-python#3989). Vetted: stdio + streamable-http transports tested against fastmcp 4.0.0a2; InputTokensDetails issue #187 (the reason for the original openai==2.44.0 pin) is resolved in openai-agents 0.19.0. Bump openai to 2.48.0 which openai-agents 0.19.0 declares as minimum compatible. Exact pins preserved per supply-chain policy. Why-comments added/updated. --- pyproject.toml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 389a8b2b..8a29393e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,12 +38,15 @@ dependencies = [ "click==8.4.0", "watchdog==6.0.0", "litellm==1.87.2", - "openai-agents==0.17.3", - # openai 2.45.0 added a required `cache_write_tokens` field to - # InputTokensDetails that openai-agents 0.17.3 does not set, crashing - # usage parsing on every response (issue #187). Pin below 2.45 until - # openai-agents catches up. - "openai==2.44.0", + # openai-agents 0.19.0 adds MCP Python SDK v2 compatibility (mcp 2.0.0b2). + # mcp<2 (required by 0.17.3) conflicts with fastmcp>=4 which requires + # mcp>=2.0.0b2. Vetted: stdio + streamable-http transports tested against + # fastmcp 4.0.0a2; InputTokensDetails issue #187 resolved in 0.19.0. + "openai-agents==0.19.0", + # openai 2.48.0 is the minimum that openai-agents 0.19.0 declares compatible. + # The InputTokensDetails crash (issue #187) that pinned us to 2.44.0 is + # resolved in openai-agents 0.19.0 which correctly handles cache_write_tokens. + "openai==2.48.0", "pyyaml==6.0.3", "python-dotenv==1.2.2", "json-repair==0.59.10",