Add server sample (#8)

* Change required dependencies from implementation to api

* Add kotlin mcp server sample

Fixes #6

* Add explicit nop logger to clean CLI

* Update readme with reference
This commit is contained in:
Leonid Stashevsky 2024-12-16 13:27:00 +01:00 • committed by GitHub
commit 42f560e665
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,27 @@
plugins {
kotlin("jvm") version "2.1.0"
kotlin("plugin.serialization") version "2.1.0"
application
}
application {
mainClass.set("MainKt")
}
group = "org.example"
version = "1.0-SNAPSHOT"
dependencies {
implementation("com.github.JetBrains:mcp-kotlin-sdk:b1b0238")
implementation("org.slf4j:slf4j-nop:2.0.9")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}