From e1d502991d705d1aa2da375a2d9fd40ab02b6e49 Mon Sep 17 00:00:00 2001 From: tanzhenxin Date: Fri, 15 Aug 2025 17:58:05 +0800 Subject: [PATCH] chore: remove https restricton --- packages/core/src/tools/web-fetch.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/core/src/tools/web-fetch.ts b/packages/core/src/tools/web-fetch.ts index 01070537..bf7ab21d 100644 --- a/packages/core/src/tools/web-fetch.ts +++ b/packages/core/src/tools/web-fetch.ts @@ -46,7 +46,7 @@ export class WebFetchTool extends BaseTool { super( WebFetchTool.Name, 'WebFetch', - 'Fetches content from a specified URL and processes it using an AI model\n- Takes a URL and a prompt as input\n- Fetches the URL content, converts HTML to markdown\n- Processes the content with the prompt using a small, fast model\n- Returns the model\'s response about the content\n- Use this tool when you need to retrieve and analyze web content\n\nUsage notes:\n - IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions. All MCP-provided tools start with "mcp__".\n - The URL must be a fully-formed valid URL\n - HTTP URLs will be automatically upgraded to HTTPS\n - The prompt should describe what information you want to extract from the page\n - This tool is read-only and does not modify any files\n - Results may be summarized if the content is very large', + 'Fetches content from a specified URL and processes it using an AI model\n- Takes a URL and a prompt as input\n- Fetches the URL content, converts HTML to markdown\n- Processes the content with the prompt using a small, fast model\n- Returns the model\'s response about the content\n- Use this tool when you need to retrieve and analyze web content\n\nUsage notes:\n - IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions. All MCP-provided tools start with "mcp__".\n - The URL must be a fully-formed valid URL\n - The prompt should describe what information you want to extract from the page\n - This tool is read-only and does not modify any files\n - Results may be summarized if the content is very large', Icon.Globe, { properties: { @@ -82,11 +82,6 @@ export class WebFetchTool extends BaseTool { .replace('/blob/', '/'); } - // Upgrade HTTP to HTTPS - if (url.startsWith('http://')) { - url = url.replace('http://', 'https://'); - } - try { const response = await fetchWithTimeout(url, URL_FETCH_TIMEOUT_MS); if (!response.ok) {