Skip to content

Commit 929c3e1

Browse files
committed
oops
1 parent e3b78c7 commit 929c3e1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

mcp/src/test/java/io/modelcontextprotocol/client/StdioMcpAsyncClientTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ class StdioMcpAsyncClientTests extends AbstractMcpAsyncClientTests {
2323
@Override
2424
protected McpClientTransport createMcpTransport() {
2525
ServerParameters stdioParams;
26-
String basePath = System.getProperty("user.dir");
2726
if (System.getProperty("os.name").toLowerCase().contains("win")) {
28-
stdioParams = ServerParameters.builder(basePath + "/node/npx.cmd")
27+
stdioParams = ServerParameters.builder("./node/npx.cmd")
2928
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
3029
.build();
3130
}
3231
else {
33-
stdioParams = ServerParameters.builder(basePath + "/node/npx")
32+
stdioParams = ServerParameters.builder("./node/npx")
3433
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
3534
.build();
3635
}

mcp/src/test/java/io/modelcontextprotocol/client/StdioMcpSyncClientTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ class StdioMcpSyncClientTests extends AbstractMcpSyncClientTests {
3131
@Override
3232
protected McpClientTransport createMcpTransport() {
3333
ServerParameters stdioParams;
34-
String basePath = System.getProperty("user.dir");
3534
if (System.getProperty("os.name").toLowerCase().contains("win")) {
36-
stdioParams = ServerParameters.builder(basePath + "/node/npx.cmd")
35+
stdioParams = ServerParameters.builder("./node/npx.cmd")
3736
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
3837
.build();
3938
}
4039
else {
41-
stdioParams = ServerParameters.builder(basePath + "/node/npx")
40+
stdioParams = ServerParameters.builder("./node/npx")
4241
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
4342
.build();
4443
}

0 commit comments

Comments
 (0)