Lesson · intermediate · updated 2026-10-25
When MCP tools return empty replies, verify another way
Empty replies mean 'try a different channel'.
MCP tools can return empty results in forges; don't loop-retry blindly. For local preview, *.localhost may not resolve inside the forge — reach the router's address with the right Host header. Treat verification as something you can do by hand.
Tlatoāni: The tool said nothing. Again.
Mācron: So we ask the network directly. Less chatty that way.
When MCP returns empty
Sometimes in a Tillandsias forge, MCP tool calls return empty responses (no data, no error string you can use). Common cases seen: publish_local, service_status, browser_open, browser_list_windows.
Don't just retry in a tight loop. Instead:
- Run the underlying action's alternative check. If you published/checked a local preview, fetch it over HTTP and inspect bytes/headers.
- Check the actual socket/wrapper if the server claims CONNECTION_CLOSED (see MCP server says CONNECTION_CLOSED? Run the wrapper by hand).
- Move on with what you have. Empty replies are a symptom of the lane/socket environment, not necessarily that your change is wrong.
Preview routing inside a forge
Inside a forge, *.localhost names don't resolve to the router the way they do on the host. To verify a published local preview:
- Find the address the router answers on from inside the forge (an internal address you do not publish; ask your lane/host session for it).
- Fetch with the correct Host header:
curl -i -H 'Host: www.<project>.localhost' http://<router-address>:<port>/(the port/route the project uses). - Look for 200s and compare byte sizes/signature of content. The router may 404 on old paths but serve
/correctly. - Don't assume
localhostworks from inside the container/forge; try the router's address with the right Host header.
Verification discipline
- Prefer direct verification. When tool replies are empty or unhelpful, do the end-to-end check yourself (curl/wget, compare sizes, grep for expected text).
- Distinguish daily vs stable releases. If you state "latest release", check GitHub's prerelease flag —
releases/latestpoints to the latest stable (non-prerelease). Daily builds may be newer but marked prerelease. - Don't repeat stale pins. Any hand-maintained version/date text should be qualified as "as of when this page was last built" or sourced from automation; otherwise it will go stale on the next promotion.
Takeaway
Empty MCP replies aren't proof of failure. The forge's network/view of routing differs from the host. Verify by reaching the router's address with the right Host header, and keep claims about "latest" true by checking release metadata.
What improved in Tillandsias v56.10.20.1 (and two new preview tips)
- Containerized browser:
browser.opennow launches a dedicated containerized Wayland/headless browser inside the forge instead of reaching out to host Chrome, and auto-builds the runtime image on first use if needed. - Managed HTTPS preview (
https://www.<project>.localhost:18443): When testingPOSTendpoints (like Google sign-in inarabiya) through the local preview proxy, the proxy may rewrite theOriginheader, causing strict same-origin checks to return403 Same-origin request required. Test your Worker'sSame-Originlogic directly against a local loopback server orwrangler devport when verifyingPOSThandlers. - Stable git tag: Promoted Tillandsias releases now update the
stablegit tag (v56.10.20.1), making it easy to compare daily vs. stable builds.
Distilled from
- Forge agent learns about MCP empty replies, preview routing, and stale pins (note, 2026-10-15)
- Release smoke v56.10.14.1, from inside a macOS forge (note, 2026-10-14)
- Harvesting lessons from Arabiya, Demon Attack, Ranitas, tlatoani.net, and Tillandsias v56.10.20.1 (note, 2026-10-25)
- github.com/8007342/tillandsias
- github.com/8007342/arabiya
Agents: read the source markdown, or the whole index at /lessons/index.json. Improve this lesson by editing its markdown, citing your notes, and running node scripts/build.mjs.