@codingame/monaco-vscode-mcp-service-override 32.0.1 → 33.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/mcp/common/allowedMcpServersService.js +1 -1
- package/vscode/src/vs/platform/mcp/common/mcpGalleryService.js +22 -8
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcp.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpAddContextContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +61 -61
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +25 -25
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +22 -22
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +37 -37
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +17 -17
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +10 -10
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/extensionMcpDiscovery.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAbstract.js +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpContextKeys.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +13 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +11 -11
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.js +3 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +3 -3
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-mcp-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - mcp service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.7"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -27,7 +27,7 @@ let AllowedMcpServersService = class AllowedMcpServersService extends Disposable
|
|
|
27
27
|
query: `@id:${mcpAccessConfig}`
|
|
28
28
|
}).toString());
|
|
29
29
|
return (new MarkdownString(localize(
|
|
30
|
-
|
|
30
|
+
2076,
|
|
31
31
|
"Model Context Protocol servers are disabled in the Editor. Please check your [settings]({0}).",
|
|
32
32
|
settingsCommandLink
|
|
33
33
|
)));
|
|
@@ -14,7 +14,7 @@ import { IRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
14
14
|
import { TransportType, RegistryType, GalleryMcpServerStatus } from '@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpManagement';
|
|
15
15
|
import { McpGalleryManifestStatus, getMcpGalleryManifestResourceUri, McpGalleryResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpGalleryManifest';
|
|
16
16
|
import { IMcpGalleryManifestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpGalleryManifest.service';
|
|
17
|
-
import { CancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
17
|
+
import { CancellationError, isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
18
18
|
import { isString, isObject } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
19
19
|
|
|
20
20
|
var IconMimeType;
|
|
@@ -456,7 +456,7 @@ let McpGalleryService = class McpGalleryService extends Disposable {
|
|
|
456
456
|
async getReadme(gallery, token) {
|
|
457
457
|
const readmeUrl = gallery.readmeUrl;
|
|
458
458
|
if (!readmeUrl) {
|
|
459
|
-
return Promise.resolve(( localize(
|
|
459
|
+
return Promise.resolve(( localize(2077, "No README available")));
|
|
460
460
|
}
|
|
461
461
|
const uri = ( URI.parse(readmeUrl));
|
|
462
462
|
if (uri.scheme === Schemas.file) {
|
|
@@ -468,7 +468,7 @@ let McpGalleryService = class McpGalleryService extends Disposable {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
if (uri.authority !== "raw.githubusercontent.com") {
|
|
471
|
-
return ( new MarkdownString(( localize(
|
|
471
|
+
return ( new MarkdownString(( localize(2078, "You can find information about this server [here]({0})", readmeUrl)))).value;
|
|
472
472
|
}
|
|
473
473
|
const context = await this.requestService.request({
|
|
474
474
|
type: "GET",
|
|
@@ -596,11 +596,25 @@ let McpGalleryService = class McpGalleryService extends Disposable {
|
|
|
596
596
|
const text = encodeURIComponent(query.searchText);
|
|
597
597
|
url += `&search=${text}`;
|
|
598
598
|
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
599
|
+
let context;
|
|
600
|
+
try {
|
|
601
|
+
context = await this.requestService.request({
|
|
602
|
+
type: "GET",
|
|
603
|
+
url,
|
|
604
|
+
callSite: "mcpGalleryService.queryMcpServers"
|
|
605
|
+
}, token);
|
|
606
|
+
} catch (error) {
|
|
607
|
+
if (isCancellationError(error)) {
|
|
608
|
+
throw error;
|
|
609
|
+
}
|
|
610
|
+
this.logService.error(`Failed to query MCP gallery: ${error}`);
|
|
611
|
+
return {
|
|
612
|
+
servers: [],
|
|
613
|
+
metadata: {
|
|
614
|
+
count: 0
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
}
|
|
604
618
|
const data = await asJson(context);
|
|
605
619
|
if (!data) {
|
|
606
620
|
return {
|
|
@@ -111,16 +111,16 @@ registerWorkbenchContribution2(
|
|
|
111
111
|
const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
112
112
|
jsonRegistry.registerSchema(mcpSchemaId, mcpServerSchema);
|
|
113
113
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
114
|
-
EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(
|
|
114
|
+
EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(10974, "MCP Server"))),
|
|
115
115
|
[( new SyncDescriptor(McpServerEditorInput))]
|
|
116
116
|
);
|
|
117
117
|
( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
|
|
118
118
|
ctor: McpResourceQuickAccess,
|
|
119
119
|
prefix: McpResourceQuickAccess.PREFIX,
|
|
120
120
|
when: ChatContextKeys.enabled,
|
|
121
|
-
placeholder: ( localize(
|
|
121
|
+
placeholder: ( localize(10975, "Filter to an MCP resource")),
|
|
122
122
|
helpEntries: [{
|
|
123
|
-
description: ( localize(
|
|
123
|
+
description: ( localize(10976, "MCP Server Resources")),
|
|
124
124
|
commandId: McpCommandIds.AddConfiguration
|
|
125
125
|
}]
|
|
126
126
|
});
|
|
@@ -43,7 +43,7 @@ let McpAddContextContribution = class McpAddContextContribution extends Disposab
|
|
|
43
43
|
_registerAddContextMenu() {
|
|
44
44
|
this._addContextMenu.value = this._chatContextPickService.registerChatContextItem({
|
|
45
45
|
type: "pickerPick",
|
|
46
|
-
label: ( localize(
|
|
46
|
+
label: ( localize(10977, "MCP Resources...")),
|
|
47
47
|
icon: Codicon.mcp,
|
|
48
48
|
isEnabled(widget) {
|
|
49
49
|
return !!widget.attachmentCapabilities.supportsMCPAttachments;
|
|
@@ -51,7 +51,7 @@ let McpAddContextContribution = class McpAddContextContribution extends Disposab
|
|
|
51
51
|
asPicker: () => {
|
|
52
52
|
const helper = this._instantiationService.createInstance(McpResourcePickHelper);
|
|
53
53
|
return {
|
|
54
|
-
placeholder: ( localize(
|
|
54
|
+
placeholder: ( localize(10978, "Select MCP Resource...")),
|
|
55
55
|
picks: (_query, token) => this._getResourcePicks(token, helper),
|
|
56
56
|
goBack: () => {
|
|
57
57
|
return helper.navigateBack();
|
|
@@ -78,7 +78,7 @@ class ListMcpServerCommand extends Action2 {
|
|
|
78
78
|
constructor() {
|
|
79
79
|
super({
|
|
80
80
|
id: McpCommandIds.ListServer,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(10979, "List Servers")),
|
|
82
82
|
icon: Codicon.server,
|
|
83
83
|
category,
|
|
84
84
|
f1: true,
|
|
@@ -99,7 +99,7 @@ class ListMcpServerCommand extends Action2 {
|
|
|
99
99
|
const pick = quickInput.createQuickPick({
|
|
100
100
|
useSeparators: true
|
|
101
101
|
});
|
|
102
|
-
pick.placeholder = ( localize(
|
|
102
|
+
pick.placeholder = ( localize(10980, "Select an MCP Server"));
|
|
103
103
|
mcpService.activateCollections();
|
|
104
104
|
store.add(pick);
|
|
105
105
|
store.add(autorun(reader => {
|
|
@@ -110,8 +110,8 @@ class ListMcpServerCommand extends Action2 {
|
|
|
110
110
|
const firstRun = pick.items.length === 0;
|
|
111
111
|
pick.items = [{
|
|
112
112
|
id: "$add",
|
|
113
|
-
label: ( localize(
|
|
114
|
-
description: ( localize(
|
|
113
|
+
label: ( localize(10981, "Add Server")),
|
|
114
|
+
description: ( localize(10982, "Add a new server configuration")),
|
|
115
115
|
alwaysShow: true,
|
|
116
116
|
iconClass: ThemeIcon.asClassName(Codicon.add)
|
|
117
117
|
}, ...( Object.values(servers)).filter(s => s.length).flatMap(servers => [{
|
|
@@ -123,7 +123,7 @@ class ListMcpServerCommand extends Action2 {
|
|
|
123
123
|
return {
|
|
124
124
|
id: server.definition.id,
|
|
125
125
|
label: server.definition.label,
|
|
126
|
-
description: disabled ? ( localize(
|
|
126
|
+
description: disabled ? ( localize(10983, "Disabled")) : ( McpConnectionState.toString(server.connectionState.read(reader)))
|
|
127
127
|
};
|
|
128
128
|
}))])];
|
|
129
129
|
if (firstRun && pick.items.length > 3) {
|
|
@@ -152,7 +152,7 @@ class McpConfirmationServerOptionsCommand extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: McpCommandIds.ServerOptionsInConfirmation,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(10984, "Server Options")),
|
|
156
156
|
category,
|
|
157
157
|
icon: Codicon.settingsGear,
|
|
158
158
|
f1: false,
|
|
@@ -183,7 +183,7 @@ class McpServerOptionsCommand extends Action2 {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: McpCommandIds.ServerOptions,
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(10984, "Server Options")),
|
|
187
187
|
category,
|
|
188
188
|
f1: false
|
|
189
189
|
});
|
|
@@ -208,25 +208,25 @@ class McpServerOptionsCommand extends Action2 {
|
|
|
208
208
|
const disabled = isContributionDisabled(server.enablement.get());
|
|
209
209
|
items.push({
|
|
210
210
|
type: "separator",
|
|
211
|
-
label: ( localize(
|
|
211
|
+
label: ( localize(10985, "Status"))
|
|
212
212
|
});
|
|
213
213
|
if (disabled) {
|
|
214
214
|
items.push({
|
|
215
|
-
label: ( localize(
|
|
215
|
+
label: ( localize(10986, "Enable Server (Workspace)")),
|
|
216
216
|
action: "enable"
|
|
217
217
|
});
|
|
218
218
|
} else if (McpConnectionState.canBeStarted(serverState.state)) {
|
|
219
219
|
items.push({
|
|
220
|
-
label: ( localize(
|
|
220
|
+
label: ( localize(10987, "Start Server")),
|
|
221
221
|
action: "start"
|
|
222
222
|
});
|
|
223
223
|
} else {
|
|
224
224
|
items.push({
|
|
225
|
-
label: ( localize(
|
|
225
|
+
label: ( localize(10988, "Stop Server")),
|
|
226
226
|
action: "stop"
|
|
227
227
|
});
|
|
228
228
|
items.push({
|
|
229
|
-
label: ( localize(
|
|
229
|
+
label: ( localize(10989, "Restart Server")),
|
|
230
230
|
action: "restart"
|
|
231
231
|
});
|
|
232
232
|
}
|
|
@@ -234,26 +234,26 @@ class McpServerOptionsCommand extends Action2 {
|
|
|
234
234
|
const configTarget = serverDefinition?.presentation?.origin || collection?.presentation?.origin;
|
|
235
235
|
if (configTarget) {
|
|
236
236
|
items.push({
|
|
237
|
-
label: ( localize(
|
|
237
|
+
label: ( localize(10990, "Show Configuration")),
|
|
238
238
|
action: "config"
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
items.push({
|
|
242
|
-
label: ( localize(
|
|
242
|
+
label: ( localize(10991, "Show Output")),
|
|
243
243
|
action: "showOutput"
|
|
244
244
|
});
|
|
245
245
|
items.push({
|
|
246
246
|
type: "separator",
|
|
247
|
-
label: ( localize(
|
|
247
|
+
label: ( localize(10992, "Sampling"))
|
|
248
248
|
}, {
|
|
249
|
-
label: ( localize(
|
|
250
|
-
description: ( localize(
|
|
249
|
+
label: ( localize(10993, "Configure Model Access")),
|
|
250
|
+
description: ( localize(10994, "Set the models the server can use via MCP sampling")),
|
|
251
251
|
action: "configSampling"
|
|
252
252
|
});
|
|
253
253
|
if (samplingService.hasLogs(server)) {
|
|
254
254
|
items.push({
|
|
255
|
-
label: ( localize(
|
|
256
|
-
description: ( localize(
|
|
255
|
+
label: ( localize(10995, "Show Sampling Requests")),
|
|
256
|
+
description: ( localize(10996, "Show the sampling requests for this server")),
|
|
257
257
|
action: "samplingLog"
|
|
258
258
|
});
|
|
259
259
|
}
|
|
@@ -261,15 +261,15 @@ class McpServerOptionsCommand extends Action2 {
|
|
|
261
261
|
if (capabilities === undefined || (capabilities & McpCapability.Resources)) {
|
|
262
262
|
items.push({
|
|
263
263
|
type: "separator",
|
|
264
|
-
label: ( localize(
|
|
264
|
+
label: ( localize(10997, "Resources"))
|
|
265
265
|
});
|
|
266
266
|
items.push({
|
|
267
|
-
label: ( localize(
|
|
267
|
+
label: ( localize(10998, "Browse Resources")),
|
|
268
268
|
action: "resources"
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
const pick = await quickInputService.pick(items, {
|
|
272
|
-
placeHolder: ( localize(
|
|
272
|
+
placeHolder: ( localize(10999, "Select action for '{0}'", server.definition.label))
|
|
273
273
|
});
|
|
274
274
|
if (!pick) {
|
|
275
275
|
return;
|
|
@@ -320,7 +320,7 @@ class McpServerOptionsCommand extends Action2 {
|
|
|
320
320
|
editorService.openEditor({
|
|
321
321
|
resource: undefined,
|
|
322
322
|
contents: samplingService.getLogText(server),
|
|
323
|
-
label: ( localize(
|
|
323
|
+
label: ( localize(11000, "MCP Sampling: {0}", server.definition.label))
|
|
324
324
|
});
|
|
325
325
|
break;
|
|
326
326
|
default:
|
|
@@ -337,14 +337,14 @@ class McpServerOptionsCommand extends Action2 {
|
|
|
337
337
|
if (accountQuery.entities().getEntityCount().total > 1) {
|
|
338
338
|
result.push({
|
|
339
339
|
action: "disconnect",
|
|
340
|
-
label: ( localize(
|
|
340
|
+
label: ( localize(11001, "Disconnect Account")),
|
|
341
341
|
description: `(${accountName})`,
|
|
342
342
|
accountQuery
|
|
343
343
|
});
|
|
344
344
|
} else {
|
|
345
345
|
result.push({
|
|
346
346
|
action: "signout",
|
|
347
|
-
label: ( localize(
|
|
347
|
+
label: ( localize(11002, "Sign Out")),
|
|
348
348
|
description: `(${accountName})`,
|
|
349
349
|
accountQuery
|
|
350
350
|
});
|
|
@@ -513,24 +513,24 @@ let MCPServerActionRendering = class MCPServerActionRendering extends Disposable
|
|
|
513
513
|
text: s.definition.label,
|
|
514
514
|
id: McpCommandIds.ServerOptions,
|
|
515
515
|
arguments: [s.definition.id],
|
|
516
|
-
tooltip: ( localize(
|
|
516
|
+
tooltip: ( localize(11003, "Show server options for {0}", s.definition.label))
|
|
517
517
|
});
|
|
518
518
|
const single = servers.length === 1;
|
|
519
519
|
const names = ( ( servers.map(s => isServer(s) ? link(s) : "`" + s.label + "`")).map(l => single ? l : `- ${l}`)).join("\n");
|
|
520
520
|
let markdown;
|
|
521
521
|
if (state === DisplayedState.NewTools) {
|
|
522
522
|
markdown = ( new MarkdownString(single ? ( localize(
|
|
523
|
-
|
|
523
|
+
11004,
|
|
524
524
|
"MCP server {0} has been updated and may have new tools available.",
|
|
525
525
|
names
|
|
526
526
|
)) : ( localize(
|
|
527
|
-
|
|
527
|
+
11005,
|
|
528
528
|
"MCP servers have been updated and may have new tools available:\n\n{0}",
|
|
529
529
|
names
|
|
530
530
|
))));
|
|
531
531
|
} else if (state === DisplayedState.Error) {
|
|
532
|
-
markdown = ( new MarkdownString(single ? ( localize(
|
|
533
|
-
|
|
532
|
+
markdown = ( new MarkdownString(single ? ( localize(11006, "MCP server {0} was unable to start successfully.", names)) : ( localize(
|
|
533
|
+
11007,
|
|
534
534
|
"Multiple MCP servers were unable to start successfully:\n\n{0}",
|
|
535
535
|
names
|
|
536
536
|
))));
|
|
@@ -557,7 +557,7 @@ let MCPServerActionRendering = class MCPServerActionRendering extends Disposable
|
|
|
557
557
|
const divider = $("hr.mcp-hover-divider");
|
|
558
558
|
container.appendChild(divider);
|
|
559
559
|
const checkboxContainer = $("div.mcp-hover-setting");
|
|
560
|
-
const settingLabelStr = ( localize(
|
|
560
|
+
const settingLabelStr = ( localize(11008, "Automatically start MCP servers when sending a chat message"));
|
|
561
561
|
const checkbox = store.add(( new Checkbox(settingLabelStr, config.get() !== McpAutoStartValue.Never, {
|
|
562
562
|
...defaultCheckboxStyles
|
|
563
563
|
})));
|
|
@@ -585,11 +585,11 @@ let MCPServerActionRendering = class MCPServerActionRendering extends Disposable
|
|
|
585
585
|
} = displayedStateCurrent.get()
|
|
586
586
|
) {
|
|
587
587
|
if (state === DisplayedState.NewTools) {
|
|
588
|
-
return localize(
|
|
588
|
+
return localize(11009, "New tools available ({0})", servers.length || 1);
|
|
589
589
|
} else if (state === DisplayedState.Error) {
|
|
590
|
-
return localize(
|
|
590
|
+
return localize(11010, "Error loading {0} tool(s)", servers.length || 1);
|
|
591
591
|
} else if (state === DisplayedState.Refreshing) {
|
|
592
|
-
return localize(
|
|
592
|
+
return localize(11011, "Discovering tools...");
|
|
593
593
|
} else {
|
|
594
594
|
return null;
|
|
595
595
|
}
|
|
@@ -607,7 +607,7 @@ class ResetMcpTrustCommand extends Action2 {
|
|
|
607
607
|
constructor() {
|
|
608
608
|
super({
|
|
609
609
|
id: McpCommandIds.ResetTrust,
|
|
610
|
-
title: ( localize2(
|
|
610
|
+
title: ( localize2(11012, "Reset Trust")),
|
|
611
611
|
category,
|
|
612
612
|
f1: true,
|
|
613
613
|
precondition: ( ContextKeyExpr.and(McpContextKeys.toolsCount.greater(0), ( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate())))
|
|
@@ -622,7 +622,7 @@ class ResetMcpCachedTools extends Action2 {
|
|
|
622
622
|
constructor() {
|
|
623
623
|
super({
|
|
624
624
|
id: McpCommandIds.ResetCachedTools,
|
|
625
|
-
title: ( localize2(
|
|
625
|
+
title: ( localize2(11013, "Reset Cached Tools")),
|
|
626
626
|
category,
|
|
627
627
|
f1: true,
|
|
628
628
|
precondition: ( ContextKeyExpr.and(McpContextKeys.toolsCount.greater(0), ( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate())))
|
|
@@ -637,9 +637,9 @@ class AddConfigurationAction extends Action2 {
|
|
|
637
637
|
constructor() {
|
|
638
638
|
super({
|
|
639
639
|
id: McpCommandIds.AddConfiguration,
|
|
640
|
-
title: ( localize2(
|
|
640
|
+
title: ( localize2(11014, "Add Server...")),
|
|
641
641
|
metadata: {
|
|
642
|
-
description: ( localize2(
|
|
642
|
+
description: ( localize2(11015, "Installs a new Model Context protocol to the mcp.json settings"))
|
|
643
643
|
},
|
|
644
644
|
category,
|
|
645
645
|
f1: true,
|
|
@@ -661,9 +661,9 @@ class InstallFromManifestAction extends Action2 {
|
|
|
661
661
|
constructor() {
|
|
662
662
|
super({
|
|
663
663
|
id: McpCommandIds.InstallFromManifest,
|
|
664
|
-
title: ( localize2(
|
|
664
|
+
title: ( localize2(11016, "Install Server from Manifest...")),
|
|
665
665
|
metadata: {
|
|
666
|
-
description: ( localize2(
|
|
666
|
+
description: ( localize2(11017, "Install an MCP server from a JSON manifest file"))
|
|
667
667
|
},
|
|
668
668
|
category,
|
|
669
669
|
f1: true,
|
|
@@ -679,7 +679,7 @@ class RemoveStoredInput extends Action2 {
|
|
|
679
679
|
constructor() {
|
|
680
680
|
super({
|
|
681
681
|
id: McpCommandIds.RemoveStoredInput,
|
|
682
|
-
title: ( localize2(
|
|
682
|
+
title: ( localize2(11013, "Reset Cached Tools")),
|
|
683
683
|
category,
|
|
684
684
|
f1: false
|
|
685
685
|
});
|
|
@@ -692,7 +692,7 @@ class EditStoredInput extends Action2 {
|
|
|
692
692
|
constructor() {
|
|
693
693
|
super({
|
|
694
694
|
id: McpCommandIds.EditStoredInput,
|
|
695
|
-
title: ( localize2(
|
|
695
|
+
title: ( localize2(11018, "Edit Stored Input")),
|
|
696
696
|
category,
|
|
697
697
|
f1: false
|
|
698
698
|
});
|
|
@@ -706,7 +706,7 @@ class ShowConfiguration extends Action2 {
|
|
|
706
706
|
constructor() {
|
|
707
707
|
super({
|
|
708
708
|
id: McpCommandIds.ShowConfiguration,
|
|
709
|
-
title: ( localize2(
|
|
709
|
+
title: ( localize2(11019, "Show Configuration")),
|
|
710
710
|
category,
|
|
711
711
|
f1: false
|
|
712
712
|
});
|
|
@@ -736,7 +736,7 @@ class ShowOutput extends Action2 {
|
|
|
736
736
|
constructor() {
|
|
737
737
|
super({
|
|
738
738
|
id: McpCommandIds.ShowOutput,
|
|
739
|
-
title: ( localize2(
|
|
739
|
+
title: ( localize2(11020, "Show Output")),
|
|
740
740
|
category,
|
|
741
741
|
f1: false
|
|
742
742
|
});
|
|
@@ -749,7 +749,7 @@ class RestartServer extends Action2 {
|
|
|
749
749
|
constructor() {
|
|
750
750
|
super({
|
|
751
751
|
id: McpCommandIds.RestartServer,
|
|
752
|
-
title: ( localize2(
|
|
752
|
+
title: ( localize2(11021, "Restart Server")),
|
|
753
753
|
category,
|
|
754
754
|
f1: false
|
|
755
755
|
});
|
|
@@ -768,7 +768,7 @@ class StartServer extends Action2 {
|
|
|
768
768
|
constructor() {
|
|
769
769
|
super({
|
|
770
770
|
id: McpCommandIds.StartServer,
|
|
771
|
-
title: ( localize2(
|
|
771
|
+
title: ( localize2(11022, "Start Server")),
|
|
772
772
|
category,
|
|
773
773
|
f1: false
|
|
774
774
|
});
|
|
@@ -793,7 +793,7 @@ class StopServer extends Action2 {
|
|
|
793
793
|
constructor() {
|
|
794
794
|
super({
|
|
795
795
|
id: McpCommandIds.StopServer,
|
|
796
|
-
title: ( localize2(
|
|
796
|
+
title: ( localize2(11023, "Stop Server")),
|
|
797
797
|
category,
|
|
798
798
|
f1: false
|
|
799
799
|
});
|
|
@@ -807,8 +807,8 @@ class McpBrowseCommand extends Action2 {
|
|
|
807
807
|
constructor() {
|
|
808
808
|
super({
|
|
809
809
|
id: McpCommandIds.Browse,
|
|
810
|
-
title: ( localize2(
|
|
811
|
-
tooltip: ( localize2(
|
|
810
|
+
title: ( localize2(11024, "MCP Servers")),
|
|
811
|
+
tooltip: ( localize2(11025, "Browse MCP Servers")),
|
|
812
812
|
category,
|
|
813
813
|
icon: Codicon.search,
|
|
814
814
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
|
|
@@ -831,7 +831,7 @@ class McpBrowseCommand extends Action2 {
|
|
|
831
831
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
832
832
|
command: {
|
|
833
833
|
id: McpCommandIds.Browse,
|
|
834
|
-
title: ( localize2(
|
|
834
|
+
title: ( localize2(11026, "Browse MCP Servers")),
|
|
835
835
|
category,
|
|
836
836
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate())))
|
|
837
837
|
}
|
|
@@ -840,7 +840,7 @@ class ShowInstalledMcpServersCommand extends Action2 {
|
|
|
840
840
|
constructor() {
|
|
841
841
|
super({
|
|
842
842
|
id: McpCommandIds.ShowInstalled,
|
|
843
|
-
title: ( localize2(
|
|
843
|
+
title: ( localize2(11027, "Show Installed Servers")),
|
|
844
844
|
category,
|
|
845
845
|
precondition: ( ContextKeyExpr.and(HasInstalledMcpServersContext, ( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
|
|
846
846
|
f1: true
|
|
@@ -858,7 +858,7 @@ class ShowInstalledMcpServersCommand extends Action2 {
|
|
|
858
858
|
MenuRegistry.appendMenuItem(CHAT_CONFIG_MENU_ID, {
|
|
859
859
|
command: {
|
|
860
860
|
id: McpCommandIds.ShowInstalled,
|
|
861
|
-
title: ( localize2(
|
|
861
|
+
title: ( localize2(11028, "MCP Servers"))
|
|
862
862
|
},
|
|
863
863
|
when: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.equals("view", ChatViewId)))),
|
|
864
864
|
order: 10,
|
|
@@ -883,7 +883,7 @@ class OpenUserMcpResourceCommand extends OpenMcpResourceCommand {
|
|
|
883
883
|
constructor() {
|
|
884
884
|
super({
|
|
885
885
|
id: McpCommandIds.OpenUserMcp,
|
|
886
|
-
title: ( localize2(
|
|
886
|
+
title: ( localize2(11029, "Open User Configuration")),
|
|
887
887
|
category,
|
|
888
888
|
f1: true,
|
|
889
889
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate())))
|
|
@@ -898,7 +898,7 @@ class OpenRemoteUserMcpResourceCommand extends OpenMcpResourceCommand {
|
|
|
898
898
|
constructor() {
|
|
899
899
|
super({
|
|
900
900
|
id: McpCommandIds.OpenRemoteUserMcp,
|
|
901
|
-
title: ( localize2(
|
|
901
|
+
title: ( localize2(11030, "Open Remote User Configuration")),
|
|
902
902
|
category,
|
|
903
903
|
f1: true,
|
|
904
904
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))), ( RemoteNameContext.notEqualsTo(""))))
|
|
@@ -915,7 +915,7 @@ class OpenWorkspaceFolderMcpResourceCommand extends Action2 {
|
|
|
915
915
|
constructor() {
|
|
916
916
|
super({
|
|
917
917
|
id: McpCommandIds.OpenWorkspaceFolderMcp,
|
|
918
|
-
title: ( localize2(
|
|
918
|
+
title: ( localize2(11031, "Open Workspace Folder MCP Configuration")),
|
|
919
919
|
category,
|
|
920
920
|
f1: true,
|
|
921
921
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))), ( WorkspaceFolderCountContext.notEqualsTo(0))))
|
|
@@ -938,7 +938,7 @@ class OpenWorkspaceMcpResourceCommand extends Action2 {
|
|
|
938
938
|
constructor() {
|
|
939
939
|
super({
|
|
940
940
|
id: McpCommandIds.OpenWorkspaceMcp,
|
|
941
|
-
title: ( localize2(
|
|
941
|
+
title: ( localize2(11032, "Open Workspace MCP Configuration")),
|
|
942
942
|
category,
|
|
943
943
|
f1: true,
|
|
944
944
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))), ( WorkbenchStateContext.isEqualTo("workspace"))))
|
|
@@ -959,7 +959,7 @@ class McpBrowseResourcesCommand extends Action2 {
|
|
|
959
959
|
constructor() {
|
|
960
960
|
super({
|
|
961
961
|
id: McpCommandIds.BrowseResources,
|
|
962
|
-
title: ( localize2(
|
|
962
|
+
title: ( localize2(11033, "Browse Resources...")),
|
|
963
963
|
category,
|
|
964
964
|
precondition: ( ContextKeyExpr.and(McpContextKeys.serverCount.greater(0), ( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
|
|
965
965
|
f1: true
|
|
@@ -977,7 +977,7 @@ class McpConfigureSamplingModels extends Action2 {
|
|
|
977
977
|
constructor() {
|
|
978
978
|
super({
|
|
979
979
|
id: McpCommandIds.ConfigureSamplingModels,
|
|
980
|
-
title: ( localize2(
|
|
980
|
+
title: ( localize2(11034, "Configure SamplingModel")),
|
|
981
981
|
category
|
|
982
982
|
});
|
|
983
983
|
}
|
|
@@ -1003,7 +1003,7 @@ class McpConfigureSamplingModels extends Action2 {
|
|
|
1003
1003
|
);
|
|
1004
1004
|
const picked = await quickInputService.pick(allItems, {
|
|
1005
1005
|
placeHolder: ( localize(
|
|
1006
|
-
|
|
1006
|
+
11035,
|
|
1007
1007
|
"Pick the models {0} can access via MCP sampling",
|
|
1008
1008
|
server.definition.label
|
|
1009
1009
|
)),
|
|
@@ -1019,7 +1019,7 @@ class McpStartPromptingServerCommand extends Action2 {
|
|
|
1019
1019
|
constructor() {
|
|
1020
1020
|
super({
|
|
1021
1021
|
id: McpCommandIds.StartPromptForServer,
|
|
1022
|
-
title: ( localize2(
|
|
1022
|
+
title: ( localize2(11036, "Start Prompting Server")),
|
|
1023
1023
|
category,
|
|
1024
1024
|
f1: false
|
|
1025
1025
|
});
|
|
@@ -1049,7 +1049,7 @@ class McpSkipCurrentAutostartCommand extends Action2 {
|
|
|
1049
1049
|
constructor() {
|
|
1050
1050
|
super({
|
|
1051
1051
|
id: McpCommandIds.SkipCurrentAutostart,
|
|
1052
|
-
title: ( localize2(
|
|
1052
|
+
title: ( localize2(11037, "Skip Current Autostart")),
|
|
1053
1053
|
category,
|
|
1054
1054
|
f1: false
|
|
1055
1055
|
});
|