Skip to content

fix: add missing MCP server event types to RealtimeServerEvent union#3243

Open
JiwaniZakir wants to merge 1 commit into
openai:mainfrom
JiwaniZakir:fix/issue-3128-realtime-mcp-server-events
Open

fix: add missing MCP server event types to RealtimeServerEvent union#3243
JiwaniZakir wants to merge 1 commit into
openai:mainfrom
JiwaniZakir:fix/issue-3128-realtime-mcp-server-events

Conversation

@JiwaniZakir
Copy link
Copy Markdown

@JiwaniZakir JiwaniZakir commented May 16, 2026

The RealtimeServerEvent TypeAlias was missing eight MCP-related event types emitted during MCP tool call flows: McpListToolsInProgress, McpListToolsCompleted, McpListToolsFailed, ResponseMcpCallArgumentsDelta, ResponseMcpCallArgumentsDone, ResponseMcpCallInProgress, ResponseMcpCallCompleted, ResponseMcpCallFailed. Without these in the union, client code switching on event type silently drops them, so MCP tool calls never complete. Added all eight to the alias in realtime_server_event.py.

Fixes #3128

Adds imports and union members for MCP tool list events and MCP call
events that were missing from the RealtimeServerEvent TypeAlias,
causing Realtime tool calls using MCP to not be handled correctly.

Fixes openai#3128

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JiwaniZakir JiwaniZakir requested a review from a team as a code owner May 16, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Realtime does not execute tool calls with mcp

1 participant