1+ <!DOCTYPE html>
2+ < html class ="no-js ">
3+ < head >
4+ < meta name ="viewport " content ="width=device-width, initial-scale=1 " charset ="UTF-8 ">
5+ < title > mcp</ title >
6+ < link href ="../../images/logo-icon.svg " rel ="icon " type ="image/svg ">
7+ < script > var pathToRoot = "../../" ; </ script >
8+ < script > document . documentElement . classList . replace ( "no-js" , "js" ) ; </ script >
9+ < script > const storage = localStorage . getItem ( "dokka-dark-mode" )
10+ if ( storage == null ) {
11+ const osDarkSchemePreferred = window . matchMedia && window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches
12+ if ( osDarkSchemePreferred === true ) {
13+ document . getElementsByTagName ( "html" ) [ 0 ] . classList . add ( "theme-dark" )
14+ }
15+ } else {
16+ const savedDarkMode = JSON . parse ( storage )
17+ if ( savedDarkMode === true ) {
18+ document . getElementsByTagName ( "html" ) [ 0 ] . classList . add ( "theme-dark" )
19+ }
20+ }
21+ </ script >
22+ < script type ="text/javascript " src ="https://unpkg.com/kotlin-playground@1/dist/playground.min.js " async ="async "> </ script >
23+ < script type ="text/javascript " src ="../../scripts/sourceset_dependencies.js " async ="async "> </ script >
24+ < link href ="../../styles/style.css " rel ="Stylesheet ">
25+ < link href ="../../styles/main.css " rel ="Stylesheet ">
26+ < link href ="../../styles/prism.css " rel ="Stylesheet ">
27+ < link href ="../../styles/logo-styles.css " rel ="Stylesheet ">
28+ < link href ="../../styles/font-jb-sans-auto.css " rel ="Stylesheet ">
29+ < link href ="../../ui-kit/ui-kit.min.css " rel ="Stylesheet ">
30+ < script type ="text/javascript " src ="../../scripts/clipboard.js " async ="async "> </ script >
31+ < script type ="text/javascript " src ="../../scripts/navigation-loader.js " async ="async "> </ script >
32+ < script type ="text/javascript " src ="../../scripts/platform-content-handler.js " async ="async "> </ script >
33+ < script type ="text/javascript " src ="../../scripts/main.js " defer ="defer "> </ script >
34+ < script type ="text/javascript " src ="../../scripts/prism.js " async ="async "> </ script >
35+ < script type ="text/javascript " src ="../../ui-kit/ui-kit.min.js " async ="async "> </ script >
36+ < script type ="text/javascript " src ="../../scripts/symbol-parameters-wrapper_deferred.js " defer ="defer "> </ script >
37+ </ head >
38+ < body >
39+ < div class ="root ">
40+ < nav class ="navigation " id ="navigation-wrapper ">
41+ < div class ="navigation--inner ">
42+ < div class ="navigation-title ">
43+ < button class ="menu-toggle " id ="menu-toggle " type ="button "> toggle menu</ button >
44+ < div class ="library-name ">
45+ < a class ="library-name--link " href ="../../index.html ">
46+ MCP Kotlin SDK
47+ </ a >
48+ </ div >
49+ < div class ="library-version ">
50+ 0.1.0 </ div >
51+ </ div >
52+ < div class ="filter-section " id ="filter-section ">
53+ < button class ="platform-tag platform-selector jvm-like " data-active ="" data-filter =":/main "> jvm</ button >
54+ </ div >
55+ </ div >
56+ < div class ="navigation-controls ">
57+ < button class ="navigation-controls--btn navigation-controls--theme " id ="theme-toggle-button " type ="button "> switch theme</ button >
58+ < div class ="navigation-controls--btn navigation-controls--search " id ="searchBar " role ="button "> search in API</ div >
59+ </ div >
60+ </ nav >
61+ < div id ="container ">
62+ < div class ="sidebar " id ="leftColumn ">
63+ < div class ="sidebar--inner " id ="sideMenu "> </ div >
64+ </ div >
65+ < div id ="main ">
66+ < div class ="main-content " data-page-type ="member " id ="content " pageIds ="MCP Kotlin SDK::io.modelcontextprotocol.kotlin.sdk.server//mcp/io.ktor.server.routing.Routing#kotlin.String#kotlin.Function0[io.modelcontextprotocol.kotlin.sdk.server.Server]/PointingToDeclaration//-251573632 ">
67+ < div class ="breadcrumbs "> < a href ="../../index.html "> MCP Kotlin SDK</ a > < span class ="delimiter "> /</ span > < a href ="index.html "> io.modelcontextprotocol.kotlin.sdk.server</ a > < span class ="delimiter "> /</ span > < span class ="current "> mcp</ span > </ div >
68+ < div class ="cover ">
69+ < h1 class ="cover "> < span > < span > mcp</ span > </ span > </ h1 >
70+ </ div >
71+ < div class ="platform-hinted " data-platform-hinted ="data-platform-hinted "> < div class ="content sourceset-dependent-content " data-active ="" data-togglable =":/main "> < div class ="symbol monospace "> < span class ="token keyword "> fun </ span > < span data-unresolved-link ="io.ktor.server.routing/Routing///PointingToDeclaration/ "> Routing</ span > < span class ="token punctuation "> .</ span > < a href ="mcp.html "> < span class ="token function "> mcp</ span > </ a > < span class ="token punctuation "> (</ span > < span class ="parameters "> < span class ="parameter "> path< span class ="token operator "> : </ span > < a href ="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html "> String</ a > < span class ="token punctuation "> , </ span > </ span > < span class ="parameter "> block< span class ="token operator "> : </ span > < span class ="token punctuation "> (</ span > < span class ="token punctuation "> )</ span > < span class ="token operator "> -> </ span > < a href ="-server/index.html "> Server</ a > </ span > </ span > < span class ="token punctuation "> )</ span > < span class ="clearfix "> < span class ="floating-right "> (< a href ="https://github.com/modelcontextprotocol/kotlin-sdk/io/modelcontextprotocol/kotlin/sdk/server/McpKtorServerPlugin.kt#L17 "> source</ a > )</ span > </ span > </ div > < br > < hr > < div class ="symbol monospace "> < span class ="token keyword "> fun </ span > < span data-unresolved-link ="io.ktor.server.routing/Routing///PointingToDeclaration/ "> Routing</ span > < span class ="token punctuation "> .</ span > < a href ="mcp.html "> < span class ="token function "> mcp</ span > </ a > < span class ="token punctuation "> (</ span > < span class ="parameters "> < span class ="parameter "> block< span class ="token operator "> : </ span > < span class ="token punctuation "> (</ span > < span class ="token punctuation "> )</ span > < span class ="token operator "> -> </ span > < a href ="-server/index.html "> Server</ a > </ span > </ span > < span class ="token punctuation "> )</ span > < span class ="clearfix "> < span class ="floating-right "> (< a href ="https://github.com/modelcontextprotocol/kotlin-sdk/io/modelcontextprotocol/kotlin/sdk/server/McpKtorServerPlugin.kt#L26 "> source</ a > )</ span > </ span > </ div > < p class ="paragraph "> Configures the Ktor Application to handle Model Context Protocol (MCP) over Server-Sent Events (SSE).</ p > </ div > </ div >
72+ </ div >
73+ < div class ="footer ">
74+ < a href ="#content " id ="go-to-top-link " class ="footer--button footer--button_go-to-top "> </ a >
75+ < span > © 2024 Copyright</ span >
76+ < span class ="pull-right ">
77+ < span > Generated by </ span >
78+ < a class ="footer--link footer--link_external " href ="https://github.com/Kotlin/dokka ">
79+ < span > dokka</ span >
80+ </ a >
81+ </ span >
82+ </ div >
83+ </ div >
84+ </ div >
85+ </ div >
86+ </ body >
87+ </ html >
0 commit comments