Skip to content

Fix and improve MCP server security warnings in docs #1549

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

Conversation

albertvillanova
Copy link
Member

Fix and improve MCP server security warnings in docs:

  • First, fix the repeated mention to MCPClient in the same sentence

    The same security warnings mentioned for MCPClient apply when using MCPClient

  • Restructure warnings using the inverted pyramid approach (most critical information first: call to action)
  • Make all warnings self-contained rather than referencing previous warning
    • Ensure readers who skip to this section get complete information
    • Remove the need to search for previous context

These changes follow documentation best practices by ensuring critical security information is immediately visible and complete regardless of how users navigate the documentation.

@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.

@albertvillanova albertvillanova merged commit f3c1228 into huggingface:main Jul 16, 2025
4 checks passed
@albertvillanova albertvillanova deleted the fix-docs-mcp-warning branch July 16, 2025 11:34
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