McpToolProvider class abstract
SPI interface implemented by device packages to declare their available MCP tools under a namespace (FR-001, FR-002).
Implementations are discovered via DI/engine registration by AgentRuntimePlugin. Each provider contributes zero or more tools to the assembled McpToolRegistry.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- namespace → String
-
Stable, unique namespace for this provider's tools. Used as the
prefix in the registry's flat
"$namespace.$toolName"keys.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildTools(
McpToolContext ctx) → List< McpTool> - Builds the tools contributed by this provider, given the McpToolContext (DI accessor). May return an empty list.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited