Skip to content

Conversation

ashwin-ant
Copy link
Member

@ashwin-ant ashwin-ant commented Oct 16, 2024

Turns out Zod's .extend doesn't do a deep merge on fields, it's really just for adding/replacing fields. So in order for all requests to have the _meta.progressToken field, we need to explicitly extend the params field wherever we're adding params.

Copy link
Member

@jspahrsummers jspahrsummers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:ohno: but good catch!

@ashwin-ant ashwin-ant merged commit 7d70db8 into main Oct 17, 2024
3 checks passed
@ashwin-ant ashwin-ant deleted the ashwin/progress branch October 17, 2024 15:02
Pizzaface pushed a commit to RewstApp/mcp-inspector that referenced this pull request May 2, 2025
7d70db8 Merge pull request modelcontextprotocol#20 from modelcontextprotocol/ashwin/progress
65a8613 fix schema definitions for RequestSchema

git-subtree-dir: packages/mcp-typescript
git-subtree-split: 7d70db8
Pizzaface pushed a commit to RewstApp/mcp-inspector that referenced this pull request May 2, 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