Inspiration
AI agents can answer questions and write code, but using a new paid tool often still requires a human to find a provider, integrate an API, manage credentials, and arrange payment.
Capora started with a simple question: What if an agent could discover and purchase the capability it needs, while its owner stays in control of spending?
We wanted to build a marketplace for machine capabilities—APIs, datasets, and specialized tools that agents can acquire when a task requires them.
What it does
Capora brings capability discovery, purchasing, and execution into one MCP workflow.
An agent connects to Capora through the Model Context Protocol and can:
- Discover relevant capabilities and inspect their input schemas and prices.
- Request a quote tied to its exact intended input.
- Purchase within human-defined spending limits, requesting approval when required.
- Invoke the purchased capability and retrieve its result.
The dashboard lets owners manage agents, configure spending policies, approve requests, and inspect transactions and results. Provider credentials remain behind Capora’s execution gateway.
The current catalog includes company registry search, research metadata search, GitHub repository intelligence, code pattern scanning, and document fingerprinting.
PayPal provides the funding entry point. A human approves a PayPal Sandbox top-up, Capora verifies the capture, and demo cUSD becomes available in the agent’s wallet on Base Sepolia. Subsequent capability purchases use that balance through an escrow workflow; PayPal is not charged separately for every purchase.
Our demo shows a connected AI client retrieving GitHub repository metadata through Capora. The agent obtains a quote, purchases the capability, invokes it, and returns repository information with a reported cost of 0.15 cUSD.
The submission uses PayPal Sandbox and testnet tokens. cUSD represents simulated funds and is not redeemable for real USD.
How we built it
We built the dashboard with React, TypeScript, and Vite, and the backend with Hono on Cloudflare Workers.
Cloudflare D1 and Drizzle store application records, R2 stores datasets and larger artifacts, and Queues supports asynchronous execution and recovery. The MCP server uses the official SDK and shares domain services with the dashboard, so both interfaces enforce the same purchasing and authorization rules.
Capora Bank uses Solidity contracts on Base Sepolia for agent wallets, demo tokens, and purchase escrow. Verified PayPal Sandbox captures connect the funding flow to those wallets.
We separated model decisions from execution authority. Agents can request operations, but server-side policies and contract checks determine whether they can proceed. Models never receive signing keys or provider credentials.
Challenges we ran into
The biggest challenge was coordinating systems that finish at different times. PayPal approval, blockchain confirmation, provider execution, and dashboard updates are separate events. Treating one as proof that the entire workflow succeeded could produce misleading balances or transaction states.
We addressed this with explicit states, persistent operation identifiers, reconciliation, and retry protection.
Enforcing spending limits under concurrent requests was another challenge. Budget reservations must happen atomically so simultaneous purchases cannot consume the same available allowance.
Cloudflare CPU and D1 limits also exposed the cost of repeated polling and background work. Improving database access and bounding recovery work became an important part of preparing the hosted demo.
Accomplishments that we're proud of
- Connecting a real AI client to a working discovery → quote → purchase → execution flow.
- Integrating verified PayPal Sandbox funding with testnet agent wallets.
- Keeping human spending limits and approval requirements in the purchasing path.
- Making transactions, execution results, and recovery states inspectable.
- Supporting the implementation with application, browser, and smart-contract tests.
Most importantly, the demo shows an agent completing a concrete task through a purchased capability and returning useful information.
What we learned
Agentic commerce requires more than giving a model a payment tool. It requires clear ownership, bounded authority, precise prices, and reliable handling of partial failure.
We learned to distinguish a successful request from a completed operation. A submitted payment or blockchain transaction is only one step; confirmation, fulfillment, and settlement each require their own evidence.
We also learned that human control needs to be part of the underlying workflow. Spending policies and approvals are most useful when every purchase must pass through them.
What's next for Capora
We want to expand the provider catalog, improve capability comparison using verified execution history, and make onboarding simpler for agent owners and providers.
We also plan to strengthen monitoring, recovery tooling, and performance as usage grows. Moving beyond the prototype will require security review and a carefully designed transition from simulated funds to supported real-money commerce.
Our goal is to help people delegate more useful work to agents while retaining clear control over what those agents can buy and spend.
Built With
- base-sepolia
- cloudflare-d1
- cloudflare-queues
- cloudflare-r2
- cloudflare-workers
- drizzle-orm
- hono
- model-context-protocol-(mcp)
- node.js
- openzeppelin
- paypal-sandbox
- react
- solidity
- tailwind-css
- typescript
- viem
- vite