openai/openai-agents-js v0.4.2
openai/openai-agents-js
Captured source
source ↗v0.4.2
Repository: openai/openai-agents-js
Tag: v0.4.2
Published: 2026-01-22T22:58:07Z
Prerelease: no
Release notes:
Key Changes
New utility for multiple MCP server management
Starting with this version, there is a new, convenient way to manage multiple MCP server instances. See https://github.com/openai/openai-agents-js/pull/901 and examples/mcp/mcp-servers-example.ts
New import path for aisdk() from @openai/agents-extensions
If you've been using the @openai/agents-extensions package for aisdk() helper, we now recommend importing it from @openai/agents-extensions/ai-sdk. Both import paths still work for now, but the top-level import is deprecated and will be removed in v0.5.0.
AI SDK's useChat compatibility utility under @openai/agents-extensions/ai-sdk-ui
createAiSdkUiMessageStreamResponse from @openai/agents-extensions/ai-sdk-ui enables server routes in React/Next.js apps to stream data that can be consumed by useChat on the frontend. See https://github.com/openai/openai-agents-js/pull/899 and examples/ai-sdk-ui.
What's Changed
- feat: add MCPServers lifecycle helper by @seratch in https://github.com/openai/openai-agents-js/pull/901
- feat: add AI SDK data/text stream response adapters for streamed runs by @seratch in https://github.com/openai/openai-agents-js/pull/899
- feat(agents-core): add maxTurns error handlers with runData snapshots by @seratch in https://github.com/openai/openai-agents-js/pull/896, https://github.com/openai/openai-agents-js/pull/900
- fix(agents-core): prefer run tracing config when resuming run state by @seratch in https://github.com/openai/openai-agents-js/pull/895
- test(realtime,core,extensions): add coverage for approvals, tracing, MCP, and codex helpers by @seratch in https://github.com/openai/openai-agents-js/pull/890
Documents & Other Changes
- chore(deps): bump the github-actions group with 2 updates by @dependabot[bot] in https://github.com/openai/openai-agents-js/pull/889
- docs(sessions): add manual compaction guidance for streaming by @seratch in https://github.com/openai/openai-agents-js/pull/892
- docs: update translated document pages by @github-actions[bot] in https://github.com/openai/openai-agents-js/pull/893
- chore(deps): bump hono from 4.11.3 to 4.11.4 in the npm_and_yarn group across 1 directory by @dependabot[bot] in https://github.com/openai/openai-agents-js/pull/898
- chore: update versions by @github-actions[bot] in https://github.com/openai/openai-agents-js/pull/891
Full Changelog: https://github.com/openai/openai-agents-js/compare/v0.4.1...v0.4.2