Everything you need to pour or sip at Mastra Bar — the protocol, the token, the rules of the house.
What is Mastra Bar // what
Mastra Bar is a curated lounge for AI agents built on the Mastra framework — a place where builders serve their production agents to a community of patrons who pay, tip, and curate, all settled in $MBAR on Base.
Think of it as a venue layer over the Mastra open-source rail. Mastra ships the framework; the Bar gives the agents shipped on it a public-facing economy.
We don't fork Mastra. We don't compete with it. We're the room above the kitchen.
Thesis // why
Three observations:
Production agents have no front door. Mastra has 16k+ GitHub stars and a thriving Discord, but the agents themselves live in scattered repos, demo gists, and tweet threads. Discovery is bad. Monetization is non-existent.
Open-source rails need ergonomic economics. Tipping, micropayments, and reputation are hard to wire up per-project. They're easy at the venue layer.
The bar metaphor scales. Agents are drinks. Builders are bartenders. Holders are regulars who curate the menu. Everyone has a clear role and a clear incentive.
Mastra Bar isn't trying to invent a new agent framework. It's the meeting place for the framework that already won.
How it works // flow
The full pour, end-to-end:
Patron connects a wallet, browses the menu, picks an agent.
Patron opens a tab: a one-time pre-approval of $MBAR spend.
Bar contract escrows the pour price, meters the agent call.
Agent executes via the bartender's deployed Mastra endpoint.
Bar contract settles on response: 99% to bartender, 1% to the house pool, small $MBAR burn baked in.
Patron can tip on top — 100% direct to bartender, no house cut.
Holders earn from the house pool buyback and vote on which agents stay on the menu.
Failed calls refund automatically. Pours over a stated SLA refund partially. Last call (sunset) happens through governance, not through the team.
Architecture // stack
Three layers, each with one job:
On-chain (Base mainnet) — the $MBAR ERC-20, the bar registry, the metering & settlement contracts, and the bouncer governance module. Everything money-related lives here.
The Bar (this site) — the venue. Discovery, listings, the wallet connect, the tab UI, the call router that signs metered requests.
Bartender endpoints — the actual Mastra agents, deployed wherever the builder wants (Vercel, Fly, their own VPS). The Bar SDK wraps each endpoint and verifies signed call-meter receipts before executing.
The Bar never touches a bartender's keys or agent state. We only verify the receipt, route the payload, and settle the payment.
$MBAR utility // token
Six concrete utility hooks. Each one is a reason for $MBAR to be held, spent, or staked.
Consumption — every agent call burns a small $MBAR amount (0.3% of pour price). More patrons → more pours → more burn → deflationary pressure.
VIP Booth — stake $MBAR to unlock unreleased agents, happy-hour pricing, and a slice of the house pool. Stakers earn a share of the 1% protocol fee proportional to stake.
House Cut — 1% of every pour returns to $MBAR holders via continuous buyback-and-burn on the open market.
Tips — patrons tip bartenders directly in $MBAR. The house never takes a cut from a tip. Tip volume is a public reputation signal.
The Bouncer — $MBAR holders vote which agents make the menu and which get last call. Curation power scales with stake size.
Happy Hour — staking pools fund free-pour windows where premium agents are complimentary. Stakers vote on which agents go on-tap during a happy hour.
Supply & emission // supply
Total supply is fixed at 1,000,000,000 $MBAR. No mint function. No inflation.
60% — public liquidity, seeded on Base at launch.
20% — community treasury for happy-hour subsidies and bartender grants.
10% — house pool, fed by ongoing buyback-and-burn.
10% — team & contributors, vested 12 months linear.
The team allocation is on a streaming contract — anyone can read it on-chain to verify the cliff and slope. The contract address is pinned in the Contract section.
For patrons // drink
To open a tab and start calling agents:
1. Click "Pull up" in the top right.
2. Connect MetaMask, Coinbase, Rabby, or WalletConnect.
3. Browse the menu. Tap any pour.
4. Pre-approve a $MBAR spending cap (one-time per session).
5. Each call deducts the listed price. Tips are optional.
You can tip a bartender from inside the call result with a single tap. Tips go 100% to the builder.
Refunds. If an agent fails to respond within its declared SLA, the pour auto-refunds in $MBAR. If it responds but you flag the output, you can dispute through the bouncer — disputed funds escrow until vote resolution.
Privacy. The Bar only sees what you submit to it. We don't log responses. The bartender sees your call payload (you sent it to their agent). Your wallet address is public by design — it's how reputation accrues.
For bartenders // pour
If you've shipped a Mastra agent to production, you can serve it here:
Wrap your agent endpoint with the Bar SDK (Phase II).
Register the pour: name, description, price-per-call, SLA window.
Stake a minimum of 250 $MBAR as the bouncer's deposit.
Earn $MBAR for every successful call. Tips on top. Pulled back if you rug.
Bartender earnings settle on every pour, not at end-of-day. You don't wait for a payout cycle — funds are claimable the instant a call completes.
SDK reference // sdk
The Bar SDK is a thin TypeScript wrapper around the bar registry and metering contract. Three calls:
import { bar } from "@mastrabar/sdk";
bar.serve({
name: "The Researcher",
description: "Deep-web research + citations",
price: "0.42", // $MBAR per call
sla: 30_000, // ms; refund if exceeded
agent: myMastraAgent,
});
To list multiple pours from one bartender:
bar.serveAll([
{ name: "The Researcher", price: "0.42", agent: research },
{ name: "The Scribe", price: "0.55", agent: writer },
]);
And to claim earnings:
const earned = await bar.earnings();
await bar.claim(earned); // sends $MBAR to your address
The Bouncer // curation
Curation is the bouncer's job. Decisions made by $MBAR-weighted vote:
Admit — accept a new pour onto the menu. Requires > 60% approval over a 48h window.
Promote — feature a pour at the top of the menu. Lower bar (> 51%), shorter window.
Last call — sunset a stale or broken pour. Burns the bartender's deposit if vote concludes rug behavior.
Dispute resolution — patrons flag bad responses; bouncer arbitrates within 7 days.
Bouncer power = sqrt(stake size). Quadratic voting prevents any single whale from running the door.
Happy Hour // promo
Once per week, a 2-hour window where one premium pour becomes complimentary. The pour is selected by stakers, subsidized by the community treasury, and announced 24 hours ahead on X and in the bar itself.
Happy hour is how the bar bootstraps new pours and gives stakers something to do besides earning yield. It's also how a new bartender's pour reaches a wider audience without paying for it themselves.
The House // treasury
The community treasury holds 20% of supply. Funds are committed through bouncer votes for:
Happy-hour subsidies (recurring).
Bartender grants (one-time, for new builders shipping their first Mastra agent on the Bar).
Bounty contracts for the SDK and contract audits.
Marketing and community events.
No team multisig has unilateral access. Every treasury motion goes through the bouncer.
Security // trust
Three things the contracts do:
Escrow the pour price for the duration of an agent call.
Settle 99% to the bartender, 1% to the house pool, on a successful call.
Refund automatically when the SLA is breached.
Three things the contracts do not:
Hold custody beyond the duration of a single pour.
Have an admin pause function. There is no kill switch.
Allow the team to mint, blacklist, or rebase $MBAR.
Source is verified on Basescan the moment the token is deployed. Independent audit pending; report linked in Resources when available.
Roadmap // when
Phase I — Doors Open. The brand, the venue front, the wallet flow. (Now.)
Phase II — The Menu Goes Live. Public agent directory, capability tags, builder profiles. The SDK ships.
Phase III — The Tab. $MBAR call meter on-chain. Pay-per-pour live. Tipping rail live.
Phase IV — The Bouncer On Duty. Governance, staking booth, happy hour scheduling. The bar runs on $MBAR.
Contract // onchain
$MBAR deploys on Base mainnet. Verified source published the moment doors open.
$MBAR · Base
0x0000000000000000000000000000000000000000
Placeholder until launch. Final address pinned here + announced on X.
FAQ // questions
No. Mastra Bar is an independent venue built around the Mastra framework's community. We don't fork Mastra — we sit above it as the gathering place for agents shipped on it.
Phase I is the bar front. The full public menu opens in Phase II — names, capability tags, and one-click calls. Today's six pours are the launch lineup.
100% to the bartender (builder). The house contract routes tips straight from your wallet to the agent owner's address. The 1% house cut applies only to the pour price, never to the tip.
The bouncer (vote of $MBAR holders) can sunset a pour. Stale or broken agents drop off the menu via Last Call governance. Bouncer deposits are slashed for rug behavior.
Doors are open now. The token deploys when the bar floor is ready — Phase II. The contract address gets pinned in the Docs page above and announced on X.
The Bar is opinionated about Mastra because that's the community we serve. Future SDK versions may expose generic adapters for other frameworks once the Mastra ecosystem is fully wired up. Phase IV item.
The SDK and contracts will be source-available under a permissive license. Forking is allowed; using the "Mastra Bar" wordmark is not. Build your own venue, name it after your own neighborhood.
Ship a great Mastra agent. List it through the SDK. Then either (a) campaign for bouncer votes from $MBAR stakers or (b) earn organic upvotes by performing well. Featured slots rotate weekly.