Skip to content

Commit 4ba3cc8

Browse files
wip
1 parent 1e04e5c commit 4ba3cc8

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"Disable all MCP functionality"
156156
],
157157
"default": "enabled",
158-
"description": "Control MCP server functionality and its inclusion in AI prompts"
158+
"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."
159159
}
160160
}
161161
}

src/core/prompts/system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ RULES
914914
- 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.
915915
- Your goal is to try to accomplish the user's task, NOT engage in a back and forth conversation.${
916916
supportsComputerUse
917-
? `\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." : ""}`
917+
? `\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." : ""}`
918918
: ""
919919
}
920920
- 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.

src/core/webview/ClineProvider.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
229229
text: JSON.stringify(await getTheme()),
230230
})
231231
}
232-
if (e && e.affectsConfiguration("cline.mcp.enabled")) {
233-
// Send updated MCP mode
234-
const mode = this.mcpHub?.getMode() ?? "enabled"
235-
await this.postMessageToWebview({
236-
type: "mcpEnabled",
237-
mode,
238-
})
239-
}
240232
},
241233
null,
242234
this.disposables,

0 commit comments

Comments
 (0)