From 77357a1d2244005d1cd3515a6fc4ab95bc70dff0 Mon Sep 17 00:00:00 2001 From: Pavel Gorgulov Date: Thu, 18 Sep 2025 15:18:12 +0200 Subject: [PATCH] Prerelease 0.7.2-alpha1 (#278) ## Motivation and Context - test new publish plugin - add package.kt to kotlin-sdk umbrella module to resolve klib generation errors during Maven publishing ## Breaking Changes no ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed --- build.gradle.kts | 2 +- .../src/main/kotlin/mcp.publishing.gradle.kts | 1 - gradle/libs.versions.toml | 2 +- .../kotlin/sdk/package.kt | 25 +++++++++++++++++++ 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 kotlin-sdk/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/package.kt diff --git a/build.gradle.kts b/build.gradle.kts index 2c365fa..8c46c99 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { allprojects { group = "io.modelcontextprotocol" - version = "0.7.2-SNAPSHOT" + version = "0.7.2-alpha1" } dependencies { diff --git a/buildSrc/src/main/kotlin/mcp.publishing.gradle.kts b/buildSrc/src/main/kotlin/mcp.publishing.gradle.kts index a9b06a0..36249e2 100644 --- a/buildSrc/src/main/kotlin/mcp.publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/mcp.publishing.gradle.kts @@ -5,7 +5,6 @@ plugins { } mavenPublishing { - signAllPublications() publishToMavenCentral(automaticRelease = true) pom { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5cbc4d2..d06f823 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ kotest = "6.0.3" awaitility = "4.3.0" # Samples -mcp-kotlin = "0.7.2-SNAPSHOT" +mcp-kotlin = "0.7.2-alpha1" anthropic = "2.7.0" shadow = "8.1.1" diff --git a/kotlin-sdk/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/package.kt b/kotlin-sdk/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/package.kt new file mode 100644 index 0000000..59faee4 --- /dev/null +++ b/kotlin-sdk/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/package.kt @@ -0,0 +1,25 @@ +@file:Suppress("ktlint:standard:no-empty-class-body", "ktlint:standard:kdoc") +/** + * # MCP Kotlin SDK + * + * A Kotlin Multiplatform implementation of the Model Context Protocol (MCP). + * + * This is the main SDK module that provides a convenient single dependency + * for all MCP functionality including: + * + * - Core protocol types and utilities ([kotlin-sdk-core]) + * - Client implementations ([kotlin-sdk-client]) + * - Server implementations ([kotlin-sdk-server]) + * + * ## Usage + * + * Add this dependency to your project to get access to all MCP Kotlin SDK functionality: + * + * ```kotlin + * implementation("io.modelcontextprotocol:kotlin-sdk:$version") + * ``` + * + * This will transitively include all core, client, and server components. + */ + +package io.modelcontextprotocol.kotlin.sdk