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
|
// Add a tool
|
||||||
server.addTool(
|
server.addTool(
|
||||||
name = "Test io.modelcontextprotocol.kotlin.sdk.Tool",
|
name = "kotlin-sdk-tool",
|
||||||
description = "A test tool",
|
description = "A test tool",
|
||||||
inputSchema = Tool.Input()
|
inputSchema = Tool.Input()
|
||||||
) { request ->
|
) { request ->
|
||||||
|
|
@ -128,7 +128,6 @@ fun runMcpServerUsingStdio() {
|
||||||
|
|
||||||
runBlocking {
|
runBlocking {
|
||||||
server.connect(transport)
|
server.connect(transport)
|
||||||
println("Server running on stdio")
|
|
||||||
val done = Job()
|
val done = Job()
|
||||||
server.onCloseCallback = {
|
server.onCloseCallback = {
|
||||||
done.complete()
|
done.complete()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue