@codingame/monaco-vscode-mcp-service-override 34.1.1 → 35.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 (34) hide show
  1. package/package.json +2 -2
  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 +6 -5
  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 +7 -0
  7. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +247 -73
  8. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +25 -25
  9. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +23 -23
  10. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +4 -4
  11. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +8 -8
  12. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +37 -37
  13. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
  14. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
  15. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
  16. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +17 -17
  17. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +10 -10
  18. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/extensionMcpDiscovery.js +4 -4
  19. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/installedMcpServersDiscovery.js +2 -2
  20. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAbstract.js +1 -1
  21. package/vscode/src/vs/workbench/contrib/mcp/common/mcpContextKeys.js +4 -4
  22. package/vscode/src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.js +8 -6
  23. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +13 -13
  24. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +1 -1
  25. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +11 -11
  26. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.js +3 -3
  27. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +3 -3
  28. package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.d.ts +4 -9
  29. package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.js +5 -48
  30. package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.d.ts +12 -0
  31. package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.js +3 -0
  32. package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.js +9 -9
  33. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery.d.ts +0 -15
  34. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery.js +0 -118
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-mcp-service-override",
3
- "version": "34.1.1",
3
+ "version": "35.0.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": "34.1.1"
18
+ "@codingame/monaco-vscode-api": "35.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
- 2106,
30
+ 2180,
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(2107, "No README available")));
459
+ return Promise.resolve(( localize(2181, "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(2108, "You can find information about this server [here]({0})", readmeUrl)))).value;
471
+ return ( new MarkdownString(( localize(2182, "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",
@@ -17,7 +17,7 @@ import { ExtensionMcpDiscovery } from '../common/discovery/extensionMcpDiscovery
17
17
  import { InstalledMcpServersDiscovery } from '../common/discovery/installedMcpServersDiscovery.js';
18
18
  import { mcpDiscoveryRegistry } from '../common/discovery/mcpDiscovery.js';
19
19
  import { RemoteNativeMpcDiscovery } from '../common/discovery/nativeMcpRemoteDiscovery.js';
20
- import { PluginMcpDiscovery } from '../common/discovery/pluginMcpDiscovery.js';
20
+ import { PluginMcpDiscovery } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery';
21
21
  import { CursorWorkspaceMcpDiscoveryAdapter } from '../common/discovery/workspaceMcpDiscoveryAdapter.js';
22
22
  import { WorkspaceDotMcpDiscovery } from '../common/discovery/workspaceDotMcpDiscovery.js';
23
23
  import { McpCommandIds } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpCommandIds';
@@ -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, SetOAuthClientSecret, StartServer, StopServer, ShowOutput, RestartServer, ShowConfiguration, McpBrowseCommand, OpenUserMcpResourceCommand, OpenRemoteUserMcpResourceCommand, OpenWorkspaceMcpResourceCommand, OpenWorkspaceFolderMcpResourceCommand, ShowInstalledMcpServersCommand, McpBrowseResourcesCommand, McpConfigureSamplingModels, McpStartPromptingServerCommand, McpSkipCurrentAutostartCommand, MCPServerActionRendering } from './mcpCommands.js';
37
+ import { ListMcpServerCommand, McpServerOptionsCommand, McpAgentHostServerOptionsCommand, 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';
@@ -70,6 +70,7 @@ registerWorkbenchContribution2(
70
70
  );
71
71
  registerAction2(ListMcpServerCommand);
72
72
  registerAction2(McpServerOptionsCommand);
73
+ registerAction2(McpAgentHostServerOptionsCommand);
73
74
  registerAction2(McpConfirmationServerOptionsCommand);
74
75
  registerAction2(ResetMcpTrustCommand);
75
76
  registerAction2(ResetMcpCachedTools);
@@ -112,16 +113,16 @@ registerWorkbenchContribution2(
112
113
  const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
113
114
  jsonRegistry.registerSchema(mcpSchemaId, mcpServerSchema);
114
115
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
115
- EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(11143, "MCP Server"))),
116
+ EditorPaneDescriptor.create(McpServerEditor, McpServerEditor.ID, ( localize(11759, "MCP Server"))),
116
117
  [( new SyncDescriptor(McpServerEditorInput))]
117
118
  );
118
119
  ( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
119
120
  ctor: McpResourceQuickAccess,
120
121
  prefix: McpResourceQuickAccess.PREFIX,
121
122
  when: ChatContextKeys.enabled,
122
- placeholder: ( localize(11144, "Filter to an MCP resource")),
123
+ placeholder: ( localize(11760, "Filter to an MCP resource")),
123
124
  helpEntries: [{
124
- description: ( localize(11145, "MCP Server Resources")),
125
+ description: ( localize(11761, "MCP Server Resources")),
125
126
  commandId: McpCommandIds.AddConfiguration
126
127
  }]
127
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(11146, "MCP Resources...")),
46
+ label: ( localize(11762, "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(11147, "Select MCP Resource...")),
54
+ placeholder: ( localize(11763, "Select MCP Resource...")),
55
55
  picks: (_query, token) => this._getResourcePicks(token, helper),
56
56
  goBack: () => {
57
57
  return helper.navigateBack();
@@ -14,6 +14,13 @@ import { IMcpService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/co
14
14
  export declare class ListMcpServerCommand extends Action2 {
15
15
  constructor();
16
16
  run(accessor: ServicesAccessor): Promise<void>;
17
+ private _runWithMode;
18
+ private _runLocal;
19
+ private _runAgentHost;
20
+ }
21
+ export declare class McpAgentHostServerOptionsCommand extends Action2 {
22
+ constructor();
23
+ run(accessor: ServicesAccessor, agentHostSession: URI, customizationId: string): Promise<void>;
17
24
  }
18
25
  export declare class McpConfirmationServerOptionsCommand extends Action2 {
19
26
  constructor();