Skip to content

Pass props to do streamable#246

Merged
threepointone merged 3 commits intomainfrom
pass-props-to-do-streamable
May 3, 2025
Merged

Pass props to do streamable#246
threepointone merged 3 commits intomainfrom
pass-props-to-do-streamable

Conversation

@jmorrell-cloudflare
Copy link
Collaborator

Thanks to @BrandonNoad for pointing this out here: #203 (comment)

In refactoring to prevent issues with hibernation, I removed the logic where we pass on the ctx.props to the McpAgent. init still runs so this doesn't break if the user never tries to read the props, but if they, say, need to read the user id from an auth flow, it won't be available.

Luckily it's a one-line change to fix. Most of this PR is adding tests to make sure props is available to the Agent for both SSE and Streamable

@changeset-bot
Copy link

changeset-bot bot commented May 2, 2025

🦋 Changeset detected

Latest commit: b243546

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
agents Patch
hono-agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@threepointone threepointone merged commit c4d53d7 into main May 3, 2025
1 check passed
@threepointone threepointone deleted the pass-props-to-do-streamable branch May 3, 2025 00:59
@threepointone threepointone mentioned this pull request May 3, 2025
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.

2 participants