Intent: Find, which landed on the clock in #38, is reachable by an agent too: an assistant asked "what's left on the Elm Street deal?" finds it without listing every deal.
Today src/find.ts is called only by the clock page; list_deals in src/mcp.ts takes no arguments and GET /api/deals ignores the query string.
Done looks like:
Files: src/mcp.ts, src/routes.ts, src/find.ts (export the boundary check if it lives in the page), tests beside them, README.
Risks: keep one validator, not two copies; do not change what the clock page shows or contract.json.
Suggested: mason.
Intent: Find, which landed on the clock in #38, is reachable by an agent too: an assistant asked "what's left on the Elm Street deal?" finds it without listing every deal.
Today
src/find.tsis called only by the clock page;list_dealsinsrc/mcp.tstakes no arguments andGET /api/dealsignores the query string.Done looks like:
Files:
src/mcp.ts,src/routes.ts,src/find.ts(export the boundary check if it lives in the page), tests beside them, README. Risks: keep one validator, not two copies; do not change what the clock page shows orcontract.json. Suggested: mason.