Skip to content

Commit 2dfbfc7

Browse files
Downgrade MCP version to 0.9 (#3821)
Signed-off-by: rithin-pullela-aws <rithinp@amazon.com>
1 parent 581a596 commit 2dfbfc7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

ml-algorithms/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ dependencies {
8585
implementation('net.minidev:json-smart:2.5.2')
8686
implementation group: 'org.json', name: 'json', version: '20231013'
8787
implementation group: 'software.amazon.awssdk', name: 'netty-nio-client', version: "2.30.18"
88-
// TODO: Replace the custom jar with dependency implementation 'io.modelcontextprotocol.sdk:mcp:0.10.0' after its release
89-
api files('libs/mcp-0.10.0-SNAPSHOT.jar')
88+
api('io.modelcontextprotocol.sdk:mcp:0.9.0')
9089
testImplementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
9190
testImplementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
9291
testImplementation group: 'com.networknt' , name: 'json-schema-validator', version: '1.4.0'

ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/McpConnectorExecutor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ public List<MLToolSpec> getMcpToolSpecs() {
8282
Duration readTimeout = Duration.ofSeconds(super.getConnectorClientConfig().getReadTimeout());
8383

8484
Consumer<HttpRequest.Builder> headerConfig = builder -> {
85-
builder.header("Content-Type", "application/json");
86-
8785
for (Map.Entry<String, String> entry : connector.getDecryptedHeaders().entrySet()) {
8886
builder.header(entry.getKey(), entry.getValue());
8987
}

plugin/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ configurations.all {
436436
resolutionStrategy.force "jakarta.json:jakarta.json-api:2.1.3"
437437
resolutionStrategy.force "org.opensearch:opensearch:${opensearch_version}"
438438
resolutionStrategy.force "org.bouncycastle:bcprov-jdk18on:1.78.1"
439+
resolutionStrategy.force 'io.projectreactor:reactor-core:3.7.0'
439440
}
440441

441442
apply plugin: 'com.netflix.nebula.ospackage'

0 commit comments

Comments
 (0)