|
25 | 25 | import io.modelcontextprotocol.util.Assert; |
26 | 26 | import io.modelcontextprotocol.util.DefaultMcpUriTemplateManagerFactory; |
27 | 27 | import io.modelcontextprotocol.util.McpUriTemplateManagerFactory; |
28 | | -import io.modelcontextprotocol.util.ToolInputValidator; |
29 | 28 | import io.modelcontextprotocol.util.ToolNameValidator; |
30 | 29 | import reactor.core.publisher.Mono; |
31 | 30 |
|
@@ -294,7 +293,7 @@ abstract class AsyncSpecification<S extends AsyncSpecification<S>> { |
294 | 293 |
|
295 | 294 | boolean strictToolNameValidation = ToolNameValidator.isStrictByDefault(); |
296 | 295 |
|
297 | | - boolean validateToolInputs = ToolInputValidator.isEnabledByDefault(); |
| 296 | + boolean validateToolInputs = true; |
298 | 297 |
|
299 | 298 | /** |
300 | 299 | * The Model Context Protocol (MCP) allows servers to expose tools that can be |
@@ -888,7 +887,7 @@ abstract class SyncSpecification<S extends SyncSpecification<S>> { |
888 | 887 |
|
889 | 888 | boolean strictToolNameValidation = ToolNameValidator.isStrictByDefault(); |
890 | 889 |
|
891 | | - boolean validateToolInputs = ToolInputValidator.isEnabledByDefault(); |
| 890 | + boolean validateToolInputs = true; |
892 | 891 |
|
893 | 892 | /** |
894 | 893 | * The Model Context Protocol (MCP) allows servers to expose tools that can be |
@@ -1431,7 +1430,7 @@ class StatelessAsyncSpecification { |
1431 | 1430 |
|
1432 | 1431 | boolean strictToolNameValidation = ToolNameValidator.isStrictByDefault(); |
1433 | 1432 |
|
1434 | | - boolean validateToolInputs = ToolInputValidator.isEnabledByDefault(); |
| 1433 | + boolean validateToolInputs = true; |
1435 | 1434 |
|
1436 | 1435 | /** |
1437 | 1436 | * The Model Context Protocol (MCP) allows servers to expose tools that can be |
@@ -1929,7 +1928,7 @@ class StatelessSyncSpecification { |
1929 | 1928 |
|
1930 | 1929 | boolean strictToolNameValidation = ToolNameValidator.isStrictByDefault(); |
1931 | 1930 |
|
1932 | | - boolean validateToolInputs = ToolInputValidator.isEnabledByDefault(); |
| 1931 | + boolean validateToolInputs = true; |
1933 | 1932 |
|
1934 | 1933 | /** |
1935 | 1934 | * The Model Context Protocol (MCP) allows servers to expose tools that can be |
|
0 commit comments