-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
Laravel Package Version
1.0.16
Laravel Version
12.24.0
PHP Version
8.3.23
System Info
Windows 11 Pro, PhpStorm 2025.2
Description
Hey, I am still seeing the issue I mentioned in #48 with the "StandaloneCoroutine was cancelled" error for PhpStorm and Junie.

I do not have this problem when adding the MCP server to Jetbrains AI and it works great! Its only Junie that complains.

My Laravel logs have the following in them
"exception": {
"class": "ErrorException",
"message": "fwrite(): Write of 124 bytes failed with errno=22 Invalid argument",
"code": 0,
"file": "C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server\\Transport\\StdioTransport.php:46",
"trace": [
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php:258",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server\\Transport\\StdioTransport.php:46",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server.php:187",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server.php:139",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server\\Transport\\StdioTransport.php:63",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server\\Registrar.php:110",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Server\\Registrar.php:40",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\mcp\\src\\Console\\Commands\\StartServerCommand.php:32",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php:36",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php:43",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php:96",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php:35",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php:835",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php:211",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Command\\Command.php:318",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php:180",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Application.php:1092",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Application.php:341",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Application.php:192",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php:165",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php:426",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Facades\\Facade.php:363",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\boost\\src\\Console\\StartCommand.php:16",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php:36",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php:43",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php:96",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php:35",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php:835",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php:211",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Command\\Command.php:318",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php:180",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Application.php:1092",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Application.php:341",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\symfony\\console\\Application.php:192",
"C:\\Users\\User\\Documents\\Git\\project\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php:197",
"C:\\Users\\User\\Documents\\Git\\project\\src\\artisan:34"
]
}
}
Lastly here are some entries from idea.log
JSON input:
kotlinx.serialization.json.internal.JsonDecodingException: Cannot read Json element because of unexpected end of the input at path: $
JSON input:
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:587)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:585)
at kotlinx.serialization.json.internal.JsonTreeReader.read(JsonTreeReader.kt:107)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeJsonElement(StreamingJsonDecoder.kt:50)
at kotlinx.serialization.json.JsonContentPolymorphicSerializer.deserialize(JsonContentPolymorphicSerializer.kt:90)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:69)
at kotlinx.serialization.json.Json.decodeFromString(Json.kt:149)
at io.modelcontextprotocol.kotlin.sdk.shared.ReadBufferKt.deserializeMessage(ReadBuffer.kt:58)
at io.modelcontextprotocol.kotlin.sdk.shared.ReadBuffer.readMessage(ReadBuffer.kt:41)
at io.modelcontextprotocol.kotlin.sdk.client.StdioClientTransport.processReadBuffer(StdioClientTransport.kt:120)
at io.modelcontextprotocol.kotlin.sdk.client.StdioClientTransport.access$processReadBuffer(StdioClientTransport.kt:30)
at io.modelcontextprotocol.kotlin.sdk.client.StdioClientTransport$start$3$readJob$1.invokeSuspend(StdioClientTransport.kt:64)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1183)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
2025-08-14 13:07:14,825 [ 55774] WARN - #c.i.m.l.m.e.c.m.McpClient - Failed to connect to mcp server McpServerConfigId(name=laravel-boost, sourcePath=C:\Users\User\Documents\Git\project\src\.junie\mcp\mcp.json): StandaloneCoroutine was cancelled
java.lang.Throwable: Control-flow exceptions (e.g. this class kotlinx.coroutines.JobCancellationException) should never be logged. Instead, these should have been rethrown if caught.
at com.intellij.openapi.diagnostic.Logger.ensureNotControlFlow(Logger.java:504)
at com.intellij.idea.IdeaLogger.warn(IdeaLogger.java:139)
at com.intellij.ml.llm.matterhorn.ej.core.mcp.McpClient$start$2.invokeSuspend(McpClient.kt:104)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:98)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1183)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
Caused by: kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelled}@513c513e
I don't see anything particularly obvious here unfortunately.
Steps To Reproduce
Unfortunately I'm not exactly sure what would reproduce it. Possible its an issue with my specific project since its been upgraded from a Laravel 5.6 install. A new Laravel 12 app works just fine. I am not using Herd, Sail, or Docker with WSL2 for development.