src/main/kotlin/org/jetbrains/mcpserverplugin/MCPServerStartupValidator.kt [79:93]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val handler = OSProcessHandler(commandLine) val output = StringBuilder() val error = StringBuilder() handler.addProcessListener(object : ProcessAdapter() { override fun onTextAvailable(event: ProcessEvent, outputType: Key<*>) { when (outputType) { ProcessOutputTypes.STDOUT -> output.append(event.text) ProcessOutputTypes.STDERR -> error.append(event.text) } } }) handler.startNotify() val completed = handler.waitFor(5000) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/main/kotlin/org/jetbrains/mcpserverplugin/MCPServerStartupValidator.kt [143:157]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val handler = OSProcessHandler(commandLine) val output = StringBuilder() val error = StringBuilder() handler.addProcessListener(object : ProcessAdapter() { override fun onTextAvailable(event: ProcessEvent, outputType: Key<*>) { when (outputType) { ProcessOutputTypes.STDOUT -> output.append(event.text) ProcessOutputTypes.STDERR -> error.append(event.text) } } }) handler.startNotify() val completed = handler.waitFor(5000) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -