JsMcpServer

class JsMcpServer : McpServer

Properties

Link copied to clipboard
open override val connectionState: McpState
Link copied to clipboard
open override val mode: McpMode
Link copied to clipboard
open override val port: Int

Server mode only.

Link copied to clipboard
open override val statusMessage: String

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override 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
open override fun start()
Link copied to clipboard
open override fun stop()