applyConnectionOverride method
Apply a per-call connection override from a raw argument map.
arguments is the raw MCP tool arguments map. The connection key (if
present) is parsed, a ConnectCommand is executed, and the result is
returned. Returns null when no override was requested or the connect
succeeded. Returns a failure CoreResult if the connection override
failed — callers should short-circuit and return an error result in that
case.
Mirrors the legacy applyConnectionOverride helper so that capability handlers can reproduce the full interaction_handler.dart behaviour.
Implementation
@override
Future<CoreResult?> applyConnectionOverride(
final Map<String, Object?>? arguments,
) async {
overrideArguments.add(arguments);
callLog.add('applyConnectionOverride');
return nextOverrideResult;
}