Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ This Kotlin SDK implements the MCP specification, making it easy to:
### Artifacts

- `io.modelcontextprotocol:kotlin-sdk` – umbrella SDK (client + server APIs)
- `io.modelcontextprotocol:kotlin-sdk-bom` – version alignment for the core, client, and server artifacts
- `io.modelcontextprotocol:kotlin-sdk-client` – client-only APIs
- `io.modelcontextprotocol:kotlin-sdk-server` – server-only APIs

Expand Down Expand Up @@ -99,6 +100,17 @@ dependencies {
}
```

To keep the core, client, and server artifacts on the same version, import the BOM and omit versions from the
individual SDK dependencies:

```kotlin
dependencies {
implementation(platform("io.modelcontextprotocol:kotlin-sdk-bom:$mcpVersion"))
implementation("io.modelcontextprotocol:kotlin-sdk-client")
implementation("io.modelcontextprotocol:kotlin-sdk-server")
}
```

### Multiplatform

In a Kotlin Multiplatform project you can add the SDK to commonMain:
Expand Down
12 changes: 12 additions & 0 deletions kotlin-sdk-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
`java-platform`
id("mcp.publishing")
}

dependencies {
constraints {
api(project(":kotlin-sdk-core"))
api(project(":kotlin-sdk-client"))
api(project(":kotlin-sdk-server"))
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ include(
":kotlin-sdk-core",
":kotlin-sdk-client",
":kotlin-sdk-server",
":kotlin-sdk-bom",
":kotlin-sdk-testing",
":kotlin-sdk",
":integration-test",
Expand Down