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 { VSBuffer } from '../../../../base/common/buffer.js';
import { upcastPartial } from '../../../../base/test/common/mock.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../base/test/common/utils.js';
import { DisposableStore } from '../../../../base/common/lifecycle.js';
import { Schemas } from '../../../../base/common/network.js';
import { AbstractCommonMcpManagementService, AbstractMcpResourceManagementService, McpUserResourceManagementService } from '../../common/mcpManagementService.js';
import { GalleryMcpServerStatus IAllowedMcpServersService IGalleryMcpServer IGalleryMcpServerConfiguration IInstallableMcpServer ILocalMcpServer IMcpGalleryService InstallOptions RegistryType TransportType UninstallOptions
IMcpSandboxConfiguration McpServerType McpServerVariableType IMcpServerConfiguration IMcpServerVariable
IMarkdownString MarkdownString
Event
ConfigurationTarget
FileService
InMemoryFileSystemProvider
NullLogService
McpResourceScannerService
UriIdentityService
IEnvironmentService
errors
override message Error args
errorsmessage args
override onInstallMcpServer EventNone
override onDidInstallMcpServers EventNone
override onDidUpdateMcpServers EventNone
override onUninstallMcpServer EventNone
override onDidUninstallMcpServer EventNone
override mcpResource ILocalMcpServer
override server IInstallableMcpServer options InstallOptions ILocalMcpServer
override server IGalleryMcpServer options InstallOptions ILocalMcpServer
override local ILocalMcpServer server IGalleryMcpServer profileLocation ILocalMcpServer
override server ILocalMcpServer options UninstallOptions
override server IGalleryMcpServer IInstallableMcpServer IMarkdownString
mcpResource fileService FileService uriIdentityService UriIdentityService mcpResourceScannerService McpResourceScannerService allowedMcpServersService IAllowedMcpServersService _serviceBrand onDidChangeAllowedMcpServers EventNone
mcpResource
ConfigurationTarget
IMcpGalleryService
fileService
uriIdentityService
mcpResourceScannerService
allowedMcpServersService
source IGalleryMcpServer
source
override _server IGalleryMcpServer IInstallableMcpServer IMarkdownString
override _name _mcpServerConfig IMcpServerConfiguration
override _uri ILocalMcpServer
override _server IGalleryMcpServer _options InstallOptions ILocalMcpServer
override _local ILocalMcpServer _server IGalleryMcpServer ILocalMcpServer
service TestMcpManagementService
service
service
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
environmentVariables
name
value
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
assertresultmcpServerConfigurationconfigenv
assertresultmcpServerConfigurationinputs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
identifier
transport type TransportType
version
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
transport type TransportType
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
environmentVariables
name
value
variables
api_token
description
isSecret
isRequired
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigenv
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputstype McpServerVariableType
assertresultmcpServerConfigurationinputsdescription
assertresultmcpServerConfigurationinputspassword
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
environmentVariables
name
value
description
isRequired
isSecret
result servicemanifest RegistryType
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputsdescription
assertresultmcpServerConfigurationinputspassword
assertresultmcpServerConfigurationinputstype McpServerVariableType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
environmentVariables
name
value
description
choices
result servicemanifest RegistryType
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputsdescription
assertresultmcpServerConfigurationinputsdefault
assertresultmcpServerConfigurationinputstype McpServerVariableType
assertresultmcpServerConfigurationinputsoptions
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
packageArguments
type value valueHint isRepeated
type
name
value
isRepeated
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
environmentVariables
name
value
name
value
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
assertresultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
transport type TransportType
identifier
version
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
runtimeArguments
type
name
value
isRepeated
environmentVariables
name
value
packageArguments
type
value
valueHint
isRepeated
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
assertresultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
transport type TransportType
identifier
version
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
runtimeArguments
type
name
value
isRepeated
variables
db_type
description
choices
isRequired
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputstype McpServerVariableType
assertresultmcpServerConfigurationinputsoptions
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
packageArguments
type
name
description
isRequired
isRepeated
type
valueHint
description
isRequired
isRepeated
result servicemanifest RegistryType
assertresultmcpServerConfigurationinputslength
hostInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
asserthostInputdescription
asserthostInputdefault
asserthostInputtype McpServerVariableType
dbNameInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
assertdbNameInputdescription
assertdbNameInputtype McpServerVariableType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
environmentVariables
name
value
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
assertresultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
transport type TransportType
identifier
version
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
packageArguments
type
value
valueHint
isRepeated
type
value
valueHint
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigurl
assertresultmcpServerConfigurationconfigheaders
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
headers
name
value
variables
api_key
description
isRequired
isSecret
name
value
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigheaders
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputspassword
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigurl
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
headers
name
description
isSecret
isRequired
name
description
choices
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigurl
assertresultmcpServerConfigurationconfigheaders
assertresultmcpServerConfigurationinputslength
authInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
assertauthInputdescription
assertauthInputpassword
assertauthInputtype McpServerVariableType
customInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
assertcustomInputdescription
assertcustomInputdefault
assertcustomInputtype McpServerVariableType
assertcustomInputoptions
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
environmentVariables
name
value
variables
host
description
port
description
format
db_name
description
isRequired
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigenv
assertresultmcpServerConfigurationinputslength
hostInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
asserthostInputdefault
asserthostInputtype McpServerVariableType
portInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
assertportInputdefault
dbNameInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
assertdbNameInputdescription
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
runtimeArguments
type
name
value
isRepeated
variables
level
description
choices
result servicemanifest RegistryType
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputstype McpServerVariableType
assertresultmcpServerConfigurationinputsoptions
assertresultmcpServerConfigurationinputsdefault
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
packageArguments
type
name
value
isRepeated
variables
db_host
description
type
value
valueHint
isRepeated
variables
database_name
description
isRequired
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
assertresultmcpServerConfigurationinputslength
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
packageArguments
type
valueHint
description
isRequired
isRepeated
result servicemanifest RegistryType
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputsdescription
assertresultmcpServerConfigurationinputstype McpServerVariableType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
assert
servicemanifest RegistryType
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
result servicemanifest RegistryType
assertresultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
registryType RegistryType
transport type TransportType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigcommand
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
transport type TransportType
identifier
version
runtimeArguments
type
name
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
packageArguments
type
valueHint
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest
packages
registryType RegistryType
identifier
transport type TransportType
version
runtimeArguments
type
value
isRepeated
result servicemanifest IGalleryMcpServerConfiguration RegistryType
assertresultnoticeslength
assertresultnotices
assertresultnotices
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
runtimeArguments
type
name
value
isRepeated
result servicemanifest RegistryType
assertresultnoticeslength
assertresultnotices
assertresultnotices
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
transport type TransportType
version
environmentVariables
name
value
description
variables
api_key
description
isSecret
result servicemanifest RegistryType
assertresultmcpServerConfigurationinputslength
assertresultmcpServerConfigurationinputsid
assertresultmcpServerConfigurationinputsdescription
assertresultmcpServerConfigurationinputspassword
resultmcpServerConfigurationconfigtype McpServerType
assertresultmcpServerConfigurationconfigenv
mcpResource scheme SchemasinMemory path
disposables DisposableStore
fileService FileService
uriIdentityService UriIdentityService
scannerService McpResourceScannerService
service TestMcpResourceManagementService
IGalleryMcpServer
name
displayName
description
version
isLatest
status GalleryMcpServerStatusActive
configuration
publisher
disposables
fileService disposables
disposablesfileServiceSchemasinMemory disposables
uriIdentityService disposables fileService
scannerService disposables fileService uriIdentityService
service disposables mcpResource fileService uriIdentityService scannerService
fileServicemcpResource VSBuffer
sandbox
network allowedDomains
servers
test
type
command
sandboxEnabled
disposables
initial service
assertinitiallength
assertinitialrootSandbox
network allowedDomains
updateCount
updatePromise resolve disposablesservicee
assertelength
updateCount
updatedSandbox IMcpSandboxConfiguration
network allowedDomains
fileServicemcpResource VSBuffer
sandbox updatedSandbox
servers
test
type
command
sandboxEnabled
service
updatePromise
updated service
assertupdateCount
assertupdatedrootSandbox updatedSandbox
gallery
installPromise EventserviceonDidInstallMcpServers
servicegallery
result installPromise
assertresultsource gallery
galleryResource scheme SchemasinMemory path
fileServicegalleryResource VSBuffer
servers
test
type
command
gallery
version
gallery
galleryService disposables
galleryResource
fileService
uriIdentityService
scannerService
_serviceBrand onDidChangeAllowedMcpServers EventNone
userRoamingDataHome scheme SchemasinMemory path
local galleryService
updatePromise EventgalleryServiceonDidUpdateMcpServers
galleryServicelocal gallery
result updatePromise
assertresultsource gallery
galleryResource scheme SchemasinMemory path
fileServicegalleryResource VSBuffer
servers
test
type
command
gallery
version
logService
galleryService disposables
galleryResource
fileService
uriIdentityService
logService
scannerService
_serviceBrand onDidChangeAllowedMcpServers EventNone
userRoamingDataHome scheme SchemasinMemory path
installed galleryService
assert
installed installedserver name servername version serverversion location serverlocation
errors logServiceerrors
installed name version location
errors
mcpResource scheme SchemasinMemory path
disposables DisposableStore
fileService FileService
uriIdentityService UriIdentityService
scannerService McpResourceScannerService
server IInstallableMcpServer name config type McpServerType command args
isAllowed IAllowedMcpServersService TestMcpResourceManagementService
allowedMcpServersService IAllowedMcpServersService _serviceBrand onDidChangeAllowedMcpServers EventNone isAllowed
disposables mcpResource fileService uriIdentityService scannerService allowedMcpServersService
disposables
fileService disposables
disposablesfileServiceSchemasinMemory disposables
uriIdentityService disposables fileService
scannerService disposables fileService uriIdentityService
disposables
service
assert serviceserver
assert services sname servername
service
local serviceserver
assertlocalname servername
assert services sname servername