McpServer

Inheritors

AndroidMcpServer
JsMcpServer
JvmMcpServer
NativeMcpServer
WasmJsMcpServer

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
abstract val mode: McpMode
Link copied to clipboard
abstract val port: Int

Server mode only.

Link copied to clipboard
abstract val statusMessage: String

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun processMainThreadQueue()

Dispatches queued tool calls on the model thread. Nothing arrives until this is called, and a caller waiting on a tool result waits exactly as long as the gap between calls.

Link copied to clipboard
abstract fun start()
Link copied to clipboard
abstract fun stop()