You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add tools to config
* Simplify MCP tool filtering to use allowed_tools parameter
- Replace complex include/exclude structure with simple allowed_tools list
- Follow OpenAI specs for tool filtering (allowlist approach only)
- Simplify _filter_tools method to use list comprehension
- Update type definitions in types.py
- Remove example files as requested by maintainers
- Add comprehensive unit tests for allowed_tools functionality
This addresses PR feedback from @julien-c and @Wauplin:
- Eliminates confusion about include/exclude precedence
- Aligns with industry standards (OpenAI)
- Provides cleaner, simpler API
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Address comments
* Update src/huggingface_hub/inference/_mcp/mcp_client.py
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: Lucain <[email protected]>
0 commit comments