Automattic\WooCommerce\Internal\Abilities
AbilitiesTracking::handle_mcp_adapter_pre_tool_call
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.
Method of the class: AbilitiesTracking{}
No Hooks.
Returns
mixed. The unchanged arguments.
Usage
$AbilitiesTracking = new AbilitiesTracking(); $AbilitiesTracking->handle_mcp_adapter_pre_tool_call( $args );
- $args(mixed) (required)
- The tool arguments.
AbilitiesTracking::handle_mcp_adapter_pre_tool_call() AbilitiesTracking::handle mcp adapter pre tool call code WC 11.3.0
public function handle_mcp_adapter_pre_tool_call( $args ) {
$this->is_mcp_request = true;
return $args;
}