chore (ai/mcp): add assertCapability method to experimental MCP client#6047
Merged
iteratetograceness merged 2 commits intovercel:mainfrom Apr 29, 2025
Merged
chore (ai/mcp): add assertCapability method to experimental MCP client#6047iteratetograceness merged 2 commits intovercel:mainfrom
assertCapability method to experimental MCP client#6047iteratetograceness merged 2 commits intovercel:mainfrom
Conversation
lgrammel
approved these changes
Apr 29, 2025
lgrammel
pushed a commit
that referenced
this pull request
Apr 30, 2025
…ent (#6047) <!-- Welcome to contributing to AI SDK! We're excited to see your changes. We suggest you read the following contributing guide we've created before submitting: https://github.com/vercel/ai/blob/main/CONTRIBUTING.md --> ## Background Splits up #5972 into package changes and updates to examples. ## Summary Moves capabilities validation downstream to the request level instead of the method level. This PR adds a new private `assertCapability` method called at the request level. This means our custom, lightweight client defaults strict mode to true for tool listing and tool calling. ## Verification <!-- For features & bugfixes. Please explain how you *manually* verified that the change works end-to-end as expected (independent of automated tests). Remove the section if it's not needed (e.g. for docs). --> ## Tasks <!-- This task list is intended to help you keep track of what you need to do. Feel free to add tasks and remove unnecessary tasks as needed. Please check if the PR fulfills the following requirements: --> - [x] Tests have been added / updated (for bug fixes / features) - [ ] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root) ## Future Work <!-- Feel free to mention things not covered by this PR that can be done in future PRs. Remove the section if it's not needed. --> ## Related Issues <!-- List related issues here, e.g. "Fixes #1234". Remove the section if it's not needed. -->
lgrammel
added a commit
that referenced
this pull request
Apr 30, 2025
…ent (#6047) (#6058) ## Background Splits up #5972 into package changes and updates to examples. ## Summary Moves capabilities validation downstream to the request level instead of the method level. This PR adds a new private `assertCapability` method called at the request level. This means our custom, lightweight client defaults strict mode to true for tool listing and tool calling. Co-authored-by: Grace Yun <74513600+iteratetograceness@users.noreply.github.com>
iteratetograceness
added a commit
to iteratetograceness/ai
that referenced
this pull request
May 9, 2025
…ent (vercel#6047) (vercel#6058) ## Background Splits up vercel#5972 into package changes and updates to examples. ## Summary Moves capabilities validation downstream to the request level instead of the method level. This PR adds a new private `assertCapability` method called at the request level. This means our custom, lightweight client defaults strict mode to true for tool listing and tool calling. Co-authored-by: Grace Yun <74513600+iteratetograceness@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Splits up #5972 into package changes and updates to examples.
Summary
Moves capabilities validation downstream to the request level instead of the method level.
This PR adds a new private
assertCapabilitymethod called at the request level. This means our custom, lightweight client defaults strict mode to true for tool listing and tool calling.Verification
Tasks
pnpm changesetin the project root)pnpm prettier-fixin the project root)Future Work
Related Issues