ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import assert from 'assert';
import { CancellationToken } from '../../../../../base/common/cancellation.js';
import { observableValue } from '../../../../../base/common/observable.js';
import { URI } from '../../../../../base/common/uri.js';
import { runWithFakedTimers } from '../../../../../base/test/common/timeTravelScheduler.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
import { ContributionEnablementState } from '../../../chat/common/enablement.js';
import { NullLogService }
IMcpGatewayServerDescriptor
McpGatewayToolBrokerChannel
IMcpIcons IMcpServer IMcpTool IMcpToolCallContext McpConnectionState McpServerCacheState McpToolVisibility
TestMcpService
mcpService
channel mcpService
serverA
content type text
content type text McpToolVisibilityApp
serverB
content type text
mcpServiceserversserverA serverB
resultA channel serverId
assertresultAt tname
resultB channel serverId
assertresultBt tname
channel
mcpService
channel mcpService
invoked
serverA
args
invoked
content type text
serverB
args
invoked
content type text
mcpServiceserversserverA serverB
resultA channel
serverId
name
args name
resultB channel
serverId
name
args name
assertinvoked
assertresultAcontent TextContenttext
assertresultBcontent TextContenttext
channel
mcpService
channel mcpService
server
content type text
mcpServiceserversserver
events
disposable channel
events
servertoolsValue
content type text
content type text
assertevents
disposable
channel
mcpService
channel mcpService
server
content type text
McpServerCacheStateLive
mcpServiceserversserver
channel serverId
assertserverstartCalls
channel
mcpService
channel mcpService
server
content type text
McpServerCacheStateUnknown
mcpServiceserversserver
tools channel serverId
assertserverstartCalls
asserttoolst tname
channel
mcpService
channel mcpService
server
content type text
McpServerCacheStateOutdated
mcpServiceserversserver
tools channel serverId
assertserverstartCalls
asserttoolst tname
channel
useFakeTimers
mcpService
channel mcpService
server
content type text
mcpServiceserversserver
tools channel serverId
asserttools
tools2 channel serverId
asserttools2
channel
useFakeTimers
mcpService
channel mcpService
server
content type text
mcpServiceserversserver
tools1 channel serverId
asserttools1
assertserverstartCalls
servercacheStateValueMcpServerCacheStateUnknown
serverstartBehavior
tools2 channel serverId
asserttools2t tname
assertserverstartCalls
channel
useFakeTimers
mcpService
channel mcpService
server
content type text
McpServerCacheStateUnknown
mcpServiceserversserver
tools1 channel serverId
asserttools1t tname
assertserverstartCalls
tools2 channel serverId
asserttools2t tname
assertserverstartCalls
channel
mcpService
channel mcpService
liveServer McpServerCacheStateLive
unknownServer McpServerCacheStateUnknown
mcpServiceserversliveServer unknownServer
servers channel
assertservers
id label
id label
channel
mcpService
channel mcpService
receivedContexts IMcpToolCallContext
server
receivedContexts content type text
mcpServiceserversserver
sessionUri
channel
serverId
name
args input
chatSessionResource sessionUri
assertreceivedContextslength
assertreceivedContexts
assertreceivedContextschatSessionResource sessionUri
channel
mcpService
channel mcpService
receivedContexts IMcpToolCallContext
server
receivedContexts content type text
mcpServiceserversserver
channel
serverId
name
args input
assertreceivedContextslength
assertreceivedContexts
channel
mcpService
channel mcpService
serverA
mcpServiceserversserverA
received IMcpGatewayServerDescriptor
disposable channel e
receivede
serverB
mcpServiceserversserverA serverB
assertreceivedlength
assertreceived
id label
id label
mcpServiceserversserverB
assertreceivedlength
assertreceived
id label
disposable
channel
collectionId
definitionId
initialTools IMcpTool
initialCacheState McpServerCacheState McpServerCacheStateLive
IMcpServer toolsValue ReturnType observableValue IMcpTool startCalls
owner
tools owner initialTools
connectionState owner state McpConnectionStateKindRunning
cacheState owner initialCacheState
startCalls
collection id collectionId label collectionId order
definition id definitionId label definitionId
connection owner
connectionState
enablement owner ContributionEnablementStateEnabledProfile
serverMetadata owner
owner server collection
startCalls
cacheStateMcpServerCacheStateLive
state McpConnectionStateKindRunning
cacheState
tools
prompts owner
capabilities owner
toolsValue tools
startCalls
collectionId
definitionId
initialTools IMcpTool
IMcpServer startCalls startBehavior cacheStateValue ReturnType observableValueMcpServerCacheState
owner
tools owner initialTools
connectionState owner state McpConnectionStateKindRunning
cacheState owner McpServerCacheStateUnknown
startCalls
startBehavior
result IMcpServer startCalls startBehavior cacheStateValue ReturnType observableValueMcpServerCacheState
collection id collectionId label collectionId order
definition id definitionId label definitionId
connection owner
connectionState
enablement owner ContributionEnablementStateEnabledProfile
serverMetadata owner
owner server collection
startCalls
resultstartBehavior
cacheStateMcpServerCacheStateLive
state McpConnectionStateKindRunning
cacheState
tools
prompts owner
capabilities owner
startCalls
startBehavior
v startBehavior v
cacheStateValue cacheState
result
name
receivedContexts IMcpToolCallContext
params Record CallToolResult
visibility McpToolVisibility McpToolVisibilityModel
IMcpTool
definition Tool
name
description
inputSchema type properties input type
id
referenceName name
icons IMcpIcons
definition
visibility
uiResourceUri
params Record context _token
receivedContextscontext
params
params Record _progress context _token CancellationTokenNone
receivedContextscontext
params
name params Record CallToolResult visibility McpToolVisibility McpToolVisibilityModel IMcpTool
definition Tool
name
description
inputSchema
type
properties
input type
id
referenceName name
icons IMcpIcons
definition
visibility
uiResourceUri
params Record _context _token params
params Record _progress _context _token CancellationTokenNone params