AsyncServerStrategy

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

Implements the async server strategy for MCP servers.

Delegates tool, resource, and prompt management to the underlying McpAsyncServer instance. Provides an async execution mode and access to the tool registry.

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 ASYNC.

Functions

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

Adds a prompt to the async server.

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

Adds a resource to the async server.

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

Adds a tool to the async server.

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

Returns the tool registry for the async server.

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

Removes a tool from the async server by name.