Skip to content

Add MPP agent demo with Privy agentic wallets#145

Open
madeleine-c wants to merge 3 commits intomainfrom
mcharity/add-mpp-agent-demo
Open

Add MPP agent demo with Privy agentic wallets#145
madeleine-c wants to merge 3 commits intomainfrom
mcharity/add-mpp-agent-demo

Conversation

@madeleine-c
Copy link
Contributor

Summary

  • Adds a new privy-next-mpp-agent-demo example showcasing the MPP (Machine Payments Protocol) with Privy server-side agentic wallets
  • Agents are created with Privy wallets, funded with PathUSD on Tempo testnet, and execute autonomous 402-based payments for API services
  • Uses mppx SDK for both client (handling 402 challenges) and server (middleware for mock services)

Key files

  • lib/mpp-client.ts — Privy-backed MPP client using Tempo's custom transaction format with signSecp256k1 for raw signing
  • app/api/mock-services/weather/route.ts — MPP-enabled weather API using mppx/nextjs middleware
  • app/api/agent/balance/route.ts — On-chain PathUSD balance querying via Tempo RPC
  • lib/treasury.ts — PathUSD transfer from treasury with gas buffer for Tempo fees

Test plan

  • npm install && npm run build compiles without errors
  • Create agent → fund with PathUSD → execute weather action succeeds
  • On-chain balance updates after transactions
  • Agent with insufficient funds shows appropriate error

🤖 Generated with Claude Code

New example demonstrating the MPP (Machine Payments Protocol) with
Privy server-side agentic wallets on Tempo testnet. Agents can be
created, funded with PathUSD, and execute autonomous 402-based
payments for API services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

GIT_VALID_PII_OVERRIDE

Committed-By-Agent: claude
@vercel
Copy link

vercel bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
privy-react-farcaster Error Error Feb 23, 2026 10:03pm
privy-react-fiat-onramp Error Error Feb 23, 2026 10:03pm
privy-react-funding Error Error Feb 23, 2026 10:03pm
privy-react-permissionless Error Error Feb 23, 2026 10:03pm
privy-react-smart-wallets Error Error Feb 23, 2026 10:03pm
15 Skipped Deployments
Project Deployment Actions Updated (UTC)
privy-next-cross-app-connect Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-cross-app-provider Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-farcaster Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-farcaster-mini-app Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-fiat-onramp Ignored Ignored Feb 23, 2026 10:03pm
privy-next-funding Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-permissionless Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-session-keys Ignored Ignored Feb 23, 2026 10:03pm
privy-next-smart-wallets Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-solana Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-starter Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-next-wagmi Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-react-pwa Ignored Ignored Feb 23, 2026 10:03pm
privy-react-starter Ignored Ignored Preview Feb 23, 2026 10:03pm
privy-react-whitelabel-starter Ignored Ignored Preview Feb 23, 2026 10:03pm

Request Review

@madeleine-c madeleine-c requested a review from tedim52 February 23, 2026 19:32
@socket-security
Copy link

socket-security bot commented Feb 23, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​react@​19.2.141001007995100
Addedmppx@​0.3.68010010096100
Addedtailwindcss@​4.2.11001008498100
Addedeslint@​9.39.38910010097100
Addedviem@​2.46.29910010097100
Added@​tailwindcss/​postcss@​4.2.110010010098100

View full report

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
GIT_VALID_PII_OVERRIDE

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
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.

2 participants