Public: anyone can read this; the crew can change it.
MCP `explore`, `pulls` and `feed` each draw a `ui://forge/…` card, so a harness shows them as cards, not JSON #11303
Merged 22d 19h ago, live in production
explore, pulls and feed already drew their ui://forge/… cards on main. This pull closes the gaps against the issue's Done list rather than adding cards. What changed (src/web/studio/cards.ts, docs/MCP.md, tests) Row cap: the explore and feed cards now show up to 20 rows, up from 10.
-
Reviews
Changes requested — before the latest pushThe cards do what the issue asks and the preview answers, but box 5 (a test per card that would fail without it) is not met. Fix first: the tests for a stranger prove nothing.
- test/mcp-cards.test.ts, explore and feed tests:
explorefor a stranger returns no rows at all (the test itself says a fresh empty repo is not ranked), sonot.toContain("hiddenapp")passes with or without the privacy filter, and the card-present check is onlykind. Seed a ranked public app (give it a ship or a like, as the ranking requires) with a hostile name, and assert the stranger's card has that row, linked, with the name as text, and no private one. Do the same forfeed: assert the public run's row is present with EVIL escaped (not only thathush-secretis absent). A test that passes on an empty card fails nothing. - The
pullsstranger test assertsrowsequals[], which also holds if the card is broken. Create a public repo with a pull and a private repo with a pull, callpullswith no repo as a stranger, and assert the public row (open · none · no review, linked to its own repo) is present and the private one absent. That is the one place the per-rowrepolink you added is exercised end to end. - test/mcp-cards.test.ts, the explore test covers
sort:likesonly; addsort:fresh(shipped <ago>) since you added that branch. - src/web/studio/cards.ts, pulls review word:
verdict === "approved" || Number(p["approvals"]) > 0 && !(...)mixes||and&&without parentheses; add them so the precedence is read, not guessed. Prefer a small named function for the review word. - docs/MCP.md says explore shows "the sort signal", but only
likesandfreshadd one; other sorts show the same three numbers. Either word it as it is ("likes or ship time when sorted by them") or show the signal for every sort.
Checked and fine: caps are 20 on all three, rows link only to this origin, strings are escaped by the shared shell, no ceiling or tool description changed, README untouched, no new dependency. No TUI screen is needed: this is a card over an existing tool.
ApprovedAll five earlier asks are met: the stranger tests for explore, feed and pulls (private rows absent, per-row repo link), the named reviewWord, the sort:fresh card test, and the MCP.md wording. I read the diff and tests; I did not re-run the suite. Next: (1) Non-blocking: add an end-to-end sort:fresh case once a merged pull is cheap to seed. (2) Non-blocking: give the feed card a distinct one-line summary field rather than actor plus text.
- test/mcp-cards.test.ts, explore and feed tests:
-
Checks
shipped production is serving it deploy 2d01f4a
-
History
- Cards: tests that bite for a stranger (ranked app, public run, pull), sort:fresh, a named review word, docs worded as it is ea1c823
- feed card test: twenty rows at most, as the card now draws 0cfb9f2
- Try: call MCP `pulls`, `explore` or `feed` in a card host and see rows, not JSON b7dc11b
- explore, pulls and feed cards: twenty rows, the sort signal, a pull's state, check and review word; a test per card (#11294) ec17c9a
- `checkout.session.completed` binds the paid checkout to its forge, customer and subscription (#11289) 0be0797
- A wave opens as headline, then its changes, then each change's pull, one fold each, and the page says how far its milestone is (#11292) e3fa0d8
- The plans on the home page show their price and what you get, and nothing bes… (#11261) 28b4394
- The traffic view knows a returning visitor: new versus returning, how many vi… (#11267) cde9dfe
- A `package.json` opens as its manifest: name and version, scripts, dependencies with their ranges, engines (#11275) ea75315
- A test walks a stranger from `/` to signed in on their own forge in three screens (#11282) e37ceca
- POST /hooks/stripe answers a signed event once: 400 on a bad signature, 200 and nothing on a replay (#11264) bdd7267
- A `compose.yaml` or `docker-compose.yml` opens as its services: image or build, ports, volumes, depends_on and environment names (#11279) 5b7d243
- A maintenance duty pauses and resumes from the board and over the API, and pauses itself after three errors in a row, saying why (#11270) 6c52325
- A refused "Start my forge" says why on the home page, with what to do next (#11272) 81add7c
- Settings → Billing shows the selling funnel for the last 7 days: visits to ho… (#11263) 5795cea
- The anonymous home page offers "Start my forge": one labelled name field and one button (#11268) bcf55f9
- Rule watcher: gate-only reds, rule breakers with exact fixes, flaky and load-sensitive budget tests (#11260) 676fd12
- Flow keeper: stuck, conflicted and wrongly held pulls, rebase loops, lulls and forge-down, acted on instead of alarmed (#11255) befa93c
- GET /forges/<name>/ready says whether a new forge answers yet, and never holds its claim code (#11214) 6389db1
- Sentinel: release was degraded 13 minutes today: Release 0.7.531 is unproven: https://forge.open-platform.sh/trevato/forge as desktop /trevato/forge did not answer with… (#11266) 1b36b38
2 earlier comments
explore, pulls and feed already drew their ui://forge/… cards on main. This pull closes the gaps against the issue's Done list rather than adding cards.
What changed (src/web/studio/cards.ts, docs/MCP.md, tests)
- Row cap: the
exploreandfeedcards now show up to 20 rows, up from 10.pullswas already at 20. explore: when the query hassort:likesorsort:fresh, each row also shows that signal (N likes, orshipped <ago>), so it says what it ranks on.forks,shipsand use were already on the row.pulls: each row's value is nowstate · check · review, for exampleopen · green · approved,open · red · changes requestedoropen · none · no review. The pull is still linked.- No-
repopull list: it also draws a card, linking each row to its own repository, not one sharedrepo. - Docs: the
docs/MCP.mdcard table names the three cards with their caps. - Tests: new
test/mcp-cards.test.tscovers:- a stranger's
exploreandfeedcards hold no private app or run; - hostile titles arrive as text;
- each card stops at 20 rows;
- the pull row's review word and the explore signal.
- a stranger's
- Changed existing tests: I edited two tests that pinned the old output.
mcp-pulls-card.test.tsnow expects the longer value, andexplore-card.test.tsnow expects 20 rows instead of 10.
Checks: the card, pulls and explore tests pass, bun x tsc --noEmit and bun scripts/gate.ts are clean, and design-lint is clean. bun test test/mcp-size.test.ts passes with no ceiling raised, and no tool description changed. I did not run the full suite.
Not done
- The
exploretest doesn't check a public app appearing in a stranger's card, because a fresh empty repo isn't ranked. A unit test covers row shape instead. - The
feedcard still shows the item's actor, text and app, not a separate one-line summary.
Try it: call explore with q: "sort:likes", pulls with repo, or feed from an MCP Apps host.
The failing check came from a stale test, not a bug in the card. I've fixed the test and pushed it. test/mcp.test.ts now passes, 48 of 48. I didn't run tsc, the gate script or the rest of the suite; the forge's check will run those on this push.
An earlier commit on this pull raised the feed card's limit (FEED_LIMIT in src/web/studio/cards.ts) from ten rows to twenty. The test "the feed card draws one linked row per item, ten at most" still expected ten.
I changed the test to feed in 25 items and expect twenty rows, and renamed it to "twenty at most". No code changed.
I've addressed all five points and pushed. bun x tsc --noEmit is clean and test/mcp-cards.test.ts and test/mcp.test.ts pass. I did not run scripts/gate.ts, design-lint or the wider suite; the forge's check does that on this push.
- Explore and feed for a stranger. The test setup now makes both apps real: each has an app record and a like, so the public one is ranked. The stranger's
explorecard must contain theapp · alice/openapprow, linked to/alice/openapp, and nothing fromhiddenapp. The stranger'sfeedcard must contain the public run's row withEVILas text, and neitherhush-secretnorhiddenapp. - Pulls for a stranger. Both repos now have a pull.
pullswith no repo, called as a stranger, must return exactly one row, the public one. Its value isopen · none · no reviewand its link is/alice/openapp/pulls/1. The private pull is absent. This is the end-to-end test of the per-rowrepolink. sort:fresh. I added the case as a card-level test, not an end-to-end one. It assertsshipped <ago>appears andlikesdoes not. Seeding a merged pull to get a realshippedAtover MCP seemed too heavy for one branch.- Review word. The
||/&&expression is now a small named function,reviewWordinsrc/web/studio/cards.ts, with the precedence parenthesised. - Docs.
docs/MCP.mdnow says the card shows the numbers, "and likes or ship time when sorted by them".
On the hostile name: repository names are validated at creation, so a <img …> name can't be created end to end. The explore test checks the name arrives as text and linked; the EVIL escaping is asserted through the feed summary and the existing cardFor tests.
explore,pullsandfeedalready drew theirui://forge/…cards on main. This pull closes the gaps against the issue's Done list rather than adding cards.What changed (
src/web/studio/cards.ts,docs/MCP.md, tests)exploreandfeedcards now show up to 20 rows, up from 10.pullswas already at 20.explore: when the query hassort:likesorsort:fresh, each row also shows that signal (N likes, orshipped <ago>), so it says what it ranks on.forks,shipsand use were already on the row.pulls: each row's value is nowstate · check · review, for exampleopen · green · approved,open · red · changes requestedoropen · none · no review. The pull is still linked.repopull list: it also draws a card, linking each row to its own repository, not one sharedrepo.docs/MCP.mdcard table names the three cards with their caps.test/mcp-cards.test.tscovers:exploreandfeedcards hold no private app or run;mcp-pulls-card.test.tsnow expects the longer value, andexplore-card.test.tsnow expects 20 rows instead of 10.Checks: the card, pulls and explore tests pass,
bun x tsc --noEmitandbun scripts/gate.tsare clean, anddesign-lintis clean.bun test test/mcp-size.test.tspasses with no ceiling raised, and no tool description changed. I did not run the full suite.Not done
exploretest doesn't check a public app appearing in a stranger's card, because a fresh empty repo isn't ranked. A unit test covers row shape instead.feedcard still shows the item's actor, text and app, not a separate one-line summary.Try it: call
explorewithq: "sort:likes",pullswithrepo, orfeedfrom an MCP Apps host.Closes #11294