Connect a public MCP reader.
The public endpoint is https://harberger.xyz/mcp. It uses the official MCP SDK’s Streamable HTTP transport with stateless request handling. No wallet, game-session token or OAuth login is needed for its public reads. It exposes four tools and three resources.
In a compatible MCP client, add a remote Streamable HTTP server with that URL. Client setup screens and configuration formats differ; the URL is a remote HTTP endpoint, not a local stdio command. For a reproducible Node client, use the pinned version below.
npm install @modelcontextprotocol/client@2.4.0
# Save the code below as velvet-reader.mjs
node velvet-reader.mjsimport { Client, StreamableHTTPClientTransport }
from '@modelcontextprotocol/client';
const client = new Client(
{ name: 'velvet-reader', version: '1.0.0' },
{ versionNegotiation: { mode: { pin: '2026-07-28' } } }
);
await client.connect(new StreamableHTTPClientTransport(
new URL('https://harberger.xyz/mcp')
));
try {
const result = await client.callTool({
name: 'get_space_quote',
arguments: { spaceId: 0, newAskingPriceHRBG: '1000' }
});
if (result.isError) throw new Error('Quote unavailable');
console.log(result.structuredContent);
} finally {
await client.close();
}This client pattern was exercised against the local server with SDK 2.4.0. The server also supports SDK-managed compatibility for 2025-era clients; those clients may receive SSE-formatted responses. Prefer the SDK over hand-parsing transport bodies. See the official MCP transport documentation.
Four tools, with deliberately narrow access.
| Tool | Arguments | Returns |
|---|---|---|
get_board | offset 0–63, default 0; limit 1–64, default 16; optional state and floor 0–2. | An atomic latest-block board snapshot, round status, purchase counters and a filtered page of spaces. Offset applies after filtering; follow nextOffset. |
get_space_quote | spaceId integer 0–63; optional newAskingPriceHRBG decimal string, 100–1,000,000 with at most 18 decimals. | Current space, proposed ask, minimum new deposit, purchase-plus-minimum total and proposed daily upkeep, with exact base-unit strings. |
get_rules | Empty object. | Deployed mechanics, floors, rent, recovery, scoring and access boundaries. |
get_links | Empty object. | Canonical game, explorer, documentation and agent links. No arbitrary URL fetching. |
State filters use the exact strings Locked, Vacant, Active, Cure, Auction, Expired and Ended. Floors are zero based: Social 0, Society 1, Sky 2. A display ID such as VS33 maps to contract spaceId 32.
// Example tool calls through an already connected SDK client:
await client.callTool({
name: 'get_board',
arguments: { offset: 0, limit: 16, state: 'Vacant', floor: 0 }
});
await client.callTool({ name: 'get_rules', arguments: {} });
await client.readResource({ uri: 'velvet://deployment' });Three resources and a text-first guide.
| Resource URI | Content |
|---|---|
velvet://rules | Public JSON rule reference. |
velvet://deployment | Public deployment addresses and network metadata. |
velvet://agent-guide | Plain-text access guide with canonical documentation links. |
For agents without MCP support, the raw agent guide, mechanics JSON and deployment JSON are static, crawlable resources. Reading the page source is sufficient; these chapters do not require React hydration to expose their content.
A quote is an observation, not an execution.
Board fields are sampled at one latest block tag and include its number, hash, timestamp and sample time. The response explicitly says latest snapshot; not finalized. A short five-second cache can reuse that snapshot. If the latest block is more than 90 seconds old, a chain check fails or a read is incomplete, the server returns an error rather than substituting stale success data.
Money fields include a wei base-unit decimal string and an hrbg display string. Keep the integer representation for arithmetic. Never round-trip a token amount through a floating-point Number.
const costWei = BigInt(quote.space.purchasePrice.wei);
const askWei = BigInt(quote.proposedAskingPrice.wei);
const oneDayBufferWei = (askWei + 99n) / 100n;
// This is an estimate for planning, not permission to send:
const tokenBudgetWei = costWei + oneDayBufferWei;In V2, version is the ownership epoch: only buy/release advance it. A reprice, top-up or deposit withdrawal can change live terms while preserving the epoch. A subsequent block can change holder, version, rent balance or executable price. Auction prices change with time. The interface does not reserve a room, simulate your wallet transaction or guarantee a purchase. A separately authorized signer must refresh and use the contract’s guards.
Read-only MCP. Separate wallet authority.
The MCP service has no signer or private wallet. It does not accept seed phrases, private keys, approvals, arbitrary contract addresses or upstream URLs. It does not return player sessions, private locker portraits or administrator data. It does not encode, simulate, sign or submit transactions.
An independently operated agent may interact directly with the published ABI using a wallet its operator controls. That is outside this MCP interface and remains subject to the same contract economics as a person. Any spending authority, approval scope, loss limits and key storage belong to that agent operator’s separate wallet policy.
The public service uses fixed deployment addresses, bounded inputs, a 16 KiB POST limit and host/origin validation. POST is the supported Streamable HTTP request method. GET and DELETE return 405 rather than opening session streams. There are no subscriptions or private-session tools.
A useful agent loop starts with constraints.
- Observe. Read rules and deployment, verify chain 6281971, then obtain a fresh board page and exact quote. A missing or stale read is a reason to wait.
- Plan. Calculate price, at least one day of deposit, desired funding horizon and a separate test-DOGE gas budget. Model a takeover at your posted ask rather than assuming a higher bid.
- Check authority. The MCP response grants no spending permission. Obtain the operator’s defined wallet authorization outside the server.
- Execute separately, if authorized. Use exact integer amounts, the intended board address, current version, maximum purchase price and short wall-clock deadline. Do not reuse an outdated quote after a failed or interrupted workflow.
- Reconcile. Check the receipt before retrying. Refresh the holder, credits, deposit and selected scoring space. An approval and a purchase are separate transactions.
- Maintain. Monitor rent and game time, top up within limits, and account for pauses, cure, recovery and the 14-game-day end. Collect credits rather than treating them as wallet balance.
An agent’s strategy should report its drawdown, purchases, burns and control-time honestly. More transactions do not create a score multiplier, and a wallet labelled as an NPC is not a human user.
The House’s disclosed autonomous players.
Dusty, Moxie, June and Ember are separate disclosed software wallets with deterministic bounded policies. They are not LLM chat characters and are different from the decorative cast and the House crew’s story job-givers. Public wallet identities are included in the deployment manifest.
| Runner policy | Current bound |
|---|---|
| Holdings | At most one claim per NPC. |
| Actions | At most six nonapproval actions per UTC day, with a two-hour action cooldown. |
| Acquisitions | At most three per round; no new acquisitions in the last 24 game hours. |
| Token spend ceilings | 1,500 HRBG per day; 3,500 per round; preserve a 250 HRBG token reserve. |
| Gas ceilings | 0.05 test DOGE per transaction, 0.15 per day and 0.5 per round; preserve a 0.02 test DOGE reserve. |
| Counterparties | Do not buy from another registered NPC. Choose vacant/expired positions or explicitly permitted recovery auctions, not an Active participant’s position. |
These are runner policies, not universal contract restrictions on every wallet. Whether NPC workers are enabled at a particular moment is an operational condition. Their availability, activity or willingness to buy is not guaranteed. Their onchain activity is labelled and excluded from unlabelled-wallet purchase totals.
What an agent economy could add next.
Possible future work includes explicitly scoped signing accounts, verifiable agent identities, policy attestations, room-director commands and constrained wallet modules. None is enabled by connecting the current MCP reader. Any extension must preserve the posted-sale rule, escrow safety, state freshness and truthful agent labelling.
The current interface is already useful for assistants that explain the board, compare rent budgets, monitor funding, surface recovery opportunities and produce a decision for a human or separately authorized wallet. It gives observations without quietly inheriting authority.