@codingame/monaco-vscode-mcp-service-override 23.1.0 → 23.2.0
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 +15 -15
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcp.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpAddContextContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +56 -56
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +19 -19
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +19 -19
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +6 -6
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +7 -7
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +35 -35
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +34 -34
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +17 -17
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +8 -8
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +12 -12
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +12 -12
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +9 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +3 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.js +9 -9
|
@@ -13,7 +13,7 @@ import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
13
13
|
import { IMarkerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service';
|
|
14
14
|
import { IConfigurationResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service';
|
|
15
15
|
import { ConfigurationResolverExpression } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolverExpression';
|
|
16
|
-
import { McpCommandIds } from '@codingame/monaco-vscode-
|
|
16
|
+
import { McpCommandIds } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
|
|
17
17
|
import { mcpConfigurationSection } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
|
|
18
18
|
import { IMcpRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service';
|
|
19
19
|
import { McpConnectionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
@@ -101,7 +101,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
101
101
|
diagnostics.push({
|
|
102
102
|
severity: MarkerSeverity.Warning,
|
|
103
103
|
message: ( localize(
|
|
104
|
-
|
|
104
|
+
8698,
|
|
105
105
|
'Variable `{0}` not found, did you mean ${{1}}?',
|
|
106
106
|
name,
|
|
107
107
|
getClosestMatchingVariable(name) + (arg ? `:${arg}` : '')
|
|
@@ -162,14 +162,14 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
162
162
|
range,
|
|
163
163
|
command: {
|
|
164
164
|
id: McpCommandIds.ShowOutput,
|
|
165
|
-
title: '$(error) ' + ( localize(
|
|
165
|
+
title: '$(error) ' + ( localize(8699, 'Error')),
|
|
166
166
|
arguments: [server.definition.id],
|
|
167
167
|
},
|
|
168
168
|
}, {
|
|
169
169
|
range,
|
|
170
170
|
command: {
|
|
171
171
|
id: McpCommandIds.RestartServer,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(8700, "Restart")),
|
|
173
173
|
arguments: [server.definition.id, { autoTrustChanges: true }],
|
|
174
174
|
},
|
|
175
175
|
});
|
|
@@ -178,7 +178,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
178
178
|
range,
|
|
179
179
|
command: {
|
|
180
180
|
id: McpCommandIds.RestartServer,
|
|
181
|
-
title: ( localize(
|
|
181
|
+
title: ( localize(8701, "Debug")),
|
|
182
182
|
arguments: [server.definition.id, { debug: true, autoTrustChanges: true }],
|
|
183
183
|
},
|
|
184
184
|
});
|
|
@@ -189,14 +189,14 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
189
189
|
range,
|
|
190
190
|
command: {
|
|
191
191
|
id: McpCommandIds.ShowOutput,
|
|
192
|
-
title: '$(loading~spin) ' + ( localize(
|
|
192
|
+
title: '$(loading~spin) ' + ( localize(8702, 'Starting')),
|
|
193
193
|
arguments: [server.definition.id],
|
|
194
194
|
},
|
|
195
195
|
}, {
|
|
196
196
|
range,
|
|
197
197
|
command: {
|
|
198
198
|
id: McpCommandIds.StopServer,
|
|
199
|
-
title: ( localize(
|
|
199
|
+
title: ( localize(8703, "Cancel")),
|
|
200
200
|
arguments: [server.definition.id],
|
|
201
201
|
},
|
|
202
202
|
});
|
|
@@ -206,21 +206,21 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
206
206
|
range,
|
|
207
207
|
command: {
|
|
208
208
|
id: McpCommandIds.ShowOutput,
|
|
209
|
-
title: '$(check) ' + ( localize(
|
|
209
|
+
title: '$(check) ' + ( localize(8704, 'Running')),
|
|
210
210
|
arguments: [server.definition.id],
|
|
211
211
|
},
|
|
212
212
|
}, {
|
|
213
213
|
range,
|
|
214
214
|
command: {
|
|
215
215
|
id: McpCommandIds.StopServer,
|
|
216
|
-
title: ( localize(
|
|
216
|
+
title: ( localize(8705, "Stop")),
|
|
217
217
|
arguments: [server.definition.id],
|
|
218
218
|
},
|
|
219
219
|
}, {
|
|
220
220
|
range,
|
|
221
221
|
command: {
|
|
222
222
|
id: McpCommandIds.RestartServer,
|
|
223
|
-
title: ( localize(
|
|
223
|
+
title: ( localize(8700, "Restart")),
|
|
224
224
|
arguments: [server.definition.id, { autoTrustChanges: true }],
|
|
225
225
|
},
|
|
226
226
|
});
|
|
@@ -229,7 +229,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
229
229
|
range,
|
|
230
230
|
command: {
|
|
231
231
|
id: McpCommandIds.RestartServer,
|
|
232
|
-
title: ( localize(
|
|
232
|
+
title: ( localize(8701, "Debug")),
|
|
233
233
|
arguments: [server.definition.id, { autoTrustChanges: true, debug: true }],
|
|
234
234
|
},
|
|
235
235
|
});
|
|
@@ -240,7 +240,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
240
240
|
range,
|
|
241
241
|
command: {
|
|
242
242
|
id: McpCommandIds.StartServer,
|
|
243
|
-
title: '$(debug-start) ' + ( localize(
|
|
243
|
+
title: '$(debug-start) ' + ( localize(8706, "Start")),
|
|
244
244
|
arguments: [server.definition.id, { autoTrustChanges: true }],
|
|
245
245
|
},
|
|
246
246
|
});
|
|
@@ -249,7 +249,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
249
249
|
range,
|
|
250
250
|
command: {
|
|
251
251
|
id: McpCommandIds.StartServer,
|
|
252
|
-
title: ( localize(
|
|
252
|
+
title: ( localize(8701, "Debug")),
|
|
253
253
|
arguments: [server.definition.id, { autoTrustChanges: true, debug: true }],
|
|
254
254
|
},
|
|
255
255
|
});
|
|
@@ -262,7 +262,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
262
262
|
range,
|
|
263
263
|
command: {
|
|
264
264
|
id: '',
|
|
265
|
-
title: ( localize(
|
|
265
|
+
title: ( localize(8707, '{0} tools', toolCount)),
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
}
|
|
@@ -272,7 +272,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
272
272
|
range,
|
|
273
273
|
command: {
|
|
274
274
|
id: McpCommandIds.StartPromptForServer,
|
|
275
|
-
title: ( localize(
|
|
275
|
+
title: ( localize(8708, '{0} prompts', promptCount)),
|
|
276
276
|
arguments: [server],
|
|
277
277
|
}
|
|
278
278
|
});
|
|
@@ -281,7 +281,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
281
281
|
range,
|
|
282
282
|
command: {
|
|
283
283
|
id: McpCommandIds.ServerOptions,
|
|
284
|
-
title: ( localize(
|
|
284
|
+
title: ( localize(8709, 'More...')),
|
|
285
285
|
arguments: [server.definition.id],
|
|
286
286
|
}
|
|
287
287
|
});
|
|
@@ -347,9 +347,9 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
347
347
|
}
|
|
348
348
|
function pushAnnotation(savedId, offset, saved) {
|
|
349
349
|
const tooltip = ( new MarkdownString([
|
|
350
|
-
markdownCommandLink({ id: McpCommandIds.EditStoredInput, title: ( localize(
|
|
351
|
-
markdownCommandLink({ id: McpCommandIds.RemoveStoredInput, title: ( localize(
|
|
352
|
-
markdownCommandLink({ id: McpCommandIds.RemoveStoredInput, title: ( localize(
|
|
350
|
+
markdownCommandLink({ id: McpCommandIds.EditStoredInput, title: ( localize(8710, 'Edit')), arguments: [savedId, model.uri, mcpConfigurationSection, inConfig.target] }),
|
|
351
|
+
markdownCommandLink({ id: McpCommandIds.RemoveStoredInput, title: ( localize(8711, 'Clear')), arguments: [inConfig.scope, savedId] }),
|
|
352
|
+
markdownCommandLink({ id: McpCommandIds.RemoveStoredInput, title: ( localize(8712, 'Clear All')), arguments: [inConfig.scope] }),
|
|
353
353
|
].join(' | '), { isTrusted: true }));
|
|
354
354
|
const hint = {
|
|
355
355
|
label: '= ' + (saved.input?.type === 'promptString' && saved.input.password ? '*'.repeat(10) : (saved.value || '')),
|
|
@@ -16,7 +16,7 @@ import { IJSONEditingService } from '@codingame/monaco-vscode-api/vscode/vs/work
|
|
|
16
16
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
17
17
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
18
18
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
19
|
-
import { McpCommandIds } from '@codingame/monaco-vscode-
|
|
19
|
+
import { McpCommandIds } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
|
|
20
20
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
21
21
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
22
22
|
|
|
@@ -86,19 +86,19 @@ let McpConfigMigrationContribution = class McpConfigMigrationContribution extend
|
|
|
86
86
|
showMcpConfigErrorNotification(isRemote) {
|
|
87
87
|
const message = isRemote
|
|
88
88
|
? ( localize(
|
|
89
|
-
|
|
89
|
+
8713,
|
|
90
90
|
'MCP servers should no longer be configured in remote user settings. Use the dedicated MCP configuration instead.'
|
|
91
91
|
))
|
|
92
92
|
: ( localize(
|
|
93
|
-
|
|
93
|
+
8714,
|
|
94
94
|
'MCP servers should no longer be configured in user settings. Use the dedicated MCP configuration instead.'
|
|
95
95
|
));
|
|
96
96
|
const openConfigLabel = isRemote
|
|
97
|
-
? ( localize(
|
|
98
|
-
: ( localize(
|
|
97
|
+
? ( localize(8715, 'Open Remote User MCP Configuration'))
|
|
98
|
+
: ( localize(8716, 'Open User MCP Configuration'));
|
|
99
99
|
const commandId = isRemote ? McpCommandIds.OpenRemoteUserMcp : McpCommandIds.OpenUserMcp;
|
|
100
100
|
this.notificationService.prompt(Severity.Error, message, [{
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(8717, 'Update Now')),
|
|
102
102
|
run: async () => {
|
|
103
103
|
await this.migrateMcpConfig();
|
|
104
104
|
await this.commandService.executeCommand(commandId);
|
|
@@ -40,7 +40,7 @@ let McpResourcePickHelper = class McpResourcePickHelper {
|
|
|
40
40
|
id: resource.template.template,
|
|
41
41
|
label: resource.title || resource.name,
|
|
42
42
|
description: resource.description,
|
|
43
|
-
detail: ( localize(
|
|
43
|
+
detail: ( localize(8733, 'Resource template: {0}', resource.template.template)),
|
|
44
44
|
iconPath,
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -120,7 +120,7 @@ let McpResourcePickHelper = class McpResourcePickHelper {
|
|
|
120
120
|
return uri;
|
|
121
121
|
}
|
|
122
122
|
this._notificationService.warn(( localize(
|
|
123
|
-
|
|
123
|
+
8734,
|
|
124
124
|
"The resource {0} was not found.",
|
|
125
125
|
(McpResourceURI.toServer(uri).resourceURL.toString())
|
|
126
126
|
)));
|
|
@@ -161,13 +161,13 @@ let McpResourcePickHelper = class McpResourcePickHelper {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
let placeholder = ( localize(
|
|
164
|
-
|
|
164
|
+
8735,
|
|
165
165
|
"Value for ${0} in {1}",
|
|
166
166
|
variable.name.toUpperCase(),
|
|
167
167
|
rt.template.resolve(variablesWithPlaceholders).replaceAll('%24', '$')
|
|
168
168
|
));
|
|
169
169
|
if (variable.optional) {
|
|
170
|
-
placeholder += ' (' + ( localize(
|
|
170
|
+
placeholder += ' (' + ( localize(8736, "Optional")) + ')';
|
|
171
171
|
}
|
|
172
172
|
input.placeholder = placeholder;
|
|
173
173
|
input.value = '';
|
|
@@ -180,7 +180,7 @@ let McpResourcePickHelper = class McpResourcePickHelper {
|
|
|
180
180
|
items.unshift({ id: currentID, label: value });
|
|
181
181
|
}
|
|
182
182
|
else if (variable.optional) {
|
|
183
|
-
items.unshift({ id: currentID, label: ( localize(
|
|
183
|
+
items.unshift({ id: currentID, label: ( localize(8737, "<Empty>")) });
|
|
184
184
|
}
|
|
185
185
|
input.items = items;
|
|
186
186
|
};
|
|
@@ -328,7 +328,7 @@ let AbstractMcpResourceAccessPick = class AbstractMcpResourceAccessPick {
|
|
|
328
328
|
picker.canAcceptInBackground = true;
|
|
329
329
|
picker.busy = true;
|
|
330
330
|
picker.keepScrollPosition = true;
|
|
331
|
-
const attachButton = ( localize(
|
|
331
|
+
const attachButton = ( localize(8738, "Attach to chat"));
|
|
332
332
|
const helper = this._instantiationService.createInstance(McpResourcePickHelper);
|
|
333
333
|
if (this._scopeTo) {
|
|
334
334
|
helper.explicitServers = [this._scopeTo];
|
|
@@ -392,7 +392,7 @@ let McpResourceQuickPick = class McpResourceQuickPick extends AbstractMcpResourc
|
|
|
392
392
|
async pick(token = CancellationToken.None) {
|
|
393
393
|
const store = ( new DisposableStore());
|
|
394
394
|
const qp = store.add(this._quickInputService.createQuickPick({ useSeparators: true }));
|
|
395
|
-
qp.placeholder = ( localize(
|
|
395
|
+
qp.placeholder = ( localize(8739, "Search for resources"));
|
|
396
396
|
store.add(this.applyToPick(qp, token));
|
|
397
397
|
store.add(qp.onDidHide(() => store.dispose()));
|
|
398
398
|
qp.show();
|
|
@@ -16,12 +16,12 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
16
16
|
import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
|
|
17
17
|
import { IAuthenticationQueryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authenticationQuery.service';
|
|
18
18
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
19
|
-
import { manageExtensionIcon, warningIcon, errorIcon, infoIcon, trustIcon } from '@codingame/monaco-vscode-
|
|
20
|
-
import { McpCommandIds } from '@codingame/monaco-vscode-
|
|
19
|
+
import { manageExtensionIcon, warningIcon, errorIcon, infoIcon, trustIcon } from '@codingame/monaco-vscode-cc2a4237-8890-5664-9fcf-a56ecd22e3ef-common/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
|
|
20
|
+
import { McpCommandIds } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
|
|
21
21
|
import { IMcpRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service';
|
|
22
22
|
import { McpServerInstallState, McpConnectionState, McpServerEditorTab, McpCapability } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
23
23
|
import { IMcpWorkbenchService, IMcpService, IMcpSamplingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes.service';
|
|
24
|
-
import { startServerByFilter } from '@codingame/monaco-vscode-
|
|
24
|
+
import { startServerByFilter } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpTypesUtils';
|
|
25
25
|
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
26
26
|
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
27
27
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
@@ -194,7 +194,7 @@ let InstallAction = class InstallAction extends McpServerAction {
|
|
|
194
194
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent install`; }
|
|
195
195
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
196
196
|
constructor(open, mcpWorkbenchService, telemetryService, mcpService) {
|
|
197
|
-
super('extensions.install', ( localize(
|
|
197
|
+
super('extensions.install', ( localize(8740, "Install")), InstallAction_1.CLASS, false);
|
|
198
198
|
this.open = open;
|
|
199
199
|
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
200
200
|
this.telemetryService = telemetryService;
|
|
@@ -220,7 +220,7 @@ let InstallAction = class InstallAction extends McpServerAction {
|
|
|
220
220
|
if (this.open) {
|
|
221
221
|
this.mcpWorkbenchService.open(this.mcpServer);
|
|
222
222
|
alert(( localize(
|
|
223
|
-
|
|
223
|
+
8741,
|
|
224
224
|
"Installing MCP Server {0} started. An editor is now open with more details on this MCP Server",
|
|
225
225
|
this.mcpServer.label
|
|
226
226
|
)));
|
|
@@ -242,7 +242,7 @@ let InstallInWorkspaceAction = class InstallInWorkspaceAction extends McpServerA
|
|
|
242
242
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent install`; }
|
|
243
243
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
244
244
|
constructor(open, mcpWorkbenchService, workspaceService, quickInputService, telemetryService, mcpService) {
|
|
245
|
-
super('extensions.installWorkspace', ( localize(
|
|
245
|
+
super('extensions.installWorkspace', ( localize(8742, "Install in Workspace")), InstallAction.CLASS, false);
|
|
246
246
|
this.open = open;
|
|
247
247
|
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
248
248
|
this.workspaceService = workspaceService;
|
|
@@ -273,7 +273,7 @@ let InstallInWorkspaceAction = class InstallInWorkspaceAction extends McpServerA
|
|
|
273
273
|
if (this.open) {
|
|
274
274
|
this.mcpWorkbenchService.open(this.mcpServer, { preserveFocus: true });
|
|
275
275
|
alert(( localize(
|
|
276
|
-
|
|
276
|
+
8741,
|
|
277
277
|
"Installing MCP Server {0} started. An editor is now open with more details on this MCP Server",
|
|
278
278
|
this.mcpServer.label
|
|
279
279
|
)));
|
|
@@ -291,19 +291,19 @@ let InstallInWorkspaceAction = class InstallInWorkspaceAction extends McpServerA
|
|
|
291
291
|
async getConfigurationTarget() {
|
|
292
292
|
const options = [];
|
|
293
293
|
for (const folder of this.workspaceService.getWorkspace().folders) {
|
|
294
|
-
options.push({ target: folder, label: folder.name, description: ( localize(
|
|
294
|
+
options.push({ target: folder, label: folder.name, description: ( localize(8743, "Workspace Folder")) });
|
|
295
295
|
}
|
|
296
296
|
if (this.workspaceService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
|
|
297
297
|
if (options.length > 0) {
|
|
298
298
|
options.push({ type: 'separator' });
|
|
299
299
|
}
|
|
300
|
-
options.push({ target: ConfigurationTarget.WORKSPACE, label: ( localize(
|
|
300
|
+
options.push({ target: ConfigurationTarget.WORKSPACE, label: ( localize(8744, "Workspace")) });
|
|
301
301
|
}
|
|
302
302
|
if (options.length === 1) {
|
|
303
303
|
return options[0].target;
|
|
304
304
|
}
|
|
305
305
|
const targetPick = await this.quickInputService.pick(options, {
|
|
306
|
-
title: ( localize(
|
|
306
|
+
title: ( localize(8745, "Choose where to install the MCP server")),
|
|
307
307
|
});
|
|
308
308
|
return targetPick?.target;
|
|
309
309
|
}
|
|
@@ -320,7 +320,7 @@ let InstallInRemoteAction = class InstallInRemoteAction extends McpServerAction
|
|
|
320
320
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent install`; }
|
|
321
321
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
322
322
|
constructor(open, mcpWorkbenchService, environmentService, telemetryService, labelService, mcpService) {
|
|
323
|
-
super('extensions.installRemote', ( localize(
|
|
323
|
+
super('extensions.installRemote', ( localize(8746, "Install (Remote)")), InstallAction.CLASS, false);
|
|
324
324
|
this.open = open;
|
|
325
325
|
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
326
326
|
this.environmentService = environmentService;
|
|
@@ -328,7 +328,7 @@ let InstallInRemoteAction = class InstallInRemoteAction extends McpServerAction
|
|
|
328
328
|
this.labelService = labelService;
|
|
329
329
|
this.mcpService = mcpService;
|
|
330
330
|
const remoteLabel = this.labelService.getHostLabel(Schemas.vscodeRemote, this.environmentService.remoteAuthority);
|
|
331
|
-
this.label = ( localize(
|
|
331
|
+
this.label = ( localize(8747, "Install in {0}", remoteLabel));
|
|
332
332
|
this.update();
|
|
333
333
|
}
|
|
334
334
|
update() {
|
|
@@ -358,7 +358,7 @@ let InstallInRemoteAction = class InstallInRemoteAction extends McpServerAction
|
|
|
358
358
|
if (this.open) {
|
|
359
359
|
this.mcpWorkbenchService.open(this.mcpServer);
|
|
360
360
|
alert(( localize(
|
|
361
|
-
|
|
361
|
+
8741,
|
|
362
362
|
"Installing MCP Server {0} started. An editor is now open with more details on this MCP Server",
|
|
363
363
|
this.mcpServer.label
|
|
364
364
|
)));
|
|
@@ -378,7 +378,7 @@ InstallInRemoteAction = InstallInRemoteAction_1 = ( __decorate([
|
|
|
378
378
|
( __param(5, IMcpService))
|
|
379
379
|
], InstallInRemoteAction));
|
|
380
380
|
class InstallingLabelAction extends McpServerAction {
|
|
381
|
-
static { this.LABEL = ( localize(
|
|
381
|
+
static { this.LABEL = ( localize(8748, "Installing")); }
|
|
382
382
|
static { this.CLASS = `${McpServerAction.LABEL_ACTION_CLASS} install installing`; }
|
|
383
383
|
constructor() {
|
|
384
384
|
super('extension.installing', InstallingLabelAction.LABEL, InstallingLabelAction.CLASS, false);
|
|
@@ -392,7 +392,7 @@ let UninstallAction = class UninstallAction extends McpServerAction {
|
|
|
392
392
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent uninstall`; }
|
|
393
393
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
394
394
|
constructor(mcpWorkbenchService) {
|
|
395
|
-
super('extensions.uninstall', ( localize(
|
|
395
|
+
super('extensions.uninstall', ( localize(8749, "Uninstall")), UninstallAction_1.CLASS, false);
|
|
396
396
|
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
397
397
|
this.update();
|
|
398
398
|
}
|
|
@@ -411,7 +411,7 @@ let UninstallAction = class UninstallAction extends McpServerAction {
|
|
|
411
411
|
}
|
|
412
412
|
this.class = UninstallAction_1.CLASS;
|
|
413
413
|
this.enabled = true;
|
|
414
|
-
this.label = ( localize(
|
|
414
|
+
this.label = ( localize(8749, "Uninstall"));
|
|
415
415
|
}
|
|
416
416
|
async run() {
|
|
417
417
|
if (!this.mcpServer) {
|
|
@@ -485,7 +485,7 @@ let ManageMcpServerAction = class ManageMcpServerAction extends DropDownAction {
|
|
|
485
485
|
constructor(isEditorAction, instantiationService) {
|
|
486
486
|
super(ManageMcpServerAction_1.ID, '', '', true, instantiationService);
|
|
487
487
|
this.isEditorAction = isEditorAction;
|
|
488
|
-
this.tooltip = ( localize(
|
|
488
|
+
this.tooltip = ( localize(8750, "Manage"));
|
|
489
489
|
this.update();
|
|
490
490
|
}
|
|
491
491
|
async run() {
|
|
@@ -515,7 +515,7 @@ let StartServerAction = class StartServerAction extends McpServerAction {
|
|
|
515
515
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent start`; }
|
|
516
516
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
517
517
|
constructor(mcpService) {
|
|
518
|
-
super('extensions.start', ( localize(
|
|
518
|
+
super('extensions.start', ( localize(8751, "Start Server")), StartServerAction_1.CLASS, false);
|
|
519
519
|
this.mcpService = mcpService;
|
|
520
520
|
this.update();
|
|
521
521
|
}
|
|
@@ -532,7 +532,7 @@ let StartServerAction = class StartServerAction extends McpServerAction {
|
|
|
532
532
|
}
|
|
533
533
|
this.class = StartServerAction_1.CLASS;
|
|
534
534
|
this.enabled = true;
|
|
535
|
-
this.label = ( localize(
|
|
535
|
+
this.label = ( localize(8751, "Start Server"));
|
|
536
536
|
}
|
|
537
537
|
async run() {
|
|
538
538
|
const server = this.getServer();
|
|
@@ -560,7 +560,7 @@ let StopServerAction = class StopServerAction extends McpServerAction {
|
|
|
560
560
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent stop`; }
|
|
561
561
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
562
562
|
constructor(mcpService) {
|
|
563
|
-
super('extensions.stop', ( localize(
|
|
563
|
+
super('extensions.stop', ( localize(8752, "Stop Server")), StopServerAction_1.CLASS, false);
|
|
564
564
|
this.mcpService = mcpService;
|
|
565
565
|
this.update();
|
|
566
566
|
}
|
|
@@ -577,7 +577,7 @@ let StopServerAction = class StopServerAction extends McpServerAction {
|
|
|
577
577
|
}
|
|
578
578
|
this.class = StopServerAction_1.CLASS;
|
|
579
579
|
this.enabled = true;
|
|
580
|
-
this.label = ( localize(
|
|
580
|
+
this.label = ( localize(8752, "Stop Server"));
|
|
581
581
|
}
|
|
582
582
|
async run() {
|
|
583
583
|
const server = this.getServer();
|
|
@@ -604,7 +604,7 @@ let RestartServerAction = class RestartServerAction extends McpServerAction {
|
|
|
604
604
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent restart`; }
|
|
605
605
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
606
606
|
constructor(mcpService) {
|
|
607
|
-
super('extensions.restart', ( localize(
|
|
607
|
+
super('extensions.restart', ( localize(8753, "Restart Server")), RestartServerAction_1.CLASS, false);
|
|
608
608
|
this.mcpService = mcpService;
|
|
609
609
|
this.update();
|
|
610
610
|
}
|
|
@@ -621,7 +621,7 @@ let RestartServerAction = class RestartServerAction extends McpServerAction {
|
|
|
621
621
|
}
|
|
622
622
|
this.class = RestartServerAction_1.CLASS;
|
|
623
623
|
this.enabled = true;
|
|
624
|
-
this.label = ( localize(
|
|
624
|
+
this.label = ( localize(8753, "Restart Server"));
|
|
625
625
|
}
|
|
626
626
|
async run() {
|
|
627
627
|
const server = this.getServer();
|
|
@@ -649,10 +649,10 @@ let AuthServerAction = class AuthServerAction extends McpServerAction {
|
|
|
649
649
|
static { AuthServerAction_1 = this; }
|
|
650
650
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent account`; }
|
|
651
651
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
652
|
-
static { this.SIGN_OUT = ( localize(
|
|
653
|
-
static { this.DISCONNECT = ( localize(
|
|
652
|
+
static { this.SIGN_OUT = ( localize(8754, 'Sign Out')); }
|
|
653
|
+
static { this.DISCONNECT = ( localize(8755, 'Disconnect Account')); }
|
|
654
654
|
constructor(mcpService, _authenticationQueryService, _authenticationService) {
|
|
655
|
-
super('extensions.restart', ( localize(
|
|
655
|
+
super('extensions.restart', ( localize(8753, "Restart Server")), RestartServerAction.CLASS, false);
|
|
656
656
|
this.mcpService = mcpService;
|
|
657
657
|
this._authenticationQueryService = _authenticationQueryService;
|
|
658
658
|
this._authenticationService = _authenticationService;
|
|
@@ -741,7 +741,7 @@ let ShowServerOutputAction = class ShowServerOutputAction extends McpServerActio
|
|
|
741
741
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent output`; }
|
|
742
742
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
743
743
|
constructor(mcpService) {
|
|
744
|
-
super('extensions.output', ( localize(
|
|
744
|
+
super('extensions.output', ( localize(8756, "Show Output")), ShowServerOutputAction_1.CLASS, false);
|
|
745
745
|
this.mcpService = mcpService;
|
|
746
746
|
this.update();
|
|
747
747
|
}
|
|
@@ -754,7 +754,7 @@ let ShowServerOutputAction = class ShowServerOutputAction extends McpServerActio
|
|
|
754
754
|
}
|
|
755
755
|
this.class = ShowServerOutputAction_1.CLASS;
|
|
756
756
|
this.enabled = true;
|
|
757
|
-
this.label = ( localize(
|
|
757
|
+
this.label = ( localize(8756, "Show Output"));
|
|
758
758
|
}
|
|
759
759
|
async run() {
|
|
760
760
|
const server = this.getServer();
|
|
@@ -781,7 +781,7 @@ let ShowServerConfigurationAction = class ShowServerConfigurationAction extends
|
|
|
781
781
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`; }
|
|
782
782
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
783
783
|
constructor(mcpWorkbenchService) {
|
|
784
|
-
super('extensions.config', ( localize(
|
|
784
|
+
super('extensions.config', ( localize(8757, "Show Configuration")), ShowServerConfigurationAction_1.CLASS, false);
|
|
785
785
|
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
786
786
|
this.update();
|
|
787
787
|
}
|
|
@@ -809,7 +809,7 @@ let ShowServerJsonConfigurationAction = class ShowServerJsonConfigurationAction
|
|
|
809
809
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`; }
|
|
810
810
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
811
811
|
constructor(mcpService, mcpRegistry, editorService) {
|
|
812
|
-
super('extensions.jsonConfig', ( localize(
|
|
812
|
+
super('extensions.jsonConfig', ( localize(8758, "Show Configuration (JSON)")), ShowServerJsonConfigurationAction_1.CLASS, false);
|
|
813
813
|
this.mcpService = mcpService;
|
|
814
814
|
this.mcpRegistry = mcpRegistry;
|
|
815
815
|
this.editorService = editorService;
|
|
@@ -861,7 +861,7 @@ let ConfigureModelAccessAction = class ConfigureModelAccessAction extends McpSer
|
|
|
861
861
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`; }
|
|
862
862
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
863
863
|
constructor(mcpService, commandService) {
|
|
864
|
-
super('extensions.config', ( localize(
|
|
864
|
+
super('extensions.config', ( localize(8759, 'Configure Model Access')), ConfigureModelAccessAction_1.CLASS, false);
|
|
865
865
|
this.mcpService = mcpService;
|
|
866
866
|
this.commandService = commandService;
|
|
867
867
|
this.update();
|
|
@@ -875,7 +875,7 @@ let ConfigureModelAccessAction = class ConfigureModelAccessAction extends McpSer
|
|
|
875
875
|
}
|
|
876
876
|
this.class = ConfigureModelAccessAction_1.CLASS;
|
|
877
877
|
this.enabled = true;
|
|
878
|
-
this.label = ( localize(
|
|
878
|
+
this.label = ( localize(8759, 'Configure Model Access'));
|
|
879
879
|
}
|
|
880
880
|
async run() {
|
|
881
881
|
const server = this.getServer();
|
|
@@ -903,7 +903,7 @@ let ShowSamplingRequestsAction = class ShowSamplingRequestsAction extends McpSer
|
|
|
903
903
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`; }
|
|
904
904
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
905
905
|
constructor(mcpService, samplingService, editorService) {
|
|
906
|
-
super('extensions.config', ( localize(
|
|
906
|
+
super('extensions.config', ( localize(8760, 'Show Sampling Requests')), ShowSamplingRequestsAction_1.CLASS, false);
|
|
907
907
|
this.mcpService = mcpService;
|
|
908
908
|
this.samplingService = samplingService;
|
|
909
909
|
this.editorService = editorService;
|
|
@@ -933,7 +933,7 @@ let ShowSamplingRequestsAction = class ShowSamplingRequestsAction extends McpSer
|
|
|
933
933
|
this.editorService.openEditor({
|
|
934
934
|
resource: undefined,
|
|
935
935
|
contents: this.samplingService.getLogText(server),
|
|
936
|
-
label: ( localize(
|
|
936
|
+
label: ( localize(8761, 'MCP Sampling: {0}', server.definition.label)),
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
getServer() {
|
|
@@ -956,7 +956,7 @@ let BrowseResourcesAction = class BrowseResourcesAction extends McpServerAction
|
|
|
956
956
|
static { this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`; }
|
|
957
957
|
static { this.HIDE = `${this.CLASS} hide`; }
|
|
958
958
|
constructor(mcpService, commandService) {
|
|
959
|
-
super('extensions.config', ( localize(
|
|
959
|
+
super('extensions.config', ( localize(8762, 'Browse Resources')), BrowseResourcesAction_1.CLASS, false);
|
|
960
960
|
this.mcpService = mcpService;
|
|
961
961
|
this.commandService = commandService;
|
|
962
962
|
this.update();
|
|
@@ -10,7 +10,7 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
10
10
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
11
11
|
import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
12
12
|
import { IEditorOpenContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
13
|
-
import { IWebview } from "@codingame/monaco-vscode-
|
|
13
|
+
import { IWebview } from "@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
14
14
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
15
15
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
16
16
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|