@codingame/monaco-vscode-mcp-service-override 37.0.0 → 37.1.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.
Files changed (26) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/mcp/common/allowedMcpServersService.js +3 -3
  3. package/vscode/src/vs/platform/mcp/common/mcpGalleryService.js +2 -2
  4. package/vscode/src/vs/workbench/contrib/mcp/browser/mcp.contribution.js +3 -3
  5. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpAddContextContribution.js +2 -2
  6. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +96 -96
  7. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +25 -25
  8. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +35 -35
  9. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +4 -4
  10. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +8 -8
  11. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +37 -37
  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 +5 -5
  15. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +17 -17
  16. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +10 -10
  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 +6 -6
  21. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +13 -13
  22. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +11 -11
  24. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.js +3 -3
  25. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +3 -3
  26. 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": "37.0.0",
3
+ "version": "37.1.0",
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": "37.0.0"
18
+ "@codingame/monaco-vscode-api": "37.1.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -32,7 +32,7 @@ let AllowedMcpServersService = class AllowedMcpServersService extends Disposable
32
32
  query: `@id:${mcpAccessConfig}`
33
33
  }).toString());
34
34
  return (new MarkdownString(localize(
35
- 2352,
35
+ 2398,
36
36
  "Model Context Protocol servers are disabled in the Editor. Please check your [settings]({0}).",
37
37
  settingsCommandLink
38
38
  )));
@@ -43,12 +43,12 @@ let AllowedMcpServersService = class AllowedMcpServersService extends Disposable
43
43
  switch (checkMcpServerAllowed(allowlist, denylist, identity)) {
44
44
  case McpServerAllowResult.Denied:
45
45
  return (new MarkdownString(localize(
46
- 2353,
46
+ 2399,
47
47
  "This Model Context Protocol server is blocked by your organization's policy. Please contact your administrator for more information."
48
48
  )));
49
49
  case McpServerAllowResult.NotAllowed:
50
50
  return (new MarkdownString(localize(
51
- 2354,
51
+ 2400,
52
52
  "This Model Context Protocol server is not in the list of servers allowed by your organization. Please contact your administrator for more information."
53
53
  )));
54
54
  }
@@ -545,7 +545,7 @@ let McpGalleryService = class McpGalleryService extends Disposable {
545
545
  async getReadme(gallery, token) {
546
546
  const readmeUrl = gallery.readmeUrl;
547
547
  if (!readmeUrl) {
548
- return Promise.resolve(( localize(2355, "No README available")));
548
+ return Promise.resolve(( localize(2401, "No README available")));
549
549
  }
550
550
  const uri = ( URI.parse(readmeUrl));
551
551
  if (uri.scheme === Schemas.file) {
@@ -557,7 +557,7 @@ let McpGalleryService = class McpGalleryService extends Disposable {
557
557
  }
558
558
  }
559
559
  if (uri.authority !== "raw.githubusercontent.com") {
560
- return ( new MarkdownString(( localize(2356, "You can find information about this server [here]({0})", readmeUrl)))).value;
560
+ return ( new MarkdownString(( localize(2402, "You can find information about this server [here]({0})", readmeUrl)))).value;
561
561
  }
562
562
  const context = await this.requestService.request({
563
563
  type: "GET",
@@ -113,16 +113,16 @@ registerWorkbenchContribution2(
113
113
  const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
114
114
  jsonRegistry.registerSchema(mcpSchemaId, mcpServerSchema);
115
115
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
116
- EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(13506, "MCP Server"))),
116
+ EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(13723, "MCP Server"))),
117
117
  [( new SyncDescriptor(McpServerEditorInput))]
118
118
  );
119
119
  ( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
120
120
  ctor: McpResourceQuickAccess,
121
121
  prefix: McpResourceQuickAccess.PREFIX,
122
122
  when: ChatContextKeys.enabled,
123
- placeholder: ( localize(13507, "Filter to an MCP resource")),
123
+ placeholder: ( localize(13724, "Filter to an MCP resource")),
124
124
  helpEntries: [{
125
- description: ( localize(13508, "MCP Server Resources")),
125
+ description: ( localize(13725, "MCP Server Resources")),
126
126
  commandId: McpCommandIds.AddConfiguration
127
127
  }]
128
128
  });
@@ -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(13509, "MCP Resources...")),
46
+ label: ( localize(13726, "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(13510, "Select MCP Resource...")),
54
+ placeholder: ( localize(13727, "Select MCP Resource...")),
55
55
  picks: (_query, token) => this._getResourcePicks(token, helper),
56
56
  goBack: () => {
57
57
  return helper.navigateBack();