|
@@ -9,10 +9,13 @@ import com.fasterxml.jackson.databind.SerializationFeature;
|
|
|
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
|
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
|
|
import io.modelcontextprotocol.json.McpJsonMapper;
|
|
import io.modelcontextprotocol.json.McpJsonMapper;
|
|
|
import io.modelcontextprotocol.json.TypeRef;
|
|
import io.modelcontextprotocol.json.TypeRef;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+import lombok.Getter;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
|
|
+@Data
|
|
|
@Component
|
|
@Component
|
|
|
public class DefaultMcpJsonMapper implements McpJsonMapper {
|
|
public class DefaultMcpJsonMapper implements McpJsonMapper {
|
|
|
|
|
|
|
@@ -69,7 +72,4 @@ public class DefaultMcpJsonMapper implements McpJsonMapper {
|
|
|
return objectMapper.writeValueAsBytes(value);
|
|
return objectMapper.writeValueAsBytes(value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public ObjectMapper getObjectMapper() {
|
|
|
|
|
- return this.objectMapper;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|