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:
parent
164d276336
commit
c57c56e18f
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue