changed mcp setting name, changes setting option name

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

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": [

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> {

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