Skip to content

Commit 835e45e

Browse files
committed
kdoc
1 parent b01e472 commit 835e45e

File tree

1 file changed

+8
-0
lines changed
  • kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server

1 file changed

+8
-0
lines changed

kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server/KtorServer.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public fun Application.mcp(block: ServerSSESession.() -> Server) {
7979
}
8080
}
8181

82+
/*
83+
* Configures the Ktor Application to handle Model Context Protocol (MCP) over Streamable Http.
84+
* It currently only works with JSON response.
85+
*/
8286
@KtorDsl
8387
public fun Application.mcpStreamableHttp(
8488
enableDnsRebindingProtection: Boolean = false,
@@ -103,6 +107,10 @@ public fun Application.mcpStreamableHttp(
103107
}
104108
}
105109

110+
/*
111+
* Configures the Ktor Application to handle Model Context Protocol (MCP) over stateless Streamable Http.
112+
* It currently only works with JSON response.
113+
*/
106114
@KtorDsl
107115
public fun Application.mcpStatelessStreamableHttp(
108116
enableDnsRebindingProtection: Boolean = false,

0 commit comments

Comments
 (0)