http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-ai-mcp-sdk
/
org.http4k.ai.mcp.server.stdio
/
StdIoMcpSessions
Std
Io
Mcp
Sessions
class
StdIoMcpSessions
(
writer
:
Writer
)
:
Sessions
<
Unit
>
(
source
)
Members
Constructors
Std
Io
Mcp
Sessions
Link copied to clipboard
constructor
(
writer
:
Writer
)
Functions
assign
Link copied to clipboard
open
override
fun
assign
(
context
:
ClientRequestContext
,
transport
:
Unit
,
connectRequest
:
Request
)
end
Link copied to clipboard
open
override
fun
end
(
context
:
ClientRequestContext
)
on
Close
Link copied to clipboard
open
override
fun
onClose
(
context
:
ClientRequestContext
,
fn
:
(
)
->
Unit
)
retrieve
Session
Link copied to clipboard
open
override
fun
retrieveSession
(
connectRequest
:
Request
)
:
McpSessionState.Valid.Existing
send
Link copied to clipboard
open
override
fun
send
(
context
:
ClientRequestContext
,
message
:
McpJsonRpcMessage
)
transport
For
Link copied to clipboard
open
override
fun
transportFor
(
context
:
ClientRequestContext
)