We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df80a0e commit a5dc69fCopy full SHA for a5dc69f
quickstart/server.mdx
@@ -1140,8 +1140,6 @@ Add a server initialization function:
1140
```kotlin
1141
// Main function to run the MCP server
1142
fun `run mcp server`() {
1143
- val def = CompletableDeferred<Unit>()
1144
-
1145
// Create the MCP Server instance with a basic implementation
1146
val server = Server(
1147
Implementation(
@@ -1151,7 +1149,7 @@ fun `run mcp server`() {
1151
1149
ServerOptions(
1152
1150
capabilities = ServerCapabilities(tools = ServerCapabilities.Tools(listChanged = true))
1153
)
1154
- ) { def.complete(Unit) }
+ )
1155
1156
// Create a transport using standard IO for server communication
1157
val transport = StdioServerTransport(
0 commit comments