Skip to content

Commit a5dc69f

Browse files
committed
remove CompletableDeferred
1 parent df80a0e commit a5dc69f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

quickstart/server.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,6 @@ Add a server initialization function:
11401140
```kotlin
11411141
// Main function to run the MCP server
11421142
fun `run mcp server`() {
1143-
val def = CompletableDeferred<Unit>()
1144-
11451143
// Create the MCP Server instance with a basic implementation
11461144
val server = Server(
11471145
Implementation(
@@ -1151,7 +1149,7 @@ fun `run mcp server`() {
11511149
ServerOptions(
11521150
capabilities = ServerCapabilities(tools = ServerCapabilities.Tools(listChanged = true))
11531151
)
1154-
) { def.complete(Unit) }
1152+
)
11551153

11561154
// Create a transport using standard IO for server communication
11571155
val transport = StdioServerTransport(

0 commit comments

Comments
 (0)