WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

MCP client doesn't default to message for SSE events #10915

@paoloricciuti

Description

@paoloricciuti

Description

By default an SSE event without an event type should be message but the process event function is expecting event to be message before proceeding.

This is wrong since servers can send just the data part and it should default to message.

I'll open up a PR tomorrow to fix this if someone doesn't beat me to it.

AI SDK Version

@ai-sdk/[email protected]

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions