SyncServerStrategy

class SyncServerStrategy(server: <Error class: unknown class>) : McpServerStrategy

Strategy implementation for the MCP sync server.

Handles registration and management of tools, resources, and prompts for synchronous execution mode using McpSyncServer.

Constructors

Link copied to clipboard
constructor(server: <Error class: unknown class>)

Properties

Link copied to clipboard
open override val executionMode: McpExecutionMode

The execution mode for this strategy, set to synchronous.

Functions

Link copied to clipboard
open override fun addPrompt(promptSpec: Any): <Error class: unknown class><Void>

Adds a prompt specification to the sync server.

Link copied to clipboard
open override fun addResource(resourceSpec: Any): <Error class: unknown class><Void>

Adds a resource specification to the sync server.

Link copied to clipboard
open override fun addTool(toolSpec: Any): <Error class: unknown class><Void>

Adds a tool specification to the sync server.

Link copied to clipboard
open override fun getToolRegistry(): ToolRegistry

Returns the tool registry for the sync server.

Link copied to clipboard
open override fun removeTool(toolName: String): <Error class: unknown class><Void>

Removes a tool from the sync server by name.