@codingame/monaco-vscode-mcp-service-override 23.0.4 → 23.1.1

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.
Files changed (27) hide show
  1. package/package.json +15 -15
  2. package/vscode/src/vs/workbench/contrib/mcp/browser/mcp.contribution.js +4 -4
  3. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpAddContextContribution.js +2 -2
  4. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +56 -56
  5. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +19 -19
  6. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +19 -19
  7. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +6 -6
  8. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +7 -7
  9. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +35 -35
  10. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.d.ts +1 -1
  11. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +34 -34
  12. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
  13. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
  14. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +6 -6
  15. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +17 -17
  16. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +8 -8
  17. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/extensionMcpDiscovery.js +4 -4
  18. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAbstract.js +1 -1
  19. package/vscode/src/vs/workbench/contrib/mcp/common/mcpContextKeys.js +4 -4
  20. package/vscode/src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.js +7 -7
  21. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +12 -12
  22. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +2 -2
  23. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +12 -12
  24. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +9 -9
  25. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +3 -3
  26. package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.js +1 -1
  27. 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": "23.0.4",
3
+ "version": "23.1.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - mcp service-override",
6
6
  "keywords": [],
@@ -15,20 +15,20 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common": "23.0.4",
19
- "@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common": "23.0.4",
20
- "@codingame/monaco-vscode-2a04f0cd-b806-5886-909e-418183d32279-common": "23.0.4",
21
- "@codingame/monaco-vscode-2eda793f-4b5b-58e8-83c5-1bfd3bad15f1-common": "23.0.4",
22
- "@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.0.4",
23
- "@codingame/monaco-vscode-4a3ac544-9a61-534c-88df-756262793ef7-common": "23.0.4",
24
- "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "23.0.4",
25
- "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.0.4",
26
- "@codingame/monaco-vscode-7b19b93e-7a49-5c48-81f5-091a64f468d2-common": "23.0.4",
27
- "@codingame/monaco-vscode-api": "23.0.4",
28
- "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "23.0.4",
29
- "@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "23.0.4",
30
- "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common": "23.0.4",
31
- "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "23.0.4"
18
+ "@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common": "23.1.1",
19
+ "@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common": "23.1.1",
20
+ "@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common": "23.1.1",
21
+ "@codingame/monaco-vscode-2eda793f-4b5b-58e8-83c5-1bfd3bad15f1-common": "23.1.1",
22
+ "@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.1.1",
23
+ "@codingame/monaco-vscode-4a3ac544-9a61-534c-88df-756262793ef7-common": "23.1.1",
24
+ "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "23.1.1",
25
+ "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.1.1",
26
+ "@codingame/monaco-vscode-api": "23.1.1",
27
+ "@codingame/monaco-vscode-cc2a4237-8890-5664-9fcf-a56ecd22e3ef-common": "23.1.1",
28
+ "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "23.1.1",
29
+ "@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "23.1.1",
30
+ "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common": "23.1.1",
31
+ "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "23.1.1"
32
32
  },
33
33
  "main": "index.js",
34
34
  "module": "index.js",
@@ -17,7 +17,7 @@ import { InstalledMcpServersDiscovery } from '../common/discovery/installedMcpSe
17
17
  import { mcpDiscoveryRegistry } from '../common/discovery/mcpDiscovery.js';
18
18
  import { RemoteNativeMpcDiscovery } from '../common/discovery/nativeMcpRemoteDiscovery.js';
19
19
  import { CursorWorkspaceMcpDiscoveryAdapter } from '../common/discovery/workspaceMcpDiscoveryAdapter.js';
20
- import { McpCommandIds } from '@codingame/monaco-vscode-7b19b93e-7a49-5c48-81f5-091a64f468d2-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
20
+ import { McpCommandIds } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
21
21
  import { mcpServerSchema } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
22
22
  import { McpContextKeysController } from '../common/mcpContextKeys.js';
23
23
  import '../common/mcpDevMode.js';
@@ -78,15 +78,15 @@ registerWorkbenchContribution2(McpConfigMigrationContribution.ID, McpConfigMigra
78
78
  registerWorkbenchContribution2(McpServersViewsContribution.ID, McpServersViewsContribution, WorkbenchPhase.AfterRestored);
79
79
  const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
80
80
  jsonRegistry.registerSchema(mcpSchemaId, mcpServerSchema);
81
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(8547, "MCP Server"))), [
81
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(8566, "MCP Server"))), [
82
82
  ( new SyncDescriptor(McpServerEditorInput))
83
83
  ]);
