diff --git a/mcp/src/main/java/io/modelcontextprotocol/client/transport/StdioClientTransport.java b/mcp/src/main/java/io/modelcontextprotocol/client/transport/StdioClientTransport.java index 009d415e0..bceaffbb8 100644 --- a/mcp/src/main/java/io/modelcontextprotocol/client/transport/StdioClientTransport.java +++ b/mcp/src/main/java/io/modelcontextprotocol/client/transport/StdioClientTransport.java @@ -130,7 +130,7 @@ public Mono connect(Function, Mono> h this.process = processBuilder.start(); } catch (IOException e) { - throw new RuntimeException("Failed to start process with command: " + fullCommand, e); + throw new RuntimeException("Failed to start process with command: " + params.getCommand(), e); } // Validate process streams