Skip to content

Commit 2af0580

Browse files
cliffhallclaude
andcommitted
docs(fetch): move the allowed_hosts docstring entry clear of use_readability_js
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent 533b9a3 commit 2af0580

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/fetch/src/mcp_server_fetch/server.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,12 @@ async def serve(
786786
custom_user_agent: Optional custom User-Agent string to use for requests
787787
ignore_robots_txt: Whether to ignore robots.txt restrictions
788788
proxy_url: Optional proxy URL to use for requests
789+
allowed_hosts: When given, the only hosts the server may fetch from:
790+
exact hosts, or ``*.example.com`` for any subdomain of it, checked
791+
in addition to the private-address guard. Empty or None allows
792+
every host
789793
allow_private_ips: Allow fetching private, loopback and link-local
790794
addresses, which are refused by default
791-
allowed_hosts: When given, the only hosts the server may fetch from:
792-
exact hosts, or ``*.example.com`` for any subdomain of it. Empty
793-
or None allows every host
794795
use_readability_js: Extract HTML with Readability.js under Node when
795796
Node is on PATH; False always uses the pure-Python extractor
796797
"""

0 commit comments

Comments
 (0)