Skip to content

Commit 8cab89f

Browse files
zsheadevcrocod
authored andcommitted
kdoc
1 parent 3886187 commit 8cab89f

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
@@ -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
7882
public 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
102110
public fun Application.mcpStatelessStreamableHttp(
103111
enableDnsRebindingProtection: Boolean = false,

0 commit comments

Comments
 (0)