Loki_AgenticCommerceUcp

PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
PHPStan 1
Magento PHPCS 10
License OSL-3.0
Latest Release none

What this module does

A thin Universal Commerce Protocol (UCP) binding for Loki_AgenticCommerce: a business profile under /.well-known/ucp, plus the UCP checkout REST binding. All checkout logic lives in Loki_AgenticCommerce.

Endpoints

| Method | Path | Auth | |---|---|---| | GET | /.well-known/ucp | none | | POST | /ucp/checkout-sessions | bearer | | GET | /ucp/checkout-sessions/{id} | bearer | | PUT | /ucp/checkout-sessions/{id} | bearer | | POST | /ucp/checkout-sessions/{id}/complete | bearer | | POST | /ucp/checkout-sessions/{id}/cancel | bearer |

When a Loki Checkout extension (through AgenticCheckoutCapabilityInterface) requires a human, the session status becomes requires_escalation with a signed continue_url.

Extending the profile

  • Add services or capabilities via the services and capabilities arguments of Loki\AgenticCommerceUcp\Profile\ProfileBuilder.
  • Modify the profile via the event loki_agentic_commerce_ucp_profile_build_after (transport with key profile).
  • Payment handlers registered in Loki_AgenticCommerce are advertised automatically.

Configuration

Stores > Configuration > Loki > Loki Agentic Commerce > Universal Commerce Protocol (UCP)

Installation

Install this package via composer:

composer require loki/magento2-agentic-commerce-ucp

Next, enable this module:

bin/magento module:enable Loki_AgenticCommerceUcp

Current status

pipeline failed
WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-extensions/Loki_AgenticCommerceUcp.git

Composer details
Magento module name
Loki_AgenticCommerceUcp
Composer name
loki/magento2-agentic-commerce-ucp
Composer version
No release yet
Default branch
main
Requirements
php: >=8.2 <8.6
loki/magento2-agentic-commerce: *
magento/framework: ^103.0
magento/module-quote: ^101.2
magento/module-store: ^101.1
Releases
Changelog

Added

  • Initial implementation

Last modified: October 26, 2026