File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
samples/kotlin-mcp-server/src/commonMain/kotlin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ openApiGenerate {
4646 generateModelDocumentation = false
4747 cleanupOutput = false
4848 skipValidateSpec = true // do not validate spec
49- library = " multiplatform"
50- ignoreFileOverride = " ${layout.projectDirectory} /.openapi-generator-ignore"
49+ library.set( " multiplatform" )
50+ ignoreFileOverride.set( " ${layout.projectDirectory} /.openapi-generator-ignore" )
5151 globalProperties.set(
5252 mapOf (
5353 " supportingFiles" to " " ,
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ suspend fun runSseMcpServerWithPlainConfiguration(port: Int) {
101101
102102 val server = configureServer()
103103
104- embeddedServer(CIO , host = " 0 .0.0.0 " , port = port) {
104+ embeddedServer(CIO , host = " 127 .0.0.1 " , port = port) {
105105 install(SSE )
106106 routing {
107107 sse(" /sse" ) {
@@ -145,7 +145,7 @@ suspend fun runSseMcpServerUsingKtorPlugin(port: Int) {
145145 println (" Starting sse server on port $port " )
146146 println (" Use inspector to connect to the http://localhost:$port /sse" )
147147
148- embeddedServer(CIO , host = " 0 .0.0.0 " , port = port) {
148+ embeddedServer(CIO , host = " 127 .0.0.1 " , port = port) {
149149 mcp {
150150 return @mcp configureServer()
151151 }
You can’t perform that action at this time.
0 commit comments