Skip to content

Commit 8140d4d

Browse files
committed
fix format...
1 parent 9d7ed54 commit 8140d4d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

mcp-reactor/src/main/java/io/modelcontextprotocol/session/McpClientSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public <T> Mono<T> sendRequest(String method, Object requestParams, McpType<T> t
242242
McpSchema.JSONRPCRequest jsonrpcRequest = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, method,
243243
requestId, requestParams);
244244
Mono.from(this.transport.sendMessage(jsonrpcRequest))
245-
.contextWrite(ctx)
245+
.contextWrite(ctx)
246246
// TODO: It's most efficient to create a dedicated Subscriber here
247247
.subscribe(v -> {
248248
}, error -> {

mcp-schema-jackson/src/test/java/io/modelcontextprotocol/schema/McpSchemaTests.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ void testJsonSchema() throws Exception {
493493
String serialized = mcpJacksonCodec.getMapper().writeValueAsString(schema);
494494

495495
// Deserialize again
496-
McpSchema.JsonSchema deserialized = mcpJacksonCodec.getMapper().readValue(serialized, McpSchema.JsonSchema.class);
496+
McpSchema.JsonSchema deserialized = mcpJacksonCodec.getMapper()
497+
.readValue(serialized, McpSchema.JsonSchema.class);
497498

498499
// Serialize one more time and compare with the first serialization
499500
String serializedAgain = mcpJacksonCodec.getMapper().writeValueAsString(deserialized);
@@ -536,7 +537,8 @@ void testJsonSchemaWithDefinitions() throws Exception {
536537
String serialized = mcpJacksonCodec.getMapper().writeValueAsString(schema);
537538

538539
// Deserialize again
539-
McpSchema.JsonSchema deserialized = mcpJacksonCodec.getMapper().readValue(serialized, McpSchema.JsonSchema.class);
540+
McpSchema.JsonSchema deserialized = mcpJacksonCodec.getMapper()
541+
.readValue(serialized, McpSchema.JsonSchema.class);
540542

541543
// Serialize one more time and compare with the first serialization
542544
String serializedAgain = mcpJacksonCodec.getMapper().writeValueAsString(deserialized);
@@ -596,7 +598,8 @@ void testToolWithComplexSchema() throws Exception {
596598
}
597599
""";
598600

599-
McpSchema.JsonSchema schema = mcpJacksonCodec.getMapper().readValue(complexSchemaJson, McpSchema.JsonSchema.class);
601+
McpSchema.JsonSchema schema = mcpJacksonCodec.getMapper()
602+
.readValue(complexSchemaJson, McpSchema.JsonSchema.class);
600603
McpSchema.Tool tool = new McpSchema.Tool("addressTool", "Handles addresses", schema);
601604

602605
// Serialize the tool to a string

0 commit comments

Comments
 (0)