Commit Graph

12 Commits

Author SHA1 Message Date
thecaptain789
8614dff06f fix(fetch): update to httpx 0.28+ proxy parameter
The httpx library renamed 'proxies' to 'proxy' in version 0.28.0.
This updates the fetch server to use the new parameter name and
removes the version cap on httpx.

Fixes #3287
2026-02-06 15:25:43 +00:00
Piyush Tripathi
71d5d71a80 test(fetch): add unit tests for fetch MCP server
Add comprehensive test coverage for the fetch server:
- TestGetRobotsTxtUrl: 6 tests for URL parsing
- TestExtractContentFromHtml: 3 tests for HTML-to-markdown conversion
- TestCheckMayAutonomouslyFetchUrl: 5 tests for robots.txt handling
- TestFetchUrl: 6 tests for URL fetching with various scenarios

Total: 20 tests covering:
- URL parsing and robots.txt URL generation
- HTML content extraction and markdown conversion
- robots.txt permission checking (401, 403, 404, allow/disallow)
- HTTP response handling (success, errors, raw mode)
- Proxy support

Also adds pytest and pytest-asyncio as dev dependencies.
2026-01-28 14:31:01 -08:00
shiquda
9a4d513724 fix(fetch): specify httpx<0.28 to resolve proxy problem
- AsyncClient.__init__() got an unexpected keyword argument 'proxies'
2025-03-30 22:33:51 +08:00
Aleksey Zhukov
ebecd590e2 Update error handling to use ErrorData consistently
Also:
Updated mcp dependency from 1.0.0 to 1.1.3

This aligns with MCP's error handling patterns and provides better
structured error information.
2025-01-10 21:53:57 +01:00
David Soria Parra
e7e1c85058 python servers 0.6.2 2024-12-04 15:57:31 +00:00
David Soria Parra
2578d6f668 python servers 0.6.1 2024-11-29 18:00:23 +00:00
David Soria Parra
f86486984c python servers 0.6.0 2024-11-29 17:54:40 +00:00
Jack Adamson
467330de6e update fetch server to use readability JS if node is installed 2024-11-28 18:44:33 +00:00
Jack Adamson
caed64d5db update dependencies 2024-11-25 20:04:59 +00:00
Jack Adamson
84321c89cf make the fetch mcp-server obey robots.txt 2024-11-22 19:04:04 +00:00
Jack Adamson
4fa58d546b add better exception handling 2024-11-22 15:30:28 +00:00
Jack Adamson
781571b40d add fetch MCP server 2024-11-22 12:33:19 +00:00