@codingame/monaco-vscode-mcp-service-override 33.0.7 → 34.0.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 (33) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/platform/mcp/common/allowedMcpServersService.js +1 -1
  3. package/vscode/src/vs/platform/mcp/common/mcpGalleryService.js +2 -2
  4. package/vscode/src/vs/workbench/contrib/mcp/browser/mcp.contribution.js +5 -4
  5. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpAddContextContribution.js +2 -2
  6. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.d.ts +4 -0
  7. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +150 -63
  8. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +25 -25
  9. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.d.ts +3 -1
  10. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +86 -25
  11. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +4 -4
  12. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +8 -8
  13. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +37 -37
  14. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
  16. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +9 -9
  17. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +17 -17
  18. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +34 -11
  19. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/extensionMcpDiscovery.js +4 -4
  20. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAbstract.js +1 -1
  21. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAdapters.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/mcp/common/mcpContextKeys.js +4 -4
  23. package/vscode/src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.js +6 -6
  24. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +13 -13
  25. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +1 -1
  26. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +11 -11
  27. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.js +15 -4
  28. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +3 -3
  29. package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.d.ts +1 -0
  30. package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.js +7 -25
  31. package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.d.ts +15 -0
  32. package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.js +26 -1
  33. package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.js +9 -9
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-mcp-service-override",
3
- "version": "33.0.7",
3
+ "version": "34.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - mcp service-override",
6
6
  "keywords": [],
7
+ "license": "MIT",
7
8
  "author": {
8
9
  "name": "CodinGame",
9
10
  "url": "http://www.codingame.com"
10
11
  },
11
- "license": "MIT",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "33.0.7"
18
+ "@codingame/monaco-vscode-api": "34.0.0"
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
- 2076,
30
+ 2106,
31
31
  "Model Context Protocol servers are disabled in the Editor. Please check your [settings]({0}).",
32
32
  settingsCommandLink
33
33
  )));
@@ -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(2077, "No README available")));
459
+ return Promise.resolve(( localize(2107, "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(2078, "You can find information about this server [here]({0})", readmeUrl)))).value;
471
+ return ( new MarkdownString(( localize(2108, "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",
@@ -34,7 +34,7 @@ import '../common/mcpService.js';
34
34
  import './mcpGatewayService.js';
35
35
  import { McpGatewayToolBrokerContribution } from './mcpGatewayToolBrokerContribution.js';
36
36
  import { McpAddContextContribution } from './mcpAddContextContribution.js';
37
- import { ListMcpServerCommand, McpServerOptionsCommand, McpConfirmationServerOptionsCommand, ResetMcpTrustCommand, ResetMcpCachedTools, AddConfigurationAction, InstallFromManifestAction, RemoveStoredInput, EditStoredInput, StartServer, StopServer, ShowOutput, RestartServer, ShowConfiguration, McpBrowseCommand, OpenUserMcpResourceCommand, OpenRemoteUserMcpResourceCommand, OpenWorkspaceMcpResourceCommand, OpenWorkspaceFolderMcpResourceCommand, ShowInstalledMcpServersCommand, McpBrowseResourcesCommand, McpConfigureSamplingModels, McpStartPromptingServerCommand, McpSkipCurrentAutostartCommand, MCPServerActionRendering } from './mcpCommands.js';
37
+ import { ListMcpServerCommand, McpServerOptionsCommand, McpConfirmationServerOptionsCommand, ResetMcpTrustCommand, ResetMcpCachedTools, AddConfigurationAction, InstallFromManifestAction, RemoveStoredInput, EditStoredInput, SetOAuthClientSecret, StartServer, StopServer, ShowOutput, RestartServer, ShowConfiguration, McpBrowseCommand, OpenUserMcpResourceCommand, OpenRemoteUserMcpResourceCommand, OpenWorkspaceMcpResourceCommand, OpenWorkspaceFolderMcpResourceCommand, ShowInstalledMcpServersCommand, McpBrowseResourcesCommand, McpConfigureSamplingModels, McpStartPromptingServerCommand, McpSkipCurrentAutostartCommand, MCPServerActionRendering } from './mcpCommands.js';
38
38
  import { McpDiscovery } from './mcpDiscovery.js';
39
39
  import './mcpElicitationService.js';
40
40
  import { McpLanguageFeatures } from './mcpLanguageFeatures.js';
@@ -77,6 +77,7 @@ registerAction2(AddConfigurationAction);
77
77
  registerAction2(InstallFromManifestAction);
78
78
  registerAction2(RemoveStoredInput);
79
79
  registerAction2(EditStoredInput);
80
+ registerAction2(SetOAuthClientSecret);
80
81
  registerAction2(StartServer);
81
82
  registerAction2(StopServer);
82
83
  registerAction2(ShowOutput);
@@ -111,16 +112,16 @@ registerWorkbenchContribution2(
111
112
  const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
112
113
  jsonRegistry.registerSchema(mcpSchemaId, mcpServerSchema);
113
114
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
114
- EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(10974, "MCP Server"))),
115
+ EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(11143, "MCP Server"))),
115
116
  [( new SyncDescriptor(McpServerEditorInput))]
116
117
  );
117
118
  ( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
118
119
  ctor: McpResourceQuickAccess,
119
120
  prefix: McpResourceQuickAccess.PREFIX,
120
121
  when: ChatContextKeys.enabled,
121
- placeholder: ( localize(10975, "Filter to an MCP resource")),
122
+ placeholder: ( localize(11144, "Filter to an MCP resource")),
122
123
  helpEntries: [{
123
- description: ( localize(10976, "MCP Server Resources")),
124
+ description: ( localize(11145, "MCP Server Resources")),
124
125
  commandId: McpCommandIds.AddConfiguration
125
126
  }]
126
127
  });
@@ -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(10977, "MCP Resources...")),
46
+ label: ( localize(11146, "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(10978, "Select MCP Resource...")),
54
+ placeholder: ( localize(11147, "Select MCP Resource...")),
55
55
  picks: (_query, token) => this._getResourcePicks(token, helper),
56
56
  goBack: () => {
57
57
  return helper.navigateBack();
@@ -52,6 +52,10 @@ export declare class EditStoredInput extends Action2 {
52
52
  constructor();
53
53
  run(accessor: ServicesAccessor, inputId: string, uri: URI | undefined, configSection: string, target: ConfigurationTarget): void;
54
54
  }
55
+ export declare class SetOAuthClientSecret extends Action2 {
56
+ constructor();
57
+ run(accessor: ServicesAccessor, clientId: string, mcpServerUrl: string, serverName: string): Promise<void>;
58
+ }
55
59
  export declare class ShowConfiguration extends Action2 {
56
60
  constructor();
57
61
  run(accessor: ServicesAccessor, collectionId: string, serverId: string): void;