Skip to content

Commit 5f6084a

Browse files
committed
apply code format standards for project
1 parent 3ed88d7 commit 5f6084a

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

mcp/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public HttpServletSseServerTransportProvider(ObjectMapper objectMapper, String b
180180
* @param messageEndpoint The endpoint path where clients will send their messages
181181
* @param sseEndpoint The endpoint path where clients will establish SSE connections
182182
* @param keepAliveInterval The interval for keep-alive pings, or null to disable
183-
* keep-alive functionality
183+
* keep-alive functionality
184184
* @param contextExtractor The extractor for transport context from the request.
185185
* @deprecated Use the builder {@link #builder()} instead for better configuration
186186
* options.

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ class StdioMcpAsyncClientTests extends AbstractMcpAsyncClientTests {
2323
@Override
2424
protected McpClientTransport createMcpTransport() {
2525
ServerParameters stdioParams;
26-
String currentPath = System.getenv("PATH");
27-
String nodePath = System.getProperty("user.dir") + "/node";
28-
String newPath = nodePath + (currentPath != null ? System.getProperty("path.separator") + currentPath : "");
29-
30-
if (System.getProperty("os.name").toLowerCase().contains("win")) {
31-
stdioParams = ServerParameters.builder("./node/npx.cmd")
32-
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
33-
.addEnvVar("PATH", newPath)
34-
.build();
35-
}
26+
String currentPath = System.getenv("PATH");
27+
String nodePath = System.getProperty("user.dir") + "/node";
28+
String newPath = nodePath + (currentPath != null ? System.getProperty("path.separator") + currentPath : "");
29+
30+
if (System.getProperty("os.name").toLowerCase().contains("win")) {
31+
stdioParams = ServerParameters.builder("./node/npx.cmd")
32+
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
33+
.addEnvVar("PATH", newPath)
34+
.build();
35+
}
3636
else {
37-
stdioParams = ServerParameters.builder("./node/npx")
38-
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
39-
.addEnvVar("PATH", newPath)
40-
.build();
37+
stdioParams = ServerParameters.builder("./node/npx")
38+
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
39+
.addEnvVar("PATH", newPath)
40+
.build();
4141
}
4242
return new StdioClientTransport(stdioParams);
4343
}

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ class StdioMcpSyncClientTests extends AbstractMcpSyncClientTests {
3131
@Override
3232
protected McpClientTransport createMcpTransport() {
3333
ServerParameters stdioParams;
34-
String currentPath = System.getenv("PATH");
35-
String nodePath = System.getProperty("user.dir") + "/node";
36-
String newPath = nodePath + (currentPath != null ? System.getProperty("path.separator") + currentPath : "");
37-
38-
if (System.getProperty("os.name").toLowerCase().contains("win")) {
39-
stdioParams = ServerParameters.builder("./node/npx.cmd")
40-
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
41-
.addEnvVar("PATH", newPath)
34+
String currentPath = System.getenv("PATH");
35+
String nodePath = System.getProperty("user.dir") + "/node";
36+
String newPath = nodePath + (currentPath != null ? System.getProperty("path.separator") + currentPath : "");
37+
38+
if (System.getProperty("os.name").toLowerCase().contains("win")) {
39+
stdioParams = ServerParameters.builder("./node/npx.cmd")
40+
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
41+
.addEnvVar("PATH", newPath)
4242
.build();
4343
}
4444
else {
45-
stdioParams = ServerParameters.builder("./node/npx")
46-
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
47-
.addEnvVar("PATH", newPath)
48-
.build();
45+
stdioParams = ServerParameters.builder("./node/npx")
46+
.args("-y", "@modelcontextprotocol/server-everything", "stdio")
47+
.addEnvVar("PATH", newPath)
48+
.build();
4949
}
5050
return new StdioClientTransport(stdioParams);
5151
}

0 commit comments

Comments
 (0)