@codingame/monaco-vscode-mcp-service-override 25.1.2 → 26.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.
- package/package.json +2 -2
- package/vscode/src/vs/platform/mcp/common/allowedMcpServersService.js +5 -5
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifestService.js +20 -30
- package/vscode/src/vs/platform/mcp/common/mcpGalleryService.js +195 -135
- package/vscode/src/vs/platform/mcp/common/mcpManagementIpc.js +65 -26
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +222 -139
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.js +45 -34
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcp.contribution.js +65 -32
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpAddContextContribution.js +11 -14
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +437 -362
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpDiscovery.js +4 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpElicitationService.js +298 -160
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +184 -141
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpMigration.js +52 -56
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.js +169 -118
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +369 -237
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +425 -252
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +9 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +127 -91
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServersView.js +229 -160
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +220 -120
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/extensionMcpDiscovery.js +28 -27
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/installedMcpServersDiscovery.js +33 -26
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAbstract.js +31 -29
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpDiscoveryAdapters.js +43 -20
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/nativeMcpRemoteDiscovery.js +20 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/discovery/workspaceMcpDiscoveryAdapter.js +21 -16
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigFileUtils.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpContextKeys.js +32 -27
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpDevMode.service.js +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.js +157 -81
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistry.js +208 -139
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryInputStorage.js +42 -25
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpResourceFilesystem.js +86 -50
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingLog.js +31 -23
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSamplingService.js +124 -74
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerConnection.js +46 -23
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.js +282 -195
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpService.js +59 -35
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.js +22 -23
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.js +109 -73
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpUsageService.js +14 -17
- package/vscode/src/vs/workbench/services/mcp/browser/mcpGalleryManifestService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/mcp/browser/mcpGalleryManifestService.js +25 -21
- package/vscode/src/vs/workbench/services/mcp/browser/mcpWorkbenchManagementService.js +24 -13
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.js +215 -108
- package/vscode/src/vs/base/common/uriTransformer.d.ts +0 -2
- package/vscode/src/vs/base/common/uriTransformer.js +0 -39
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpDevMode.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpDevMode.js +0 -90
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpIcons.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpIcons.js +0 -107
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.d.ts +0 -206
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +0 -886
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTaskManager.d.ts +0 -68
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTaskManager.js +0 -168
- package/vscode/src/vs/workbench/contrib/mcp/common/uriTemplate.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/mcp/common/uriTemplate.js +0 -296
|
@@ -14,15 +14,35 @@ function transformIncomingURI(uri, transformer) {
|
|
|
14
14
|
function transformIncomingServer(mcpServer, transformer) {
|
|
15
15
|
transformer = transformer ? transformer : DefaultURITransformer;
|
|
16
16
|
const manifest = mcpServer.manifest;
|
|
17
|
-
const transformed = transformAndReviveIncomingURIs({
|
|
18
|
-
|
|
17
|
+
const transformed = transformAndReviveIncomingURIs({
|
|
18
|
+
...mcpServer,
|
|
19
|
+
...{
|
|
20
|
+
manifest: undefined
|
|
21
|
+
}
|
|
22
|
+
}, transformer);
|
|
23
|
+
return {
|
|
24
|
+
...transformed,
|
|
25
|
+
...{
|
|
26
|
+
manifest
|
|
27
|
+
}
|
|
28
|
+
};
|
|
19
29
|
}
|
|
20
30
|
let McpManagementChannelClient = class McpManagementChannelClient extends AbstractMcpManagementService {
|
|
21
|
-
get onInstallMcpServer() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
get
|
|
25
|
-
|
|
31
|
+
get onInstallMcpServer() {
|
|
32
|
+
return this._onInstallMcpServer.event;
|
|
33
|
+
}
|
|
34
|
+
get onDidInstallMcpServers() {
|
|
35
|
+
return this._onDidInstallMcpServers.event;
|
|
36
|
+
}
|
|
37
|
+
get onUninstallMcpServer() {
|
|
38
|
+
return this._onUninstallMcpServer.event;
|
|
39
|
+
}
|
|
40
|
+
get onDidUninstallMcpServer() {
|
|
41
|
+
return this._onDidUninstallMcpServer.event;
|
|
42
|
+
}
|
|
43
|
+
get onDidUpdateMcpServers() {
|
|
44
|
+
return this._onDidUpdateMcpServers.event;
|
|
45
|
+
}
|
|
26
46
|
constructor(channel, allowedMcpServersService, logService) {
|
|
27
47
|
super(allowedMcpServersService, logService);
|
|
28
48
|
this.channel = channel;
|
|
@@ -31,36 +51,55 @@ let McpManagementChannelClient = class McpManagementChannelClient extends Abstra
|
|
|
31
51
|
this._onUninstallMcpServer = this._register(( new Emitter()));
|
|
32
52
|
this._onDidUninstallMcpServer = this._register(( new Emitter()));
|
|
33
53
|
this._onDidUpdateMcpServers = this._register(( new Emitter()));
|
|
34
|
-
this._register(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
54
|
+
this._register(
|
|
55
|
+
this.channel.listen("onInstallMcpServer")(e => this._onInstallMcpServer.fire(({
|
|
56
|
+
...e,
|
|
57
|
+
mcpResource: transformIncomingURI(e.mcpResource)
|
|
58
|
+
})))
|
|
59
|
+
);
|
|
60
|
+
this._register(
|
|
61
|
+
this.channel.listen("onDidInstallMcpServers")(results => this._onDidInstallMcpServers.fire(( results.map(e => ({
|
|
62
|
+
...e,
|
|
63
|
+
local: e.local ? transformIncomingServer(e.local, null) : e.local,
|
|
64
|
+
mcpResource: transformIncomingURI(e.mcpResource)
|
|
65
|
+
})))))
|
|
66
|
+
);
|
|
67
|
+
this._register(
|
|
68
|
+
this.channel.listen("onDidUpdateMcpServers")(results => this._onDidUpdateMcpServers.fire(( results.map(e => ({
|
|
69
|
+
...e,
|
|
70
|
+
local: e.local ? transformIncomingServer(e.local, null) : e.local,
|
|
71
|
+
mcpResource: transformIncomingURI(e.mcpResource)
|
|
72
|
+
})))))
|
|
73
|
+
);
|
|
74
|
+
this._register(
|
|
75
|
+
this.channel.listen("onUninstallMcpServer")(e => this._onUninstallMcpServer.fire(({
|
|
76
|
+
...e,
|
|
77
|
+
mcpResource: transformIncomingURI(e.mcpResource)
|
|
78
|
+
})))
|
|
79
|
+
);
|
|
80
|
+
this._register(
|
|
81
|
+
this.channel.listen("onDidUninstallMcpServer")(e => this._onDidUninstallMcpServer.fire(({
|
|
82
|
+
...e,
|
|
83
|
+
mcpResource: transformIncomingURI(e.mcpResource)
|
|
84
|
+
})))
|
|
85
|
+
);
|
|
43
86
|
}
|
|
44
87
|
install(server, options) {
|
|
45
|
-
return Promise.resolve(this.channel.call(
|
|
88
|
+
return Promise.resolve(this.channel.call("install", [server, options])).then(local => transformIncomingServer(local, null));
|
|
46
89
|
}
|
|
47
90
|
installFromGallery(extension, installOptions) {
|
|
48
|
-
return Promise.resolve(this.channel.call(
|
|
91
|
+
return Promise.resolve(this.channel.call("installFromGallery", [extension, installOptions])).then(local => transformIncomingServer(local, null));
|
|
49
92
|
}
|
|
50
93
|
uninstall(extension, options) {
|
|
51
|
-
return Promise.resolve(this.channel.call(
|
|
94
|
+
return Promise.resolve(this.channel.call("uninstall", [extension, options]));
|
|
52
95
|
}
|
|
53
96
|
getInstalled(mcpResource) {
|
|
54
|
-
return Promise.resolve(this.channel.call(
|
|
55
|
-
.then(servers => ( servers.map(server => transformIncomingServer(server, null))));
|
|
97
|
+
return Promise.resolve(this.channel.call("getInstalled", [mcpResource])).then(servers => ( servers.map(server => transformIncomingServer(server, null))));
|
|
56
98
|
}
|
|
57
99
|
updateMetadata(local, gallery, mcpResource) {
|
|
58
|
-
return Promise.resolve(this.channel.call(
|
|
100
|
+
return Promise.resolve(this.channel.call("updateMetadata", [local, gallery, mcpResource])).then(local => transformIncomingServer(local, null));
|
|
59
101
|
}
|
|
60
102
|
};
|
|
61
|
-
McpManagementChannelClient = ( __decorate([
|
|
62
|
-
( __param(1, IAllowedMcpServersService)),
|
|
63
|
-
( __param(2, ILogService))
|
|
64
|
-
], McpManagementChannelClient));
|
|
103
|
+
McpManagementChannelClient = ( __decorate([( __param(1, IAllowedMcpServersService)), ( __param(2, ILogService))], McpManagementChannelClient));
|
|
65
104
|
|
|
66
105
|
export { McpManagementChannelClient };
|