Awning
Integrates with PayPal REST sandbox for creating catalog products, creating and capturing checkout orders, adding pickup tracking, and issuing refunds.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Awning
A chalkboard café, open to AI agents, paid through PayPal.
Awning is the on-ramp for a shop that has no website and no catalog. It is not another "agent-ready storefront" pitch. The loop that matters: an agent asks for something that is not on the board, the owner adds it in one tap, and that same agent buys it.
Linden, the café in the demo, is sample data. It is not a claim that a real owner was filmed.
Judge tour
Open the app and choose Judge. In order:
Restore the sample board.
Ask for a cake with one hour's notice. A rule blocks it.
Go live.
Ask for an oat-milk flat white and a gluten-free brownie.
Add the brownie from the demand gap.
Place the order. Tea is the alternative for the drink. The brownie is now real.
Capture, add pickup tracking, propose the refund, then approve it on the card. Propose 12 teas to see the same card for an order over the limit.
Run the rogue-agent attack. A discount code and a burst each stop on a named rule.
Compare the later chalkboard (scone price up, soup crossed out) and apply it.
Until sandbox keys are connected, captures are labelled Replay. Those ids are not PayPal payments.
Related MCP server: mcp-coffee
Agent endpoint
/shops/linden/mcp speaks MCP Streamable HTTP (official TypeScript SDK).
Tools: browse_menu, ask, quote, place_order, order_status.
ask and quote return Cart API v1-shaped validation_issues and resolution_options (SUGGEST_ALTERNATIVE, REMOVE_ITEM, WAIT_FOR_RESTOCK, MODIFY_CART). That is alignment with the shape, not a call to PayPal's hosted cart.
There is also an in-app buyer, so the loop works without an MCP client.
PayPal
Sandbox only, and only after a Client ID and Secret are pasted on the shop's Sandbox tab. Keys are kept in browser session storage and in process memory. They are not written to the database or this repo.
Moment | Call |
Go live |
|
Checkout |
|
After approval |
|
Pickup |
|
Refund |
|
Honest limits:
Catalog products have no price field. Prices, stock, and allergens stay in Awning, linked by the PayPal product id.
The demo shop checks out as one sandbox merchant. Production would onboard each shop as merchant of record.
Intent and cart signatures follow the AP2 shape (cap, constraints, merchant-signed cart, buyer approval). This is not a certified AP2 implementation.
Approve the live order as the Personal sandbox buyer, not the business app owner.
Rules
Plain language is compiled into chips. From then on, authorize() enforces them. The model does not.
The sample sentence is: 24 hours' notice for cakes, max 10 per order, no discounts, 8 orders a minute.
Stack
TanStack Start, React, Tailwind, AG Grid community (catalog, demand gaps, agent ledger, blocked attempts), PayPal REST sandbox, MCP.
npm install
npm run devBefore submission
The app runs the full loop without PayPal keys. Captures are labelled Replay. Those ids are not PayPal payments.
When the sandbox Client ID and Secret arrive, open Shop, choose Sandbox, paste them, and connect. Approve any live order as the Personal sandbox buyer, then capture. Keys stay in the browser session and in process memory. They are not stored in the database or this repository.
Do not describe Linden as a filmed owner. A real shop, a signed release, and a Devpost video are still yours to add. Lead with the demand-gap loop and the chalkboard re-sync. Do not claim a first agent-ready storefront.
Engineering hardening
One
PayPal-Request-Idper money-moving call. It issha256(runId + toolName + JSON.stringify(args))on create order, capture, refund, create product, and tracking, so a retry cannot charge twice.@paypal/agent-toolkitis pinned to an exact version (no^).package-lock.jsonis committed.The toolkit runs locally in Node. Awning does not call PayPal's hosted sandbox MCP server.
src/lib/paypal-rest.tsis a direct REST fallback onhttps://api-m.sandbox.paypal.comfor create order, capture, refund, tracking, and vault. If a toolkit call fails, Awning retries once through this client with the same request id. Orders, payments, and vault use@paypal/paypal-server-sdk, the APIMatic-generated client documented by the PayPal Context Plugin. The toolkit has no vault tool, so vault goes straight to this client.Buyer-agent text is untrusted. It is wrapped in
<untrusted_input>tags before it reaches a model or an agent response. It cannot trigger tools. Only zod-validated fields are passed to the rules engine.Before an order is created, Awning checks that the sum of quantity × unit price, rounded to 2 decimals, equals the order total.
Refunds and orders over the limit stop on a one-tap approval card labelled "AI proposes → Rules check → Owner approves → PayPal confirms".
Devpost
Awning hardens the money path before it asks PayPal to move funds: one PayPal-Request-Id from sha256(runId + toolName + JSON.stringify(args)) on create order, capture, refund, create product, and tracking; @paypal/agent-toolkit pinned exactly with package-lock.json committed; the toolkit running locally in Node rather than on PayPal's hosted sandbox MCP server; a direct REST fallback in src/lib/paypal-rest.ts against https://api-m.sandbox.paypal.com for create order, capture, refund, tracking, and vault, generated from the APIMatic PayPal server SDK and retried once with the same request id if the toolkit fails; buyer-agent text wrapped in <untrusted_input> so it cannot trigger tools, with only zod-validated fields reaching the rules engine; an amount check that quantity × unit price, rounded to 2 decimals, equals the order total; and a one-tap owner card, "AI proposes → Rules check → Owner approves → PayPal confirms", for refunds and orders over the limit. The product itself is the on-ramp for a chalkboard café with no website: an agent asks for something that is not on the board, the owner adds it in one tap, and that same agent buys it. Linden is sample data, not a filmed owner. Give the engineering hardening about 10 seconds in the video, after the demand-gap loop and before the close.
License
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Sample shop MCP server: paginated search, idempotent orders, guarded cancellation. Four languages.
Build custom POS apps with your AI agent. Final's MCP server gives developers what they need to ship a custom point of sale: scaffold a checkout flow, adapt vetted screen blueprints for counter POS, self-checkout kiosks, restaurant ordering and payment terminals, ground every call in Final's version-locked POS APIs, validate, boot a live preview and deploy to real hardware with integrated card payments. The same server also manages the store behind it: products, stock, orders, customers and sales reports. Remote Streamable HTTP with OAuth 2.1.
Per-restaurant MCP servers: menu, hours, delivery terms; live example below
Agent-native commerce with trusted catalog, durable carts, and Stripe Checkout via MCP and UCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables any AI agent to discover, query, and order from a restaurant's storefront via MCP tools. It handles menu lookup, modifier validation, and enforces a mandatory confirmation gate before payment, replacing the human-operated phone line.-
- FlicenseNot gradedqualityDmaintenanceEnables coffee shop order management via MCP, including menu lookup, order creation, and status tracking.-
- AlicenseNot gradedqualityDmaintenanceMCP server that mimics a food delivery assistant, enabling natural language ordering, personalized recommendations, order tracking, and review/policy queries via a LangGraph ReAct agent with human-in-the-loop approval.MIT
- AlicenseNot gradedqualityCmaintenanceExposes an owner-reviewed, server-validated merchant catalog as MCP shopping tools that let an agent fetch store details, search products, check availability, build a cart, and start a checkout that hands a capability-protected link to a human for PayPal sandbox approval. Pricing, inventory, discounts and payee remain server-owned, and no capture, refund or publication tools are exposed.MIT