Skip to content

Invalid mcp_call Event Type #1562

Open
Open
@ghdcksgml1

Description

@ghdcksgml1

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

Looking at the OpenAI API reference, the event type for mcp_call arguments is documented as response.mcp_call.arguments.delta. However, openai-node represents this event as response.mcp_call.arguments_delta.

I tried changing the event type to match the API reference documentation using ts-ignore, but it still didn't work. When I checked what was actually being sent, I was shocked to find that it's coming through as response.mcp_call_arguments.delta...

Please fix this bug!

Interestingly, the openai-agent project is using response.mcp_call_arguments.delta lol

To Reproduce

check my link

Code snippets

OS

macOS

Node version

Node 22

Library version

openai latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions