AsyncToolRegistry

class AsyncToolRegistry(server: <Error class: unknown class>) : ToolRegistry

Registry for managing tools in an asynchronous MCP server.

Provides access to tool names, counts, and existence checks by delegating to the underlying McpAsyncServer instance.

Parameters

server

the asynchronous MCP server instance

Constructors

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

Functions

Link copied to clipboard
open override fun getToolCount(): Int

Returns the total number of tools registered in the async server.

Link copied to clipboard
open override fun getToolNames(): List<String>

Returns the list of tool names available in the async server.

Link copied to clipboard
open override fun hasToolNamed(name: String): Boolean

Checks if a tool with the specified name exists in the async server.