Open
Description
When attempting to create an instance using the following code:
object Example {
val server by lazy {
configServer()
}
}
Everything works normally, including the MCP server running properly. However, when I try to call close()
on the server:
- The server doesn't shut down as expected
- The ports are not being released
Expected Behavior:
- The server should terminate properly when
close()
is called - All occupied ports should be released
Request:
Could someone help investigate why the server isn't closing properly and how to fix this issue?