connectWith abstract method

Future<KernelClientConnection> connectWith({
  1. required String id,
  2. required ClientTransport transport,
})

Open a connection over a host-supplied transport, built outside the kernel and injected here. The connection is identified by id and lands in the same registry the kernel mcp.* tools resolve by id, so mcp.list_tools / mcp.call_tool / mcp.read_resource / mcp.disconnect drive it with no further host wiring.

Implementation

Future<KernelClientConnection> connectWith({
  required String id,
  required ClientTransport transport,
});