* fix SSEClientTransport endpoint process with none directory sse path
* fix SSEClientTransport endpoint process with none directory sse path
* Refactor `SseTransportTest` to use `route` for better clarity and update server handling with suspend functions.
---------
Co-authored-by: tpp-builder <tpp-builder@alibaba-inc.com>
Co-authored-by: devcrocod <devcrocod@gmail.com>
Co-authored-by: Leonid Stashevsky <e5l@users.noreply.github.com>
* add wasm and ios targets
* add yarn.lock file to gitignore
* clean up code
* fix typo in method name
* add wasm server example
* update jrelease publishing for klibs
* update gradle-publish workflow to use macos runner
* update README to reflect multiplatform support and clarify server setup for JVM and WASM
* remove the old main file from the kotlin-mcp-server example
* update api dump
* Refactor `build.gradle.kts`
* clean up imports and remove unnecessary charset specification in tests
* add JS target configuration and update API dump
* feat: Add audio type according to 2025-03-26 spec
* chore: update documentation
* feat: add unit test
* chore: commit api dump
* feat: Add audio type according to 2025-03-26 spec
* chore: update documentation
* feat: add unit test
* chore: rebase and commit api dump
---------
Co-authored-by: Leonid Stashevsky <e5l@users.noreply.github.com>
* feat: add message field to ProgressNotification to provide descriptive status updates
* chore: commit api dump
---------
Co-authored-by: Leonid Stashevsky <e5l@users.noreply.github.com>
* feat(server): add utility functions for CallToolResult
CallToolResult.Companion.ok and CallToolResult.Companion.error
* test(server): add unit test for `CallToolResult.Companion.ok`and `CallToolResult.Companion.error`
* feat: update api dump
---------
Co-authored-by: Leonid Stashevsky <e5l@users.noreply.github.com>
* update kotlin version to 2.1.20
* change atomics from atomicfu to kotlin.concurrent
* refactor to use the writechannel
* cancel job and close channel
* Change descriptor to INT for correct serialization
* Remove @OptIn(ExperimentalSerializationApi::class)
bacause The opt-in annotation is redundant: no matching experimental API is used
---------
Co-authored-by: Leonid Stashevsky <e5l@users.noreply.github.com>
* Migrate to Kotlin multiplatform
* Fix publication
* Switch to using `alias` for the AtomicFu plugin
---------
Co-authored-by: Alexander Sysoev <Alexander.Sysoev@jetbrains.com>
The generic types in the Protocol class were not providing significant value and made
the code more complex. This change simplifies the API by removing these generic
parameters while maintaining the same functionality.