Path: blob/main/src/vs/workbench/contrib/mcp/browser/mcpGatewayToolBrokerContribution.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { IWorkbenchContribution } from '../../../common/contributions.js';6import { ILogService } from '../../../../platform/log/common/log.js';7import { McpGatewayToolBrokerChannelName } from '../../../../platform/mcp/common/mcpGateway.js';8import { IRemoteAgentService } from '../../../services/remote/common/remoteAgentService.js';9import { IMcpService } from '../common/mcpTypes.js';10import { McpGatewayToolBrokerChannel } from '../common/mcpGatewayToolBrokerChannel.js';1112export class McpGatewayToolBrokerContribution implements IWorkbenchContribution {13constructor(14@IRemoteAgentService remoteAgentService: IRemoteAgentService,15@IMcpService mcpService: IMcpService,16@ILogService logService: ILogService,17) {18remoteAgentService.getConnection()?.registerChannel(McpGatewayToolBrokerChannelName, new McpGatewayToolBrokerChannel(mcpService, logService));19}20}212223