McpServerStrategy

Strategy interface for managing MCP server functionality.

Defines operations for adding and removing tools, resources, and prompts, as well as accessing the tool registry. Implementations provide logic for different execution modes (e.g., sync or async).

Inheritors

Properties

Link copied to clipboard

The execution mode for this strategy (e.g., SYNC or ASYNC).

Functions

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

Adds a prompt specification to the MCP server.

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

Adds a resource specification to the MCP server.

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

Adds a tool specification to the MCP server.

Link copied to clipboard

Returns the tool registry for the MCP server.

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

Removes a tool from the MCP server by name.