changed mcp setting name, changes setting option name

This commit is contained in:
Evan committed 2025-01-24 14:48:57 +08:00
1 parent c497eb1ff2
commit b1bcbfeadc
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -142,11 +142,11 @@
},
"description": "Settings for VSCode Language Model API"
},
"cline.mcp.enabled": {
"cline.mcp.mode": {
"type": "string",
"enum": [
"enabled",
"server-use-only",
"mcp-tools-only",
"disabled"
],
"enumDescriptions": [
+1 -1
View File
@@ -68,7 +68,7 @@ export class McpHub {
}
getMode(): McpMode {
return vscode.workspace.getConfiguration("cline.mcp").get<McpMode>("enabled", "enabled")
return vscode.workspace.getConfiguration("cline.mcp").get<McpMode>("mode", "enabled")
}
async getMcpServersPath(): Promise<string> {
+1 -1
View File
@@ -1,4 +1,4 @@
export type McpMode = "enabled" | "server-use-only" | "disabled"
export type McpMode = "enabled" | "mcp-tools-only" | "disabled"
export type McpServer = {
name: string