Repository navigation
Conversation
…tor parse helper; add robots.txt timeout call_tool previously caught ValueError only, but pydantic>=2 raises ValidationError on model construction. That propagated as an unhandled exception instead of standardized INVALID_PARAMS. - Add parse_fetch_args() catching ValidationError and raising McpError(INVALID_PARAMS) - Use helper in call_tool - Add timeout=15 to robots.txt fetch to avoid hanging on slow sites Signed-off-by: Kiell Tampubolon <yeheskieltampubolon@gmail.com>
…bots.txt timeout - Simulate pydantic ValidationError on Fetch construction and assert INVALID_PARAMS via McpError - Ensure robots.txt fetch passes timeout to AsyncClient.get Signed-off-by: Kiell Tampubolon <yeheskieltampubolon@gmail.com>
Protego.can_fetch expects (user_agent, url). Passing (url, user_agent) could allow or deny erroneously under certain robots.txt, causing CI test failures in the fetch server package. Also retains explicit 15s timeout for robots.txt preflight and centralized Pydantic ValidationError→MCP INVALID_PARAMS mapping. Signed-off-by: Kiell Tampubolon <113831023+eltypical@users.noreply.github.com>
|
Thank you for this pull request, and apologies for the long wait for a response. Since it was opened, the reference servers have been rebuilt for the 2026-07-28 MCP specification (#4857) and released as v2 (2.0.0 on npm for the TypeScript servers, 2026.10.19 on PyPI for the Python servers). The code this PR changes has been replaced, and the behavior it addresses has either been fixed in v2 or no longer exists in the same form. This is not a judgment on the change or on you; it's a consequence of the code it targets having been replaced. If the problem still happens on v2, please open a fresh issue with the version you're running and steps to reproduce. Note that this repository now accepts contributions as issues rather than pull requests from anyone but its maintainers; see This is part of the backlog triage in #4875. |
Problem
Fix
Tests
Security/Resilience Impact
Signed-off-by: Kiell Tampubolon yeheskieltampubolon@gmail.com