Automattic\WooCommerce\Internal\MCP

MCPAdapterProvider::initialize_mcp_server │ public │ WC 1.0

Deprecated since 11.3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Formerly created the WooCommerce MCP server.

Method of the class: MCPAdapterProvider{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MCPAdapterProvider = new MCPAdapterProvider();
$MCPAdapterProvider->initialize_mcp_server( $adapter ): void;
$adapter(object) (required)
MCP adapter instance. Ignored.

Changelog

Deprecated since 11.3.0

MCPAdapterProvider::initialize_mcp_server() code WC 11.3.0

public function initialize_mcp_server( $adapter ): void {
	unset( $adapter ); // Kept for backward compatibility.
	McpEndpointRemoval::doing_it_wrong( __METHOD__ );
}