We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4bf65e commit 1384a8fCopy full SHA for 1384a8f
mcp-core/src/main/java/io/modelcontextprotocol/json/internal/DefaultMcpJson.java
@@ -26,6 +26,9 @@ void unsetMcpJsonMapperSupplier(McpJsonMapperSupplier supplier) {
26
}
27
28
public synchronized static McpJsonMapper getDefaultMcpJsonMapper() {
29
+ if (mcpMapperServiceLoader == null) {
30
+ new DefaultMcpJson();
31
+ }
32
return mcpMapperServiceLoader.getDefault();
33
34
@@ -38,6 +41,9 @@ void unsetJsonSchemaValidatorSupplier(JsonSchemaValidatorSupplier supplier) {
38
41
39
42
40
43
public synchronized static JsonSchemaValidator getDefaultJsonSchemaValidator() {
44
+ if (mcpValidatorServiceLoader == null) {
45
46
47
return mcpValidatorServiceLoader.getDefault();
48
49
0 commit comments