Skip to content

Commit 02504b6

Browse files
Change sample tool name to conform to Claude's naming conventions, do not emit any text on stdout when running in stdio mode (modelcontextprotocol#48)
1 parent 7d50d95 commit 02504b6

File tree

1 file changed

+1
-2
lines changed
  • samples/kotlin-mcp-server/src/main/kotlin

1 file changed

+1
-2
lines changed

samples/kotlin-mcp-server/src/main/kotlin/Main.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fun configureServer(): Server {
9191

9292
// Add a tool
9393
server.addTool(
94-
name = "Test io.modelcontextprotocol.kotlin.sdk.Tool",
94+
name = "kotlin-sdk-tool",
9595
description = "A test tool",
9696
inputSchema = Tool.Input()
9797
) { request ->
@@ -128,7 +128,6 @@ fun runMcpServerUsingStdio() {
128128

129129
runBlocking {
130130
server.connect(transport)
131-
println("Server running on stdio")
132131
val done = Job()
133132
server.onCloseCallback = {
134133
done.complete()

0 commit comments

Comments
 (0)