Economic Health Dashboard #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-02T23:09:36Z - https://github.com/coilysiren/eco-mcp-app/issues/11
Task 2 — Economic Health Dashboard
Prereq: read
todo/README.mdfirst for cross-cutting conventions (SSM region, template paths, iframe CSP, Day-3 data thinness).Goal
Build an MCP tool
get_eco_economythat renders an iframe card showing a live economic vitals board for the Eco server.Data sources
All from
/datasets/get?dataset={Name}&dayStart=0&dayEnd={days_elapsed}onhttp://eco.coilysiren.me:3001. Admin endpoint — requiresX-API-Keyheader from SSM/eco-mcp-app/api-admin-token(regionus-east-1).Verified-present stat names (all 14 confirmed in
/datasets/flatliston live server):OfferedLoanOrBond,AcceptedLoanOrBond,RepaidLoanOrBond,DefaultedOnLoanOrBondPayWages,PayRentOrMoveInFeePostedContract,CompletedContract,FailedContractPropertyTransfer,ReputationTransfer,TransferMoneyPayTax,ReceiveGovernmentFundsAlso pull from
GET /info(public):EconomyDesc(string like"524 trades, 0 contracts")TotalCulture(number; this is a /info field, NOT a /datasets stat —/datasets/get?dataset=TotalCulturereturns 500)Compute
days_elapsedfrom/info'sTimeSinceStart(seconds) → days.Card layout (iframe at
/mcp/ui/economy)"Economy is {healthy|stressed|booming} — {N}% default rate, {M}% contracts completed"Classification thresholds (seed values, tune as you watch real data):
booming: trades/day up 20% week-over-week AND default rate < 5%stressed: default rate > 15% OR contract failure rate > 30%healthy: otherwiseImplementation notes
src/eco_mcp_app/templates/(note:templates/, notui/).src/eco_mcp_app/server.py.Out of scope
Acceptance
inv harness.inv smokepasses with the new tool registered.respxmocking the admin endpoints for at least the KPI computation.