Skip to content

Enhance OCP SDK with AP2 and MPP Protocols#11

Merged
dcplatforms merged 1 commit intomainfrom
feat/ap2-mpp-modernization-3979924792522456695
Apr 1, 2026
Merged

Enhance OCP SDK with AP2 and MPP Protocols#11
dcplatforms merged 1 commit intomainfrom
feat/ap2-mpp-modernization-3979924792522456695

Conversation

@dcplatforms
Copy link
Copy Markdown
Owner

This comprehensive update transforms the Open Commerce Protocol (OCP) into a fully modern SDK for agentic and machine-to-machine payments.

Key features include:

  • Agent Payments Protocol (AP2): A cryptographically secure framework using signed Intent and Cart Mandates to delegate authority to AI agents while maintaining strict budget and policy controls.
  • Machine Payment Protocol (MPP): Native support for autonomous HTTP 402 'Payment Required' flows, enabling machines to settle tool-call and data-packet payments without human intervention.
  • Zero Trust Security: The Secure Enclave (Vault layer) now acts as the final validator, ensuring every signed transaction matches a pre-authorized mandate's budget, expiration, and merchant whitelist.
  • x402 Extension: Support for 24/7 low-latency stablecoin (USDC/PYUSD) settlements on Web3 rails.
  • Developer Experience: A new ocp CLI tool to streamline agent identity creation and mandate issuance, along with modernized documentation aligned with a professional IDE aesthetic.

PR created automatically by Jules for task 3979924792522456695 started by @dcplatforms

- Implement Mandate Engine (AP2) with Intent and Cart Mandates
- Add Verifiable Credentials (VCs) for Agent Identity
- Implement Zero Trust validation in Tokenization Service (Secure Enclave)
- Add MPP 402-Handler middleware for autonomous machine payments
- Enhance Web3Service with x402 extension for USDC/PYUSD stablecoin settlements
- Develop ocp-cli for developer lifecycle management
- Modernize documentation with AP2 and MPP content
- Add jsonwebtoken and commander dependencies
- Map ocp binary in package.json

Co-authored-by: dcplatforms <10982057+dcplatforms@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@dcplatforms dcplatforms merged commit a7fa441 into main Apr 1, 2026
2 checks passed
@dcplatforms dcplatforms deleted the feat/ap2-mpp-modernization-3979924792522456695 branch April 1, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant