diff --git a/package.json b/package.json index f800aeaa17..e3a7789068 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ "Disable all MCP functionality" ], "default": "enabled", - "description": "Control MCP server functionality and its inclusion in AI prompts" + "description": "Control MCP server functionality and its inclusion in AI prompts. When disabled, Cline will not be aware of MCP capabilities, saving model context window tokens." } } } diff --git a/src/core/prompts/system.ts b/src/core/prompts/system.ts index 7eaf5ffb76..9fa8f79faa 100644 --- a/src/core/prompts/system.ts +++ b/src/core/prompts/system.ts @@ -914,7 +914,7 @@ RULES - The user may provide a file's contents directly in their message, in which case you shouldn't use the read_file tool to get the file contents again since you already have it. - Your goal is to try to accomplish the user's task, NOT engage in a back and forth conversation.${ supportsComputerUse - ? `\n- The user may ask generic non-development tasks, such as "what\'s the latest news" or "look up the weather in San Diego", in which case you might use the browser_action tool to complete the task if it makes sense to do so, rather than trying to create a website or using curl to answer the question.${mcpHub.isMcpEnabled() ? "However, if an available MCP server tool or resource can be used instead, you should prefer to use it over browser_action." : ""}` + ? `\n- The user may ask generic non-development tasks, such as "what\'s the latest news" or "look up the weather in San Diego", in which case you might use the browser_action tool to complete the task if it makes sense to do so, rather than trying to create a website or using curl to answer the question.${mcpHub.getMode() !== "disabled" ? "However, if an available MCP server tool or resource can be used instead, you should prefer to use it over browser_action." : ""}` : "" } - NEVER end attempt_completion result with a question or request to engage in further conversation! Formulate the end of your result in a way that is final and does not require further input from the user. diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index f9047ec944..7787ca26a6 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -229,14 +229,6 @@ export class ClineProvider implements vscode.WebviewViewProvider { text: JSON.stringify(await getTheme()), }) } - if (e && e.affectsConfiguration("cline.mcp.enabled")) { - // Send updated MCP mode - const mode = this.mcpHub?.getMode() ?? "enabled" - await this.postMessageToWebview({ - type: "mcpEnabled", - mode, - }) - } }, null, this.disposables,