Skip to content

Add trust_remote_code to ToolCollection.from_mcp #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 31, 2025

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Mar 27, 2025

Add trust_remote_code to ToolCollection.from_mcp.

Important: This is a breaking change:

  • Existing code that does not pass trust_remote_code will now raise an error.
  • However, this change is necessary for security reasons: helps users be more aware of the risks associated with executing remote code

Related to:

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@aymeric-roucher aymeric-roucher left a comment

Choose a reason for hiding this comment

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

Thank you @albertvillanova !

@albertvillanova albertvillanova merged commit 346a96b into huggingface:main Mar 31, 2025
4 checks passed
@albertvillanova albertvillanova deleted the fu-1085 branch April 8, 2025 10:21
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.

3 participants