Automattic\WooCommerce\Internal\Abilities

AbilitiesTracking::handle_mcp_adapter_pre_tool_call │ public │ WC 1.0

Handle the mcp_adapter_pre_tool_call filter, to mark the request as an MCP request.

Covers MCP Adapter transports without MCP HTTP headers, such as STDIO.

Метод класса: AbilitiesTracking{}

Хуков нет.

Возвращает

mixed. The unchanged arguments.

Использование

$AbilitiesTracking = new AbilitiesTracking();
$AbilitiesTracking->handle_mcp_adapter_pre_tool_call( $args );
$args(разное) (обязательный)
The tool arguments.

Код AbilitiesTracking::handle_mcp_adapter_pre_tool_call() WC 11.3.0

public function handle_mcp_adapter_pre_tool_call( $args ) {
	$this->is_mcp_request = true;
	return $args;
}