modularize sdk (#208)
* Modularize SDK: migrated client and server implementations to separate modules. Removed old configuration files and reorganized the source code structure * add support native targets and update js/wasm configurations * Refactor sample projects: add samples as composite builds, replace hardcoded dependencies with version catalog, remove obsolete gradle wrapper files * Update .gitignore: exclude SWE agent directories (.claude/ and .junie/) * Refine CodeQL workflow: update Kotlin build steps to target individual modules separately instead of building all at once
This commit is contained in:
parent
641df74f5d
commit
8698b96dd2
1 changed files with 979 additions and 2003 deletions
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
kotlin("jvm") version "2.1.10"
|
||||
kotlin("plugin.serialization") version "2.1.10"
|
||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||
alias(libs.plugins.kotlin.jvm)
|
||||
alias(libs.plugins.kotlin.serialization)
|
||||
alias(libs.plugins.shadow)
|
||||
application
|
||||
}
|
||||
|
||||
|
|
@ -9,21 +9,21 @@ application {
|
|||
mainClass.set("io.modelcontextprotocol.sample.server.MainKt")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
|
||||
group = "org.example"
|
||||
version = "0.1.0"
|
||||
|
||||
val mcpVersion = "0.6.0"
|
||||
val slf4jVersion = "2.0.9"
|
||||
val ktorVersion = "3.1.1"
|
||||
|
||||
dependencies {
|
||||
implementation("io.modelcontextprotocol:kotlin-sdk:$mcpVersion")
|
||||
implementation("org.slf4j:slf4j-nop:$slf4jVersion")
|
||||
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
|
||||
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
|
||||
implementation(libs.mcp.kotlin)
|
||||
implementation(libs.slf4j.simple)
|
||||
implementation(libs.ktor.client.content.negotiation)
|
||||
implementation(libs.ktor.serialization.kotlinx.json)
|
||||
testImplementation(kotlin("test"))
|
||||
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1")
|
||||
testImplementation(libs.kotlinx.coroutines.test)
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
|
|
|
|||
Loading…
Reference in a new issue