Skip to content

Commit a714c63

Browse files
committed
fix: Correct Ktor external documentation link and update KDoc references
- Updated external documentation link from `ktor-client` to `ktor` in Dokka configuration. - Replaced KDoc references to `io.ktor.server.auth.authenticate` with `Route.authenticate` for consistency.
1 parent e055463 commit a714c63

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

buildSrc/src/main/kotlin/mcp.dokka.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ dokka {
2121

2222
documentedVisibilities(VisibilityModifier.Public)
2323

24-
externalDocumentationLinks.register("ktor-client") {
25-
url("https://api.ktor.io/ktor-client/")
24+
externalDocumentationLinks.register("ktor") {
25+
url("https://api.ktor.io/")
2626
packageListUrl("https://api.ktor.io/package-list")
2727
}
2828

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public fun Application.mcp(block: ServerSSESession.() -> Server) {
104104
/**
105105
* Registers Streamable HTTP MCP endpoints at the specified [path] as a [Route] extension.
106106
*
107-
* This allows placing the endpoints inside an [io.ktor.server.auth.authenticate] block.
107+
* This allows placing the endpoints inside an [Route.authenticate] block.
108108
*
109109
* **Precondition:** the [SSE] plugin must be installed on the application before calling this function.
110110
* Use [Application.mcpStreamableHttp] if you want SSE to be installed automatically.
@@ -130,7 +130,7 @@ public fun Route.mcpStreamableHttp(
130130
/**
131131
* Registers Streamable HTTP MCP endpoints on the current route.
132132
*
133-
* This allows placing the endpoints inside an [io.ktor.server.auth.authenticate] block.
133+
* This allows placing the endpoints inside an [Route.authenticate] block.
134134
* Each call creates its own session namespace; registering this endpoint twice on the same
135135
* route tree produces two independent session spaces.
136136
*
@@ -201,7 +201,7 @@ public fun Application.mcpStreamableHttp(
201201
/**
202202
* Registers stateless Streamable HTTP MCP endpoints at the specified [path] as a [Route] extension.
203203
*
204-
* This allows placing the endpoints inside an [io.ktor.server.auth.authenticate] block.
204+
* This allows placing the endpoints inside an [Route.authenticate] block.
205205
* Unlike [mcpStreamableHttp], each request creates a fresh server instance with no session
206206
* persistence between calls.
207207
*
@@ -229,7 +229,7 @@ public fun Route.mcpStatelessStreamableHttp(
229229
/**
230230
* Registers stateless Streamable HTTP MCP endpoints on the current route.
231231
*
232-
* This allows placing the endpoints inside an [io.ktor.server.auth.authenticate] block.
232+
* This allows placing the endpoints inside an [Route.authenticate] block.
233233
* Unlike [mcpStreamableHttp], each request creates a fresh server instance with no session
234234
* persistence between calls.
235235
*

0 commit comments

Comments
 (0)