clientTools function
The mcp_client capability handlers keyed by full name (mcp.connect,
…), as InProcessToolHandler — the shape a host registers straight
into its in-process dispatcher, exactly as it does for standardTools.
Implementation
Map<String, InProcessToolHandler> clientTools(KernelClientHost host) {
return <String, InProcessToolHandler>{
for (final tool in _buildClientTools(host))
'$mcpCapabilityId.${tool.verb}': tool.handler,
};
}