You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.json
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -142,10 +142,20 @@
142
142
},
143
143
"description": "Settings for VSCode Language Model API"
144
144
},
145
-
"cline.mcp.enabled": {
146
-
"type": "boolean",
147
-
"default": true,
148
-
"description": "Include MCP server functionality in AI prompts. When disabled, the AI will not be aware of MCP capabilities. This saves context window tokens."
145
+
"cline.mcp.mode": {
146
+
"type": "string",
147
+
"enum": [
148
+
"enabled",
149
+
"mcp-tools-only",
150
+
"disabled"
151
+
],
152
+
"enumDescriptions": [
153
+
"Full MCP functionality including server use and build instructions",
154
+
"Enable MCP server use but exclude build instructions from AI prompts to save tokens",
155
+
"Disable all MCP functionality"
156
+
],
157
+
"default": "enabled",
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."
Copy file name to clipboardExpand all lines: src/core/prompts/system.ts
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ Usage:
178
178
}
179
179
180
180
${
181
-
mcpHub.isMcpEnabled()
181
+
mcpHub.getMode()!=="disabled"
182
182
? `
183
183
## use_mcp_tool
184
184
Description: Request to use a tool provided by a connected MCP server. Each MCP server can provide multiple tools with different capabilities. Tools have defined input schemas that specify required and optional parameters.
@@ -310,7 +310,7 @@ return (
310
310
</diff>
311
311
</replace_in_file>
312
312
${
313
-
mcpHub.isMcpEnabled()
313
+
mcpHub.getMode()!=="disabled"
314
314
? `
315
315
316
316
## Example 4: Requesting to use an MCP tool
@@ -357,7 +357,7 @@ It is crucial to proceed step-by-step, waiting for the user's message after each
357
357
By waiting for and carefully considering the user's response after each tool use, you can react accordingly and make informed decisions about how to proceed with the task. This iterative process helps ensure the overall success and accuracy of your work.
358
358
359
359
${
360
-
mcpHub.isMcpEnabled()
360
+
mcpHub.getMode()!=="disabled"
361
361
? `
362
362
====
363
363
@@ -405,8 +405,13 @@ ${
405
405
})
406
406
.join("\n\n")}`
407
407
: "(No MCP servers currently connected)"
408
+
}`
409
+
: ""
408
410
}
409
411
412
+
${
413
+
mcpHub.getMode()==="enabled"
414
+
? `
410
415
## Creating an MCP Server
411
416
412
417
The user may ask you something along the lines of "add a tool" that does some function, in other words to create an MCP server that provides tools and resources that may connect to external APIs for example. You have the ability to create an MCP server and add it to a configuration file that will then expose the tools and resources for you to use with \`use_mcp_tool\` and \`access_mcp_resource\`.
@@ -769,6 +774,7 @@ Remember: The MCP documentation and example provided above are to help you under
769
774
`
770
775
: ""
771
776
}
777
+
772
778
====
773
779
774
780
EDITING FILES
@@ -881,7 +887,7 @@ CAPABILITIES
881
887
: ""
882
888
}
883
889
${
884
-
mcpHub.isMcpEnabled()
890
+
mcpHub.getMode()!=="disabled"
885
891
? `
886
892
- You have access to MCP servers that may provide additional tools and resources. Each server may provide different capabilities that you can use to accomplish tasks more effectively.
887
893
`
@@ -907,7 +913,7 @@ RULES
907
913
- 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.
908
914
- Your goal is to try to accomplish the user's task, NOT engage in a back and forth conversation.${
909
915
supportsComputerUse
910
-
? `\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." : ""}`
916
+
? `\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." : ""}`
911
917
: ""
912
918
}
913
919
- 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.
@@ -923,7 +929,7 @@ RULES
923
929
: ""
924
930
}
925
931
${
926
-
mcpHub.isMcpEnabled()
932
+
mcpHub.getMode()!=="disabled"
927
933
? `
928
934
- MCP operations should be used one at a time, similar to other tool usage. Wait for confirmation of success before proceeding with additional operations.
0 commit comments