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
Copy file name to clipboardExpand all lines: src/fetch/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The fetch tool will truncate the response, but by using the `start_index` argume
26
26
27
27
## Installation
28
28
29
-
Optionally: Install node.js, this will cause the fetch server to use a different HTML simplifier that is more robust.
29
+
Optionally: Install node.js, this will cause the fetch server to use a different HTML simplifier that is more robust. If `node` is not available, the server falls back to the Python-only simplifier.
30
30
31
31
### Using uv (recommended)
32
32
@@ -170,6 +170,10 @@ This can be customized by adding the argument `--user-agent=YourUserAgent` to th
170
170
171
171
The server can be configured to use a proxy by using the `--proxy-url` argument.
172
172
173
+
### Customization - HTML simplifier
174
+
175
+
By default, the server uses the Node.js readability simplifier when `node` is available on `PATH`, and otherwise falls back to readabilipy's Python-only simplifier. If a host has Node.js installed but the readability path is slow or misconfigured, add `--no-readability-js` to force the Python-only simplifier.
176
+
173
177
## Windows Configuration
174
178
175
179
If you're experiencing timeout issues on Windows, you may need to set the `PYTHONIOENCODING` environment variable to ensure proper character encoding:
message=f"Failed to fetch robots.txt {robot_txt_url} due to a connection issue",
86
-
))
89
+
raiseMcpError(
90
+
ErrorData(
91
+
code=INTERNAL_ERROR,
92
+
message=f"Failed to fetch robots.txt {robot_txt_url} due to a connection issue",
93
+
)
94
+
)
87
95
ifresponse.status_codein (401, 403):
88
-
raiseMcpError(ErrorData(
89
-
code=INTERNAL_ERROR,
90
-
message=f"When fetching robots.txt ({robot_txt_url}), received status {response.status_code} so assuming that autonomous fetching is not allowed, the user can try manually fetching by using the fetch prompt",
91
-
))
96
+
raiseMcpError(
97
+
ErrorData(
98
+
code=INTERNAL_ERROR,
99
+
message=f"When fetching robots.txt ({robot_txt_url}), received status {response.status_code} so assuming that autonomous fetching is not allowed, the user can try manually fetching by using the fetch prompt",
0 commit comments