Change sample tool name to conform to Claude's naming conventions, do not emit any text on stdout when running in stdio mode (#48)

This commit is contained in:
Sebastian Aigner 2025-03-07 15:28:26 +01:00 • committed by GitHub
commit c57c56e18f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,7 @@ fun configureServer(): Server {
// Add a tool
server.addTool(
name = "Test io.modelcontextprotocol.kotlin.sdk.Tool",
name = "kotlin-sdk-tool",
description = "A test tool",
inputSchema = Tool.Input()
) { request ->
@ -128,7 +128,6 @@ fun runMcpServerUsingStdio() {
runBlocking {
server.connect(transport)
println("Server running on stdio")
val done = Job()
server.onCloseCallback = {
done.complete()