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.
*--------------------------------------------------------------------------------------------*/
// Copied from https://github.com/microsoft/vscode/blob/d49049e5263a64cba8c9ca33f89bb0ad198f3391/src/vs/platform/mcp/test/common/mcpManagementService.test.ts
// Refactored to use vitest
import { beforeEach, describe, expect, it } from 'vitest';
import { IGalleryMcpServerConfiguration, IMcpServerVariable, McpMappingUtility, McpServerType, McpServerVariableType, RegistryType, TransportType } from '../../vscode-node/nuget';
describe('McpManagementService - getMcpServerConfigurationFromManifest', () => {
let service: McpMappingUtility;
beforeEach(() => {
service = new McpMappingUtility
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
identifier
version
environmentVariables
name
value
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
resultmcpServerConfigurationconfigenv
resultmcpServerConfigurationinputs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
environmentVariables
name
value
variables
api_token
description
isSecret
isRequired
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigenv
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputstypeMcpServerVariableType
resultmcpServerConfigurationinputsdescription
resultmcpServerConfigurationinputspassword
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
environmentVariables
name
value
description
isRequired
isSecret
result servicemanifest RegistryType
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputsdescription
resultmcpServerConfigurationinputspassword
resultmcpServerConfigurationinputstypeMcpServerVariableType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
environmentVariables
name
value
description
choices
result servicemanifest RegistryType
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputsdescription
resultmcpServerConfigurationinputsdefault
resultmcpServerConfigurationinputstypeMcpServerVariableType
resultmcpServerConfigurationinputsoptions
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
packageArguments
type value valueHint isRepeated
type
name
value
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
identifier
version
environmentVariables
name
value
name
value
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
resultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
identifier
version
runtimeArguments
type
name
value
isRepeated
environmentVariables
name
value
packageArguments
type
value
valueHint
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
resultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
runtimeArguments
type
name
value
isRepeated
variables
db_type
description
choices
isRequired
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputstypeMcpServerVariableType
resultmcpServerConfigurationinputsoptions
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
packageArguments
type
name
description
isRequired
isRepeated
type
valueHint
description
isRequired
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationinputslength
hostInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
hostInputdescription
hostInputdefault
hostInputtypeMcpServerVariableType
dbNameInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
dbNameInputdescription
dbNameInputtypeMcpServerVariableType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
registryBaseUrl
identifier
version
environmentVariables
name
value
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
resultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
packageArguments
type
value
valueHint
isRepeated
type
value
valueHint
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigurl
resultmcpServerConfigurationconfigheaders
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
headers
name
value
variables
api_key
description
isRequired
isSecret
name
value
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigheaders
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputspassword
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigurl
manifest IGalleryMcpServerConfiguration
remotes
type TransportType
url
headers
name
description
isSecret
isRequired
name
description
choices
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigurl
resultmcpServerConfigurationconfigheaders
resultmcpServerConfigurationinputslength
authInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
authInputdescription
authInputpassword
authInputtypeMcpServerVariableType
customInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
customInputdescription
customInputdefault
customInputtypeMcpServerVariableType
customInputoptions
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
environmentVariables
name
value
variables
host
description
port
description
format
db_name
description
isRequired
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigenv
resultmcpServerConfigurationinputslength
hostInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
hostInputdefault
hostInputtypeMcpServerVariableType
portInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
portInputdefault
dbNameInput resultmcpServerConfigurationinputsi IMcpServerVariable iid
dbNameInputdescription
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
runtimeArguments
type
name
value
isRepeated
variables
level
description
choices
result servicemanifest RegistryType
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputstypeMcpServerVariableType
resultmcpServerConfigurationinputsoptions
resultmcpServerConfigurationinputsdefault
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
packageArguments
type
name
value
isRepeated
variables
db_host
description
type
value
valueHint
isRepeated
variables
database_name
description
isRequired
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
resultmcpServerConfigurationinputslength
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
packageArguments
type
valueHint
description
isRequired
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputsdescription
resultmcpServerConfigurationinputstypeMcpServerVariableType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
servicemanifest RegistryType
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtypeMcpServerType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
registryType RegistryType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigcommand
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigenv
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
runtimeArguments
type
name
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
packageArguments
type
valueHint
isRepeated
result servicemanifest RegistryType
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest
packages
registryType RegistryType
identifier
version
runtimeArguments
type
value
isRepeated
result servicemanifest IGalleryMcpServerConfiguration RegistryType
resultnoticeslength
resultnotices
resultnotices
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
runtimeArguments
type
name
value
isRepeated
result servicemanifest RegistryType
resultnoticeslength
resultnotices
resultnotices
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigargs
manifest IGalleryMcpServerConfiguration
packages
registryType RegistryType
identifier
version
environmentVariables
name
value
description
variables
api_key
description
isSecret
result servicemanifest RegistryType
resultmcpServerConfigurationinputslength
resultmcpServerConfigurationinputsid
resultmcpServerConfigurationinputsdescription
resultmcpServerConfigurationinputspassword
resultmcpServerConfigurationconfigtype McpServerType
resultmcpServerConfigurationconfigenv