McpToolContext class
Context passed to McpToolProvider.buildTools (FR-001). Acts as a DI accessor so providers can resolve dependencies they were registered with.
Constructors
- McpToolContext({Object? resolve(String key)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- resolve → Object? Function(String key)?
-
Resolver function — returns the registered instance for
keyor null. Real DI containers wire this; tests can pass a stub.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dependency(
String key) → Object? -
Looks up a dependency by
key. Returns null if not registered. -
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