Daily Usage Issues

MCP Server - WaitForEngineWorkCompleted times out

Started by arkiaconsulting on 5 views

Hi,

whatever the engine is busy or not, the AI agent call to `WaitForEngineWorkCompleted` times out.

This happens either from within VS 2026 IDE integration, either from the console tool.


System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> nCrunch.Common.UserException: Timed out while waiting for NCrunch engine work to complete. Last state: Running, tasks in progress: 2, unprocessed tasks: 74
at nCrunch.Client.MCP.McpToolReflector.CallTool(Object controlSurface, String name, JObject arguments)
at nCrunch.Client.MCP.McpIpcEndpoint.CallToolJson(String name, String argumentsJson)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.processCallMethodMessage(CallMethodMessage callMethodMessage)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.readMessage(Byte[] returnedData)
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.Invoke(String methodName, Object[] args)
at nCrunch.Client.MCP.McpIpcEndpointProxy.CallToolJson(String name, String argumentsJson)
at NCrunch.MCP.McpSessionHost.CallTool(String name, JObject arguments)
at NCrunch.MCP.McpJsonRpcServer.HandleLine(String line)


nCrunch version: 5.23.0.1
nCrunch Console: 5.23.0.1

UPDATE: It does not happen all the time. Cannot figure out what's the discriminant.

Edited

Post a reply

Log in to reply.