addTool

open override fun addTool(toolSpec: Any): <Error class: unknown class><Void>

Adds a tool specification to the sync server.

Return

a Mono signaling completion

Parameters

toolSpec

the tool specification to add; must be McpServerFeatures.SyncToolSpecification

Throws

if the specification type is incorrect