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 { vi } from 'vitest';
import type { ICopilotCLISessionTracker } from '../copilotCLISessionTracker';
type ToolHandler = (args: Record<string, unknown>) => Promise<unknown>;
interface MockToolEntry {
handler: ToolHandler;
schema?: unknown;
}
/**
* A mock MCP server that captures tool registrations for testing.
*/
export class MockMcpServer {
private readonly _tools
name _description rest
handler restlength
rest ToolHandler
rest ToolHandler
schema restlength rest
_toolsname handler schema
name config description inputSchema handler ToolHandler
_toolsname handler schema configinputSchema
name ToolHandler
_toolsnamehandler
name
_toolsnameschema
name
_toolsname
result
typed result content type text
typedcontenttext
filePath
content
startLine
startChar
endLine
endChar
lines content
document
uri
fsPath filePath
scheme
range start line character end line character
range
content
resultLines
i rangestartline i rangeendline i
line linesi
start i rangestartline rangestartcharacter
end i rangeendline rangeendcharacter linelength
resultLineslinestart end
resultLines
selection
start line startLine character startChar
end line endLine character endChar
isEmpty startLine endLine startChar endChar
path
fsPath path
scheme
filePath
content
startLine
startChar
endLine
endChar
scheme
editor filePath content startLine startChar endLine endChar
editor
document
editordocument
uri
editordocumenturi
scheme
message
severity
startLine
startChar
endLine
endChar
source
code
message
severity
range
start line startLine character startChar
end line endLine character endChar
source
code
broadcastedNotifications method params Record
sentNotifications sessionId method params Record
_connectedSessionIds
broadcastNotification vimethod params Record
broadcastedNotifications method params
sendNotification visessionId method params Record
sentNotifications sessionId method params
getConnectedSessionIds vi
_connectedSessionIds
ids
_connectedSessionIds ids
method
broadcastedNotificationsn nmethod method
broadcastedNotificationslength
sentNotificationslength
broadcastNotification
sendNotification
getConnectedSessionIds
_serviceBrand
_displayNames
registerSession vi
getTerminal vi
setSessionTerminal vi
setSessionName visessionId name
_displayNamessessionId name
sessionId
_displayNamessessionId sessionId
_displayNames
ICopilotCLISessionTracker
ICopilotCLISessionTracker