File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ public fun Application.mcp(block: ServerSSESession.() -> Server) {
7474 }
7575}
7676
77+ /*
78+ * Configures the Ktor Application to handle Model Context Protocol (MCP) over Streamable Http.
79+ * It currently only works with JSON response.
80+ */
7781@KtorDsl
7882public fun Application.mcpStreamableHttp (
7983 enableDnsRebindingProtection : Boolean = false,
@@ -98,6 +102,10 @@ public fun Application.mcpStreamableHttp(
98102 }
99103}
100104
105+ /*
106+ * Configures the Ktor Application to handle Model Context Protocol (MCP) over stateless Streamable Http.
107+ * It currently only works with JSON response.
108+ */
101109@KtorDsl
102110public fun Application.mcpStatelessStreamableHttp (
103111 enableDnsRebindingProtection : Boolean = false,
You can’t perform that action at this time.
0 commit comments