IJPL-240099 [MCP server] Support ABI compat for McpServerService.McpSessionOptions

GitOrigin-RevId: 72f4b911d2e4f8114542dd08ce82a215cd52071c
This commit is contained in:
Artem.Bukhonov
2026-03-20 17:49:38 +00:00
committed by intellij-monorepo-bot
parent 8e38f51b7a
commit 064754b98c
@@ -68,7 +68,13 @@ class McpServerService(val cs: CoroutineScope) {
val commandExecutionMode: AskCommandExecutionMode,
val toolFilter: McpToolFilter = McpToolFilter.AllowAll,
val localAgentId: String? = null,
)
) {
@Deprecated("ABI compat with 261.22158 that doesn't have `localAgentId`", level = DeprecationLevel.HIDDEN)
constructor(
commandExecutionMode: AskCommandExecutionMode,
toolFilter: McpToolFilter = McpToolFilter.AllowAll,
) : this(commandExecutionMode, toolFilter, null)
}
companion object {
fun getInstance(): McpServerService = service()