84
84
  ( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
85
85
  ctor: McpResourceQuickAccess,
86
86
  prefix: McpResourceQuickAccess.PREFIX,
87
- placeholder: ( localize(8548, "Filter to an MCP resource")),
87
+ placeholder: ( localize(8567, "Filter to an MCP resource")),
88
88
  helpEntries: [{
89
- description: ( localize(8549, "MCP Server Resources")),
89
+ description: ( localize(8568, "MCP Server Resources")),
90
90
  commandId: McpCommandIds.AddConfiguration
91
91
  }]
92
92
  });
@@ -30,13 +30,13 @@ let McpAddContextContribution = class McpAddContextContribution extends Disposab
30
30
  _registerAddContextMenu() {
31
31
  this._addContextMenu.value = this._chatContextPickService.registerChatContextItem({
32
32
  type: 'pickerPick',
33
- label: ( localize(8550, "MCP Resources...")),
33
+ label: ( localize(8569, "MCP Resources...")),
34
34
  icon: Codicon.mcp,
35
35
  isEnabled(widget) {
36
36
  return !!widget.attachmentCapabilities.supportsMCPAttachments;
37
37
  },
38
38
  asPicker: () => ({
39
- placeholder: ( localize(8551, "Select MCP Resource...")),
39
+ placeholder: ( localize(8570, "Select MCP Resource...")),
40
40
  picks: (_query, token) => this._getResourcePicks(token),
41
41
  }),
42
42
  });
@@ -54,7 +54,7 @@ import { VIEW_CONTAINER } from '@codingame/monaco-vscode-2673c6e2-17c1-5710-b169
54
54
  import { extensionsFilterSubMenu } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions';
55
55
  import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
56
56
  import { TEXT_FILE_EDITOR_ID } from '@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common/vscode/vs/workbench/contrib/files/common/files';
57
- import { McpCommandIds } from '@codingame/monaco-vscode-7b19b93e-7a49-5c48-81f5-091a64f468d2-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
57
+ import { McpCommandIds } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
58
58
  import { McpContextKeys } from '../common/mcpContextKeys.js';
59
59
  import { IMcpRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service';
60
60
  import { McpConnectionState, McpCapability, McpServerCacheState, LazyCollectionState, McpStartServerInteraction, InstalledMcpServersViewId, HasInstalledMcpServersContext, mcpPromptPrefix } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
@@ -77,7 +77,7 @@ class ListMcpServerCommand extends Action2 {
77
77
  constructor() {
78
78
  super({
79
79
  id: McpCommandIds.ListServer,
80
- title: ( localize2(8552, 'List Servers')),
80
+ title: ( localize2(8571, 'List Servers')),
81
81
  icon: Codicon.server,
82
82
  category,
83
83
  f1: true,
@@ -96,14 +96,14 @@ class ListMcpServerCommand extends Action2 {
96
96
  const quickInput = accessor.get(IQuickInputService);
97
97
  const store = ( new DisposableStore());
98
98
  const pick = quickInput.createQuickPick({ useSeparators: true });
99
- pick.placeholder = ( localize(8553, 'Select an MCP Server'));
99
+ pick.placeholder = ( localize(8572, 'Select an MCP Server'));
100
100
  mcpService.activateCollections();
101
101
  store.add(pick);
102
102
  store.add(autorun(reader => {
103
103
  const servers = groupBy(mcpService.servers.read(reader).slice().sort((a, b) => (a.collection.presentation?.order || 0) - (b.collection.presentation?.order || 0)), s => s.collection.id);
104
104
  const firstRun = pick.items.length === 0;
105
105
  pick.items = [
106
- { id: '$add', label: ( localize(8554, 'Add Server')), description: ( localize(8555, 'Add a new server configuration')), alwaysShow: true, iconClass: ThemeIcon.asClassName(Codicon.add) },
106
+ { id: '$add', label: ( localize(8573, 'Add Server')), description: ( localize(8574, 'Add a new server configuration')), alwaysShow: true, iconClass: ThemeIcon.asClassName(Codicon.add) },
107
107
  ...( Object.values(servers)).filter(s => s.length).flatMap((servers) => [
108
108
  { type: 'separator', label: servers[0].collection.label, id: servers[0].collection.id },
109
109
  ...( servers.map(server => ({
@@ -140,7 +140,7 @@ class McpConfirmationServerOptionsCommand extends Action2 {
140
140
  constructor() {
141
141
  super({
142
142
  id: McpCommandIds.ServerOptionsInConfirmation,
143
- title: ( localize2(8556, 'Server Options')),
143
+ title: ( localize2(8575, 'Server Options')),
144
144
  category,
145
145
  icon: Codicon.settingsGear,
146
146
  f1: false,
@@ -173,7 +173,7 @@ class McpServerOptionsCommand extends Action2 {
173
173
  constructor() {
174
174
  super({
175
175
  id: McpCommandIds.ServerOptions,
176
- title: ( localize2(8556, 'Server Options')),
176
+ title: ( localize2(8575, 'Server Options')),
177
177
  category,
178
178
  f1: false,
179
179
  });
@@ -195,20 +195,20 @@ class McpServerOptionsCommand extends Action2 {
195
195
  const serverDefinition = collection?.serverDefinitions.get().find(s => s.id === server.definition.id);
196
196
  const items = [];
197
197
  const serverState = server.connectionState.get();
198
- items.push({ type: 'separator', label: ( localize(8557, 'Status')) });
198
+ items.push({ type: 'separator', label: ( localize(8576, 'Status')) });
199
199
  if (McpConnectionState.canBeStarted(serverState.state)) {
200
200
  items.push({
201
- label: ( localize(8558, 'Start Server')),
201
+ label: ( localize(8577, 'Start Server')),
202
202
  action: 'start'
203
203
  });
204
204
  }
205
205
  else {
206
206
  items.push({
207
- label: ( localize(8559, 'Stop Server')),
207
+ label: ( localize(8578, 'Stop Server')),
208
208
  action: 'stop'
209
209
  });
210
210
  items.push({
211
- label: ( localize(8560, 'Restart Server')),
211
+ label: ( localize(8579, 'Restart Server')),
212
212
  action: 'restart'
213
213
  });
214
214
  }
@@ -216,36 +216,36 @@ class McpServerOptionsCommand extends Action2 {
216
216
  const configTarget = serverDefinition?.presentation?.origin || collection?.presentation?.origin;
217
217
  if (configTarget) {
218
218
  items.push({
219
- label: ( localize(8561, 'Show Configuration')),
219
+ label: ( localize(8580, 'Show Configuration')),
220
220
  action: 'config',
221
221
  });
222
222
  }
223
223
  items.push({
224
- label: ( localize(8562, 'Show Output')),
224
+ label: ( localize(8581, 'Show Output')),
225
225
  action: 'showOutput'
226
226
  });
227
- items.push({ type: 'separator', label: ( localize(8563, 'Sampling')) }, {
228
- label: ( localize(8564, 'Configure Model Access')),
229
- description: ( localize(8565, 'Set the models the server can use via MCP sampling')),
227
+ items.push({ type: 'separator', label: ( localize(8582, 'Sampling')) }, {
228
+ label: ( localize(8583, 'Configure Model Access')),
229
+ description: ( localize(8584, 'Set the models the server can use via MCP sampling')),
230
230
  action: 'configSampling'
231
231
  });
232
232
  if (samplingService.hasLogs(server)) {
233
233
  items.push({
234
- label: ( localize(8566, 'Show Sampling Requests')),
235
- description: ( localize(8567, 'Show the sampling requests for this server')),
234
+ label: ( localize(8585, 'Show Sampling Requests')),
235
+ description: ( localize(8586, 'Show the sampling requests for this server')),
236
236
  action: 'samplingLog',
237
237
  });
238
238
  }
239
239
  const capabilities = server.capabilities.get();
240
240
  if (capabilities === undefined || (capabilities & McpCapability.Resources)) {
241
- items.push({ type: 'separator', label: ( localize(8568, 'Resources')) });
241
+ items.push({ type: 'separator', label: ( localize(8587, 'Resources')) });
242
242
  items.push({
243
- label: ( localize(8569, 'Browse Resources')),
243
+ label: ( localize(8588, 'Browse Resources')),
244
244
  action: 'resources',
245
245
  });
246
246
  }
247
247
  const pick = await quickInputService.pick(items, {
248
- placeHolder: ( localize(8570, 'Select action for \'{0}\'', server.definition.label)),
248
+ placeHolder: ( localize(8589, 'Select action for \'{0}\'', server.definition.label)),
249
249
  });
250
250
  if (!pick) {
251
251
  return;
@@ -287,7 +287,7 @@ class McpServerOptionsCommand extends Action2 {
287
287
  editorService.openEditor({
288
288
  resource: undefined,
289
289
  contents: samplingService.getLogText(server),
290
- label: ( localize(8571, 'MCP Sampling: {0}', server.definition.label)),
290
+ label: ( localize(8590, 'MCP Sampling: {0}', server.definition.label)),
291
291
  });
292
292
  break;
293
293
  default:
@@ -304,7 +304,7 @@ class McpServerOptionsCommand extends Action2 {
304
304
  if (accountQuery.entities().getEntityCount().total > 1) {
305
305
  result.push({
306
306
  action: 'disconnect',
307
- label: ( localize(8572, 'Disconnect Account')),
307
+ label: ( localize(8591, 'Disconnect Account')),
308
308
  description: `(${accountName})`,
309
309
  accountQuery
310
310
  });
@@ -312,7 +312,7 @@ class McpServerOptionsCommand extends Action2 {
312
312
  else {
313
313
  result.push({
314
314
  action: 'signout',
315
- label: ( localize(8573, 'Sign Out')),
315
+ label: ( localize(8592, 'Sign Out')),
316
316
  description: `(${accountName})`,
317
317
  accountQuery
318
318
  });
@@ -466,21 +466,21 @@ let MCPServerActionRendering = class MCPServerActionRendering extends Disposable
466
466
  if (state === DisplayedState.NewTools) {
467
467
  markdown = ( new MarkdownString(single
468
468
  ? ( localize(
469
- 8574,
469
+ 8593,
470
470
  "MCP server {0} has been updated and may have new tools available.",
471
471
  names
472
472
  ))
473
473
  : ( localize(
474
- 8575,
474
+ 8594,
475
475
  "MCP servers have been updated and may have new tools available:\n\n{0}",
476
476
  names
477
477
  ))));
478
478
  }
479
479
  else if (state === DisplayedState.Error) {
480
480
  markdown = ( new MarkdownString(single
481
- ? ( localize(8576, "MCP server {0} was unable to start successfully.", names))
481
+ ? ( localize(8595, "MCP server {0} was unable to start successfully.", names))
482
482
  : ( localize(
483
- 8577,
483
+ 8596,
484
484
  "Multiple MCP servers were unable to start successfully:\n\n{0}",
485
485
  names
486
486
  ))));
@@ -508,7 +508,7 @@ let MCPServerActionRendering = class MCPServerActionRendering extends Disposable
508
508
  const divider = $('hr.mcp-hover-divider');
509
509
  container.appendChild(divider);
510
510
  const checkboxContainer = $('div.mcp-hover-setting');
511
- const settingLabelStr = ( localize(8578, "Automatically start MCP servers when sending a chat message"));
511
+ const settingLabelStr = ( localize(8597, "Automatically start MCP servers when sending a chat message"));
512
512
  const checkbox = store.add(( new Checkbox(
513
513
  settingLabelStr,
514
514
  config.get() !== McpAutoStartValue.Never,
@@ -533,13 +533,13 @@ let MCPServerActionRendering = class MCPServerActionRendering extends Disposable
533
533
  }
534
534
  getLabelForState({ state, servers } = displayedStateCurrent.get()) {
535
535
  if (state === DisplayedState.NewTools) {
536
- return localize(8579, "New tools available ({0})", servers.length || 1);
536
+ return localize(8598, "New tools available ({0})", servers.length || 1);
537
537
  }
538
538
  else if (state === DisplayedState.Error) {
539
- return localize(8580, "Error loading {0} tool(s)", servers.length || 1);
539
+ return localize(8599, "Error loading {0} tool(s)", servers.length || 1);
540
540
  }
541
541
  else if (state === DisplayedState.Refreshing) {
542
- return localize(8581, "Discovering tools...");
542
+ return localize(8600, "Discovering tools...");
543
543
  }
544
544
  else {
545
545
  return null;
@@ -560,7 +560,7 @@ class ResetMcpTrustCommand extends Action2 {
560
560
  constructor() {
561
561
  super({
562
562
  id: McpCommandIds.ResetTrust,
563
- title: ( localize2(8582, "Reset Trust")),
563
+ title: ( localize2(8601, "Reset Trust")),
564
564
  category,
565
565
  f1: true,
566
566
  precondition: McpContextKeys.toolsCount.greater(0),
@@ -575,7 +575,7 @@ class ResetMcpCachedTools extends Action2 {
575
575
  constructor() {
576
576
  super({
577
577
  id: McpCommandIds.ResetCachedTools,
578
- title: ( localize2(8583, "Reset Cached Tools")),
578
+ title: ( localize2(8602, "Reset Cached Tools")),
579
579
  category,
580
580
  f1: true,
581
581
  precondition: ( ContextKeyExpr.and(McpContextKeys.toolsCount.greater(0), ( ChatContextKeys.Setup.hidden.negate()))),
@@ -590,9 +590,9 @@ class AddConfigurationAction extends Action2 {
590
590
  constructor() {
591
591
  super({
592
592
  id: McpCommandIds.AddConfiguration,
593
- title: ( localize2(8584, "Add Server...")),
593
+ title: ( localize2(8603, "Add Server...")),
594
594
  metadata: {
595
- description: ( localize2(8585, "Installs a new Model Context protocol to the mcp.json settings")),
595
+ description: ( localize2(8604, "Installs a new Model Context protocol to the mcp.json settings")),
596
596
  },
597
597
  category,
598
598
  f1: true,
@@ -614,7 +614,7 @@ class RemoveStoredInput extends Action2 {
614
614
  constructor() {
615
615
  super({
616
616
  id: McpCommandIds.RemoveStoredInput,
617
- title: ( localize2(8583, "Reset Cached Tools")),
617
+ title: ( localize2(8602, "Reset Cached Tools")),
618
618
  category,
619
619
  f1: false,
620
620
  });
@@ -627,7 +627,7 @@ class EditStoredInput extends Action2 {
627
627
  constructor() {
628
628
  super({
629
629
  id: McpCommandIds.EditStoredInput,
630
- title: ( localize2(8586, "Edit Stored Input")),
630
+ title: ( localize2(8605, "Edit Stored Input")),
631
631
  category,
632
632
  f1: false,
633
633
  });
@@ -641,7 +641,7 @@ class ShowConfiguration extends Action2 {
641
641
  constructor() {
642
642
  super({
643
643
  id: McpCommandIds.ShowConfiguration,
644
- title: ( localize2(8587, "Show Configuration")),
644
+ title: ( localize2(8606, "Show Configuration")),
645
645
  category,
646
646
  f1: false,
647
647
  });
@@ -670,7 +670,7 @@ class ShowOutput extends Action2 {
670
670
  constructor() {
671
671
  super({
672
672
  id: McpCommandIds.ShowOutput,
673
- title: ( localize2(8588, "Show Output")),
673
+ title: ( localize2(8607, "Show Output")),
674
674
  category,
675
675
  f1: false,
676
676
  });
@@ -683,7 +683,7 @@ class RestartServer extends Action2 {
683
683
  constructor() {
684
684
  super({
685
685
  id: McpCommandIds.RestartServer,
686
- title: ( localize2(8589, "Restart Server")),
686
+ title: ( localize2(8608, "Restart Server")),
687
687
  category,
688
688
  f1: false,
689
689
  });
@@ -699,7 +699,7 @@ class StartServer extends Action2 {
699
699
  constructor() {
700
700
  super({
701
701
  id: McpCommandIds.StartServer,
702
- title: ( localize2(8590, "Start Server")),
702
+ title: ( localize2(8609, "Start Server")),
703
703
  category,
704
704
  f1: false,
705
705
  });
@@ -713,7 +713,7 @@ class StopServer extends Action2 {
713
713
  constructor() {
714
714
  super({
715
715
  id: McpCommandIds.StopServer,
716
- title: ( localize2(8591, "Stop Server")),
716
+ title: ( localize2(8610, "Stop Server")),
717
717
  category,
718
718
  f1: false,
719
719
  });
@@ -727,8 +727,8 @@ class McpBrowseCommand extends Action2 {
727
727
  constructor() {
728
728
  super({
729
729
  id: McpCommandIds.Browse,
730
- title: ( localize2(8592, "MCP Servers")),
731
- tooltip: ( localize2(8593, "Browse MCP Servers")),
730
+ title: ( localize2(8611, "MCP Servers")),
731
+ tooltip: ( localize2(8612, "Browse MCP Servers")),
732
732
  category,
733
733
  icon: Codicon.search,
734
734
  precondition: ( ChatContextKeys.Setup.hidden.negate()),
@@ -751,7 +751,7 @@ class McpBrowseCommand extends Action2 {
751
751
  MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
752
752
  command: {
753
753
  id: McpCommandIds.Browse,
754
- title: ( localize2(8594, "Browse MCP Servers")),
754
+ title: ( localize2(8613, "Browse MCP Servers")),
755
755
  category,
756
756
  precondition: ( ChatContextKeys.Setup.hidden.negate()),
757
757
  },
@@ -760,7 +760,7 @@ class ShowInstalledMcpServersCommand extends Action2 {
760
760
  constructor() {
761
761
  super({
762
762
  id: McpCommandIds.ShowInstalled,
763
- title: ( localize2(8595, "Show Installed Servers")),
763
+ title: ( localize2(8614, "Show Installed Servers")),
764
764
  category,
765
765
  precondition: HasInstalledMcpServersContext,
766
766
  f1: true,
@@ -778,7 +778,7 @@ class ShowInstalledMcpServersCommand extends Action2 {
778
778
  MenuRegistry.appendMenuItem(CHAT_CONFIG_MENU_ID, {
779
779
  command: {
780
780
  id: McpCommandIds.ShowInstalled,
781
- title: ( localize2(8596, "MCP Servers"))
781
+ title: ( localize2(8615, "MCP Servers"))
782
782
  },
783
783
  when: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.equals('view', ChatViewId)))),
784
784
  order: 10,
@@ -799,7 +799,7 @@ class OpenUserMcpResourceCommand extends OpenMcpResourceCommand {
799
799
  constructor() {
800
800
  super({
801
801
  id: McpCommandIds.OpenUserMcp,
802
- title: ( localize2(8597, "Open User Configuration")),
802
+ title: ( localize2(8616, "Open User Configuration")),
803
803
  category,
804
804
  f1: true,
805
805
  precondition: ( ChatContextKeys.Setup.hidden.negate()),
@@ -814,7 +814,7 @@ class OpenRemoteUserMcpResourceCommand extends OpenMcpResourceCommand {
814
814
  constructor() {
815
815
  super({
816
816
  id: McpCommandIds.OpenRemoteUserMcp,
817
- title: ( localize2(8598, "Open Remote User Configuration")),
817
+ title: ( localize2(8617, "Open Remote User Configuration")),
818
818
  category,
819
819
  f1: true,
820
820
  precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( RemoteNameContext.notEqualsTo(''))))
@@ -831,7 +831,7 @@ class OpenWorkspaceFolderMcpResourceCommand extends Action2 {
831
831
  constructor() {
832
832
  super({
833
833
  id: McpCommandIds.OpenWorkspaceFolderMcp,
834
- title: ( localize2(8599, "Open Workspace Folder MCP Configuration")),
834
+ title: ( localize2(8618, "Open Workspace Folder MCP Configuration")),
835
835
  category,
836
836
  f1: true,
837
837
  precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( WorkspaceFolderCountContext.notEqualsTo(0))))
@@ -852,7 +852,7 @@ class OpenWorkspaceMcpResourceCommand extends Action2 {
852
852
  constructor() {
853
853
  super({
854
854
  id: McpCommandIds.OpenWorkspaceMcp,
855
- title: ( localize2(8600, "Open Workspace MCP Configuration")),
855
+ title: ( localize2(8619, "Open Workspace MCP Configuration")),
856
856
  category,
857
857
  f1: true,
858
858
  precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( WorkbenchStateContext.isEqualTo('workspace'))))
@@ -871,7 +871,7 @@ class McpBrowseResourcesCommand extends Action2 {
871
871
  constructor() {
872
872
  super({
873
873
  id: McpCommandIds.BrowseResources,
874
- title: ( localize2(8601, "Browse Resources...")),
874
+ title: ( localize2(8620, "Browse Resources...")),
875
875
  category,
876
876
  precondition: McpContextKeys.serverCount.greater(0),
877
877
  f1: true,
@@ -890,7 +890,7 @@ class McpConfigureSamplingModels extends Action2 {
890
890
  constructor() {
891
891
  super({
892
892
  id: McpCommandIds.ConfigureSamplingModels,
893
- title: ( localize2(8602, "Configure SamplingModel")),
893
+ title: ( localize2(8621, "Configure SamplingModel")),
894
894
  category,
895
895
  });
896
896
  }
@@ -914,7 +914,7 @@ class McpConfigureSamplingModels extends Action2 {
914
914
  allItems.sort((a, b) => (b.picked ? 1 : 0) - (a.picked ? 1 : 0) || a.label.localeCompare(b.label));
915
915
  const picked = await quickInputService.pick(allItems, {
916
916
  placeHolder: ( localize(
917
- 8603,
917
+ 8622,
918
918
  'Pick the models {0} can access via MCP sampling',
919
919
  server.definition.label
920
920
  )),
@@ -930,7 +930,7 @@ class McpStartPromptingServerCommand extends Action2 {
930
930
  constructor() {
931
931
  super({
932
932
  id: McpCommandIds.StartPromptForServer,
933
- title: ( localize2(8604, "Start Prompting Server")),
933
+ title: ( localize2(8623, "Start Prompting Server")),
934
934
  category,
935
935
  f1: false,
936
936
  });
@@ -957,7 +957,7 @@ class McpSkipCurrentAutostartCommand extends Action2 {
957
957
  constructor() {
958
958
  super({
959
959
  id: McpCommandIds.SkipCurrentAutostart,
960
- title: ( localize2(8605, "Skip Current Autostart")),
960
+ title: ( localize2(8624, "Skip Current Autostart")),
961
961
  category,
962
962
  f1: false,
963
963
  });
@@ -11,10 +11,10 @@ import { ChatElicitationRequestPart } from '@codingame/monaco-vscode-dc3fa21d-a4
11
11
  import { ChatModel } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/common/chatModel';
12
12
  import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
13
13
  import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatUri';
14
- import { mcpServerToSourceData } from '@codingame/monaco-vscode-7b19b93e-7a49-5c48-81f5-091a64f468d2-common/vscode/vs/workbench/contrib/mcp/common/mcpTypesUtils';
14
+ import { mcpServerToSourceData } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-common/vscode/vs/workbench/contrib/mcp/common/mcpTypesUtils';
15
15
  import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
16
16
 
17
- const noneItem = { id: undefined, label: ( localize(8658, 'None')), description: ( localize(8659, 'No selection')), alwaysShow: true };
17
+ const noneItem = { id: undefined, label: ( localize(8677, 'None')), description: ( localize(8678, 'No selection')), alwaysShow: true };
18
18
  let McpElicitationService = class McpElicitationService {
19
19
  constructor(_notificationService, _quickInputService, _chatService) {
20
20
  this._notificationService = _notificationService;
@@ -28,7 +28,7 @@ let McpElicitationService = class McpElicitationService {
28
28
  if (chatModel instanceof ChatModel) {
29
29
  const request = chatModel.getRequests().at(-1);
30
30
  if (request) {
31
- const part = ( new ChatElicitationRequestPart(( localize(8660, 'Request for Input')), elicitation.message, ( localize(8661, "{0} (MCP Server)", server.definition.label)), ( localize(8662, 'Respond')), ( localize(8663, 'Cancel')), async () => {
31
+ const part = ( new ChatElicitationRequestPart(( localize(8679, 'Request for Input')), elicitation.message, ( localize(8680, "{0} (MCP Server)", server.definition.label)), ( localize(8681, 'Respond')), ( localize(8682, 'Cancel')), async () => {
32
32
  const p = this._doElicit(elicitation, token);
33
33
  resolve(p);
34
34
  const result = await p;
@@ -45,11 +45,11 @@ let McpElicitationService = class McpElicitationService {
45
45
  else {
46
46
  const handle = this._notificationService.notify({
47
47
  message: elicitation.message,
48
- source: ( localize(8664, 'MCP Server ({0})', server.definition.label)),
48
+ source: ( localize(8683, 'MCP Server ({0})', server.definition.label)),
49
49
  severity: Severity.Info,
50
50
  actions: {
51
- primary: [store.add(( new Action('mcp.elicit.give', ( localize(8665, 'Respond')), undefined, true, () => resolve(this._doElicit(elicitation, token)))))],
52
- secondary: [store.add(( new Action('mcp.elicit.cancel', ( localize(8666, 'Cancel')), undefined, true, () => resolve({ action: 'decline' }))))],
51
+ primary: [store.add(( new Action('mcp.elicit.give', ( localize(8684, 'Respond')), undefined, true, () => resolve(this._doElicit(elicitation, token)))))],
52
+ secondary: [store.add(( new Action('mcp.elicit.cancel', ( localize(8685, 'Cancel')), undefined, true, () => resolve({ action: 'decline' }))))],
53
53
  }
54
54
  });
55
55
  store.add(handle.onDidClose(() => resolve({ action: 'cancel' })));
@@ -123,7 +123,7 @@ let McpElicitationService = class McpElicitationService {
123
123
  _getFieldPlaceholder(schema, required) {
124
124
  let placeholder = schema.description || '';
125
125
  if (!required) {
126
- placeholder = placeholder ? `${placeholder} (${( localize(8667, 'Optional'))})` : ( localize(8667, 'Optional'));
126
+ placeholder = placeholder ? `${placeholder} (${( localize(8686, 'Optional'))})` : ( localize(8686, 'Optional'));
127
127
  }
128
128
  return placeholder;
129
129
  }
@@ -168,7 +168,7 @@ let McpElicitationService = class McpElicitationService {
168
168
  else {
169
169
  quickPick.validationMessage = '';
170
170
  if (schema.default) {
171
- items.push({ id: '$default', label: `${schema.default}`, description: ( localize(8668, 'Default value')) });
171
+ items.push({ id: '$default', label: `${schema.default}`, description: ( localize(8687, 'Default value')) });
172
172
  }
173
173
  }
174
174
  if (quickPick.validationMessage) {
@@ -220,10 +220,10 @@ let McpElicitationService = class McpElicitationService {
220
220
  }
221
221
  _validateString(value, schema) {
222
222
  if (schema.minLength && value.length < schema.minLength) {
223
- return { isValid: false, message: ( localize(8669, 'Minimum length is {0}', schema.minLength)) };
223
+ return { isValid: false, message: ( localize(8688, 'Minimum length is {0}', schema.minLength)) };
224
224
  }
225
225
  if (schema.maxLength && value.length > schema.maxLength) {
226
- return { isValid: false, message: ( localize(8670, 'Maximum length is {0}', schema.maxLength)) };
226
+ return { isValid: false, message: ( localize(8689, 'Maximum length is {0}', schema.maxLength)) };
227
227
  }
228
228
  if (schema.format) {
229
229
  const formatValid = this._validateStringFormat(value, schema.format);
@@ -238,29 +238,29 @@ let McpElicitationService = class McpElicitationService {
238
238
  case 'email':
239
239
  return value.includes('@')
240
240
  ? { isValid: true }
241
- : { isValid: false, message: ( localize(8671, 'Please enter a valid email address')) };
241
+ : { isValid: false, message: ( localize(8690, 'Please enter a valid email address')) };
242
242
  case 'uri':
243
243
  if (URL.canParse(value)) {
244
244
  return { isValid: true };
245
245
  }
246
246
  else {
247
- return { isValid: false, message: ( localize(8672, 'Please enter a valid URI')) };
247
+ return { isValid: false, message: ( localize(8691, 'Please enter a valid URI')) };
248
248
  }
249
249
  case 'date': {
250
250
  const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
251
251
  if (!dateRegex.test(value)) {
252
- return { isValid: false, message: ( localize(8673, 'Please enter a valid date (YYYY-MM-DD)')) };
252
+ return { isValid: false, message: ( localize(8692, 'Please enter a valid date (YYYY-MM-DD)')) };
253
253
  }
254
254
  const date = ( new Date(value));
255
255
  return !isNaN(date.getTime())
256
256
  ? { isValid: true }
257
- : { isValid: false, message: ( localize(8673, 'Please enter a valid date (YYYY-MM-DD)')) };
257
+ : { isValid: false, message: ( localize(8692, 'Please enter a valid date (YYYY-MM-DD)')) };
258
258
  }
259
259
  case 'date-time': {
260
260
  const dateTime = ( new Date(value));
261
261
  return !isNaN(dateTime.getTime())
262
262
  ? { isValid: true }
263
- : { isValid: false, message: ( localize(8674, 'Please enter a valid date-time')) };
263
+ : { isValid: false, message: ( localize(8693, 'Please enter a valid date-time')) };
264
264
  }
265
265
  default:
266
266
  return { isValid: true };
@@ -269,16 +269,16 @@ let McpElicitationService = class McpElicitationService {
269
269
  _validateNumber(value, schema) {
270
270
  const parsed = Number(value);
271
271
  if (isNaN(parsed)) {
272
- return { isValid: false, message: ( localize(8675, 'Please enter a valid number')) };
272
+ return { isValid: false, message: ( localize(8694, 'Please enter a valid number')) };
273
273
  }
274
274
  if (schema.type === 'integer' && !Number.isInteger(parsed)) {
275
- return { isValid: false, message: ( localize(8676, 'Please enter a valid integer')) };
275
+ return { isValid: false, message: ( localize(8695, 'Please enter a valid integer')) };
276
276
  }
277
277
  if (schema.minimum !== undefined && parsed < schema.minimum) {
278
- return { isValid: false, message: ( localize(8677, 'Minimum value is {0}', schema.minimum)) };
278
+ return { isValid: false, message: ( localize(8696, 'Minimum value is {0}', schema.minimum)) };
279
279
  }
280
280
  if (schema.maximum !== undefined && parsed > schema.maximum) {
281
- return { isValid: false, message: ( localize(8678, 'Maximum value is {0}', schema.maximum)) };
281
+ return { isValid: false, message: ( localize(8697, 'Maximum value is {0}', schema.maximum)) };
282
282
  }
283
283
  return { isValid: true, parsedValue: parsed };
284
284
  }