File tree Expand file tree Collapse file tree 5 files changed +74
-9
lines changed Expand file tree Collapse file tree 5 files changed +74
-9
lines changed Original file line number Diff line number Diff line change 3636
3737 - name : Build with Gradle
3838 run : |-
39- ./gradlew --no-daemon clean ktlintCheck build koverLog koverHtmlReport
40- ./gradlew --no-daemon :kotlin-sdk-core:publishToMavenLocal :kotlin-sdk-client:publishToMavenLocal :kotlin-sdk-server:publishToMavenLocal
39+ ./gradlew --no-daemon --rerun-tasks \
40+ clean \
41+ ktlintCheck \
42+ build \
43+ koverLog koverHtmlReport \
44+ publishToMavenLocal
4145
4246 - name : Build Kotlin-MCP-Client Sample
4347 working-directory : ./samples/kotlin-mcp-client
Original file line number Diff line number Diff line change 1+ name : Build Samples
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ branches : [ main ]
7+ paths :
8+ - ' samples/**'
9+ push :
10+ branches : [ main ]
11+ paths :
12+ - ' samples/**'
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+ # Cancel only when the run is NOT on `main` branch
17+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
18+
19+ jobs :
20+ build :
21+ runs-on : ubuntu-latest
22+ strategy :
23+ matrix :
24+ sample :
25+ - kotlin-mcp-client
26+ - kotlin-mcp-server
27+ - weather-stdio-server
28+
29+ name : Build Sample
30+ timeout-minutes : 10
31+ env :
32+ JAVA_OPTS : " -Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g"
33+ steps :
34+ - uses : actions/checkout@v5
35+
36+ - name : Set up JDK 21
37+ uses : actions/setup-java@v5
38+ with :
39+ java-version : 21
40+ distribution : ' temurin'
41+
42+ - name : Setup Gradle
43+ uses : gradle/actions/setup-gradle@v5
44+ with :
45+ add-job-summary : ' always'
46+ cache-read-only : true
47+
48+ - name : " Build Sample: ${{ matrix.sample }}"
49+ working-directory : ./samples/${{ matrix.sample }}
50+ run : ./../../gradlew --no-daemon clean build
51+
52+ - name : Upload Reports
53+ if : ${{ !cancelled() }}
54+ uses : actions/upload-artifact@v4
55+ with :
56+ name : reports-${{ matrix.sample }}
57+ path : |
58+ **/build/reports/
Original file line number Diff line number Diff line change 11# MCP Kotlin SDK
22
3- [ ![ Kotlin Multiplatform] ( https://img.shields.io/badge/Kotlin-Multiplatform-blueviolet?logo=kotlin )] ( https://kotlinlang.org/docs/multiplatform.html )
4- [ ![ Platforms] ( https://img.shields.io/badge/Platforms-JVM%20%7C%20Wasm%2FJS%20%7C%20Native%20(iOS%2FiOS%20Simulator)-blue )] ( https://kotlinlang.org/docs/multiplatform.html )
5- [ ![ Maven Central] ( https://img.shields.io/maven-central/v/io.modelcontextprotocol/kotlin-sdk.svg?label=Maven%20Central )] ( https://search.maven.org/search?q=g:io.modelcontextprotocol%20a:kotlin-sdk )
3+
4+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/io.modelcontextprotocol/kotlin-sdk.svg?label=Maven%20Central )] ( https://central.sonatype.com/artifact/io.modelcontextprotocol/kotlin-sdk )
5+ [ ![ Build] ( https://github.com/modelcontextprotocol/kotlin-sdk/actions/workflows/build.yml/badge.svg?branch=main )] ( https://github.com/modelcontextprotocol/kotlin-sdk/actions/workflows/build.yml )
6+ [ ![ Kotlin] ( https://img.shields.io/badge/kotlin-2.2+-blueviolet.svg?logo=kotlin )] ( http://kotlinlang.org )
7+ [ ![ Kotlin Multiplatform] ( https://img.shields.io/badge/Platforms-%20JVM%20%7C%20Wasm%2FJS%20%7C%20Native%20-blueviolet?logo=kotlin )] ( https://kotlinlang.org/docs/multiplatform.html )
8+ [ ![ JVM] ( https://img.shields.io/badge/JVM-1.8+-red.svg?logo=jvm )] ( http://java.com )
69[ ![ License] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( LICENSE )
710
811Kotlin Multiplatform implementation of the [ Model Context Protocol] ( https://modelcontextprotocol.io ) (MCP),
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66
77allprojects {
88 group = " io.modelcontextprotocol"
9- version = " 0.7.3 "
9+ version = " 0.7.4-SNAPSHOT "
1010}
1111
1212dependencies {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ kotlin = "2.2.10"
44dokka = " 2.0.0"
55atomicfu = " 0.29.0"
66ktlint = " 13.1.0"
7- kover = " 0.9.2 "
7+ kover = " 0.9.3 "
88netty = " 4.2.7.Final"
99mavenPublish = " 0.34.0"
1010binaryCompatibilityValidatorPlugin = " 0.18.1"
@@ -17,13 +17,13 @@ kotlinx-io = "0.8.0"
1717ktor = " 3.3.0"
1818logging = " 7.0.13"
1919slf4j = " 2.0.17"
20- kotest = " 6.0.3 "
20+ kotest = " 6.0.4 "
2121awaitility = " 4.3.0"
2222mokksy = " 0.6.1"
2323
2424# Samples
2525mcp-kotlin = " 0.7.3"
26- anthropic = " 2.7 .0"
26+ anthropic = " 2.9 .0"
2727shadow = " 8.1.1"
2828
2929[libraries ]
You can’t perform that action at this time.
0 commit comments