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 @@ -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
8387public 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
107115public fun Application.mcpStatelessStreamableHttp (
108116 enableDnsRebindingProtection : Boolean = false,
You can’t perform that action at this time.
0 commit comments