Skip to content

Commit 2752a52

Browse files
author
MAERYO
committed
Merge branch 'fix/test-calculator-format-and-tags' of https://github.com/maeryo/kotlin-sdk into fix/test-calculator-format-and-tags
2 parents bca63e4 + ae3e11e commit 2752a52

File tree

5 files changed

+74
-9
lines changed

5 files changed

+74
-9
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
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

.github/workflows/samples.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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/

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
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

811
Kotlin Multiplatform implementation of the [Model Context Protocol](https://modelcontextprotocol.io) (MCP),

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
allprojects {
88
group = "io.modelcontextprotocol"
9-
version = "0.7.3"
9+
version = "0.7.4-SNAPSHOT"
1010
}
1111

1212
dependencies {

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kotlin = "2.2.10"
44
dokka = "2.0.0"
55
atomicfu = "0.29.0"
66
ktlint = "13.1.0"
7-
kover = "0.9.2"
7+
kover = "0.9.3"
88
netty = "4.2.7.Final"
99
mavenPublish = "0.34.0"
1010
binaryCompatibilityValidatorPlugin = "0.18.1"
@@ -17,13 +17,13 @@ kotlinx-io = "0.8.0"
1717
ktor = "3.3.0"
1818
logging = "7.0.13"
1919
slf4j = "2.0.17"
20-
kotest = "6.0.3"
20+
kotest = "6.0.4"
2121
awaitility = "4.3.0"
2222
mokksy = "0.6.1"
2323

2424
# Samples
2525
mcp-kotlin = "0.7.3"
26-
anthropic = "2.7.0"
26+
anthropic = "2.9.0"
2727
shadow = "8.1.1"
2828

2929
[libraries]

0 commit comments

Comments
 (0)