Path: blob/main/src/vs/workbench/contrib/mcp/electron-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 { IMainProcessService } from '../../../../platform/ipc/common/mainProcessService.js';7import { ILogService } from '../../../../platform/log/common/log.js';8import { McpGatewayToolBrokerChannelName } from '../../../../platform/mcp/common/mcpGateway.js';9import { IMcpService } from '../common/mcpTypes.js';10import { McpGatewayToolBrokerChannel } from '../common/mcpGatewayToolBrokerChannel.js';1112export class McpGatewayToolBrokerContribution implements IWorkbenchContribution {13constructor(14@IMainProcessService mainProcessService: IMainProcessService,15@IMcpService mcpService: IMcpService,16@ILogService logService: ILogService,17) {18mainProcessService.registerChannel(McpGatewayToolBrokerChannelName, new McpGatewayToolBrokerChannel(mcpService, logService));19}20}212223