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:
parent
7c0eeaf081
commit
42f560e665
1 changed files with 710 additions and 6 deletions
27
samples/kotlin-mcp-server/build.gradle.kts
Normal file
27
samples/kotlin-mcp-server/build.gradle.kts
Normal 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)
|
||||
}
|
||||
Loading…
Reference in a new issue