Fix stdio tests - proper server-everything argument (#237)
Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
This commit is contained in:
parent
b2d3e0098e
commit
f34662555a
2 changed files with 4 additions and 4 deletions
|
|
@ -25,12 +25,12 @@ class StdioMcpAsyncClientTests extends AbstractMcpAsyncClientTests {
|
|||
ServerParameters stdioParams;
|
||||
if (System.getProperty("os.name").toLowerCase().contains("win")) {
|
||||
stdioParams = ServerParameters.builder("cmd.exe")
|
||||
.args("/c", "npx.cmd", "-y", "@modelcontextprotocol/server-everything", "dir")
|
||||
.args("/c", "npx.cmd", "-y", "@modelcontextprotocol/server-everything", "stdio")
|
||||
.build();
|
||||
}
|
||||
else {
|
||||
stdioParams = ServerParameters.builder("npx")
|
||||
.args("-y", "@modelcontextprotocol/server-everything", "dir")
|
||||
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
|
||||
.build();
|
||||
}
|
||||
return new StdioClientTransport(stdioParams);
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@ class StdioMcpSyncClientTests extends AbstractMcpSyncClientTests {
|
|||
ServerParameters stdioParams;
|
||||
if (System.getProperty("os.name").toLowerCase().contains("win")) {
|
||||
stdioParams = ServerParameters.builder("cmd.exe")
|
||||
.args("/c", "npx.cmd", "-y", "@modelcontextprotocol/server-everything", "dir")
|
||||
.args("/c", "npx.cmd", "-y", "@modelcontextprotocol/server-everything", "stdio")
|
||||
.build();
|
||||
}
|
||||
else {
|
||||
stdioParams = ServerParameters.builder("npx")
|
||||
.args("-y", "@modelcontextprotocol/server-everything", "dir")
|
||||
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
|
||||
.build();
|
||||
}
|
||||
return new StdioClientTransport(stdioParams);
|
||||
|
|
|
|||
Loading…
Reference in a new issue