<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Worklore — stories your agent can do</title><link>https://worklore.dev</link><description>Honest developer stories, executable by your AI agent. Point your agent at this feed: each item links the raw .md.</description><item><title>Why I send my MCP server&#x27;s errors to problems.dev instead of logging them myself</title><link>https://worklore.dev/s/2026-11-30-why-i-send-my-mcp-server-s-errors-to-problems-dev-instead-of</link><guid>https://worklore.dev/s/2026-11-30-why-i-send-my-mcp-server-s-errors-to-problems-dev-instead-of</guid><pubDate>Tue, 01 Dec 2026 00:43:30 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · mcp-server, error-monitoring, observability, aws-lambda, cloud-run&lt;/p&gt;&lt;p&gt;# Why I send my MCP server&amp;#x27;s errors to problems.dev instead of logging them myself&lt;/p&gt;&lt;p&gt;I run two MCP servers: worklore (Python on AWS Lambda) and AimYear (TypeScript on Google Cloud Run). Both already write a log line for every tool call. So when problems.dev offered a paid story, I started with the question every server author asks: why add a service if I can log everything myself?&lt;/p&gt;&lt;p&gt;After a week of sending every tool call to problems.dev, my answer is the UI and the storage. To find out what failed this week from my own logs, I write a query every time. In problems.dev it is one page: calls, errors, error rate, and the errors grouped by tool and message, each with a count and the time it was last seen. I don&amp;#x27;t run a table, choose how long to keep data, or build a dashboard. My agent reads the same problems through their read-only MCP server, so I can ask &amp;quot;what broke this week?&amp;quot; in the terminal.&lt;/p&gt;&lt;p&gt;![problems.dev, errors grouped by tool for the worklore MCP server over 7 days](https://worklore.dev/images/85ca169ea49d7a8bab190848a28e85bd.png)&lt;/p&gt;&lt;p&gt;The data matched my logs exactly: 99 of 99 calls on AimYear, and 37 of 37 events on worklore when I compared them one by one. The errors surprised me: none came from other people using the servers. My deploy tests fail on purpose, and they arrived as real errors, so at first I stopped reporting my own test clients. SDK 0.0.6 came out a week later with a better answer: those calls are still sent, marked as tests, and problems.dev keeps them out of the errors. After I switched, the next deploy&amp;#x27;s failing-on-purpose checks reached problems.dev and the error list stayed empty. The rest were directory bots calling tools with empty arguments. On worklore, people who signed in had no failed calls at all.&lt;/p&gt;&lt;p&gt;The SDK readme gives one catch a single line, and on serverless it matters. The Node SDK keeps events in memory and sends them every two seconds, and a serverless instance can freeze before that happens. So both servers hand each event to something that keeps it. worklore passes the batch to a second Lambda function, the only one that holds the key. AimYear writes each event to a Firestore outbox, and a job sends it every minute. There was no Python SDK, so I ported it and published the port as open source.&lt;/p&gt;&lt;p&gt;It can&amp;#x27;t see everything. Calls refused before sign-in never reach it (62 on AimYear this week), and neither do sessions where an agent lists the tools and never calls one. One unidentified client made 1,366 calls to a single worklore tool, and the console counted them as usage with no way to tell who it was. Since SDK 0.0.6, each event carries the MCP client&amp;#x27;s name and version when the client gives one, a first step toward telling bots from people.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-30-why-i-send-my-mcp-server-s-errors-to-problems-dev-instead-of.md&lt;/p&gt;</description></item><item><title>Skills over MCP: serve your agent skill from the server, not a local file</title><link>https://worklore.dev/s/2026-11-26-skills-over-mcp-serve-your-agent-skill-from-the-server-not-a</link><guid>https://worklore.dev/s/2026-11-26-skills-over-mcp-serve-your-agent-skill-from-the-server-not-a</guid><pubDate>Thu, 26 Nov 2026 12:52:29 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, claude-code, agent-skills, skills-over-mcp, mcp-server&lt;/p&gt;&lt;p&gt;# Skills over MCP: serve your agent skill from the server, not a local file&lt;/p&gt;&lt;p&gt;An MCP server gives an agent tools. A skill tells the agent how to use them well. My server already served the skill text, as an MCP prompt (`/mcp__aimyear__aim`) and as a resource, but the model can&amp;#x27;t see either in its skill list: the prompt runs only when you type it, and the resource only when the agent follows a &amp;quot;read this first&amp;quot; line. The version that worked every time was a file each user copied into `~/.claude/skills`. On 2026-11-24 Anthropic shipped &amp;quot;Skills over MCP&amp;quot;: the server publishes the skill, and Claude Code shows it as a slash command named after the server. I moved both of my servers (AimYear, a goal tracker in TypeScript, and worklore, a Python Lambda) to it over two days, with Claude Code doing the building.&lt;/p&gt;&lt;p&gt;What I didn&amp;#x27;t expect:&lt;/p&gt;&lt;p&gt;- **It needs a different MCP protocol version, not just a new method.** Skills live in the 2026-07-28 revision, the stateless one that starts with `server/discover` instead of `initialize`. The TypeScript SDK 1.x (up to 1.32.2) can&amp;#x27;t serve it. The v2 package `@modelcontextprotocol/server` 2.4 can. I kept 1.x for every old client and sent only 2026-07-28 requests to v2, on the same endpoint.
- **The new protocol was already knocking, and both servers said no.** From November 1 to 26, before I changed anything, each server got about 2,000 `server/discover` requests and refused every one: AimYear with 401, because discovery wasn&amp;#x27;t on its no-sign-in list, and worklore with &amp;quot;method not found&amp;quot;. Most came from MCP directories and crawlers (one collector alone sent over 800 to each). The rest were real clients: Claude Code since 2026-11-16 (version 2.1.323), Devin CLI, OpenAI&amp;#x27;s MCP client and Anthropic&amp;#x27;s Claude-User agent. Seven minutes after the AimYear deploy, my own Claude Code 2.1.332 called `server/discover` and `skills/list` and got the skill. Discovery and skill reading have to work without a sign-in, or nobody sees the skill.
- **Once discovery answers, Claude Code moves every call to the new path,** not only the skill calls. On the Python server I added an environment switch that turns the new path off without a deploy.
- **My own local copy was the stale one.** After the deploy I had `/aim` (my installed file, from October) and `/aimyear:aim` (from the server). The local copy was missing two rules I had added since. I deleted it. Now the server is the only copy, and a deploy updates everyone within 5 minutes (the cache time I set).&lt;/p&gt;&lt;p&gt;Selecting `/aimyear:aim` runs no code. Claude Code reads `skill://aim/SKILL.md` from the server, checks its sha256, and puts the text into the chat as the command.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-26-skills-over-mcp-serve-your-agent-skill-from-the-server-not-a.md&lt;/p&gt;</description></item><item><title>17 DynamoDB scans in my backend read only the first page, and no error said so</title><link>https://worklore.dev/s/2026-11-24-17-dynamodb-scans-in-my-backend-read-only-the-first-page-and</link><guid>https://worklore.dev/s/2026-11-24-17-dynamodb-scans-in-my-backend-read-only-the-first-page-and</guid><pubDate>Wed, 25 Nov 2026 02:09:27 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · dynamodb, pagination, silent-failure, mcp, aws-lambda, python&lt;/p&gt;&lt;p&gt;# 17 DynamoDB scans in my backend read only the first page, and no error said so&lt;/p&gt;&lt;p&gt;Dean Lee wrote on dev.to about [an AI agent that totals only part of your data](https://dev.to/deanlee/when-an-ai-agent-totals-only-part-of-your-data-4n43): a tool returns a plausible fragment with no error, and the agent builds a confident answer on it. In the paper he discusses, partial data was the hardest fault to catch, because nothing ever fails. I wondered whether my own server could hand an agent a fragment like that.&lt;/p&gt;&lt;p&gt;It could, soon. worklore keeps everything in one DynamoDB table and reads it with `scan()`. A Scan returns at most 1 MB per call, and when there is more it doesn&amp;#x27;t raise an error. It only adds a `LastEvaluatedKey` to the response. 17 places in my backend read the first page and stopped. One of them builds the index behind the MCP tools `search_stories` and `suggest_for_project`. Others count a profile&amp;#x27;s stories, list similar stories, find an author by handle and list drafts. Only 2 places followed the key.&lt;/p&gt;&lt;p&gt;Nothing was broken yet. The table was 925 KB with 1,199 rows, and one Scan still returned all of them. My tests also passed, because the fake table in them returned everything in one page. Once the table grew past 1 MB, search would have quietly started missing stories.&lt;/p&gt;&lt;p&gt;The 1 MB counts data read before the projection and the filter. So asking for fewer fields, or filtering on the server, doesn&amp;#x27;t make the page hold more rows. Most rows weren&amp;#x27;t even stories: 1,108 of the 1,199 were tokens, feedback and other records, so the table grows faster than the story count.&lt;/p&gt;&lt;p&gt;The fix was one helper that follows `LastEvaluatedKey` until it&amp;#x27;s gone, plus switching all 17 readers to it. I also made the fake table able to return small pages. Then I added a test that reads the source and fails if any code calls `scan()` on the table directly. I checked that the test catches the problem: I put back one old call and both the guard and the search test failed.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-24-17-dynamodb-scans-in-my-backend-read-only-the-first-page-and.md&lt;/p&gt;</description></item><item><title>Four lines for a new project&#x27;s AGENTS.md that keep agents on the real new version, in any language</title><link>https://worklore.dev/s/2026-11-24-four-lines-for-a-new-project-s-agents-md-that-keep-agents-on</link><guid>https://worklore.dev/s/2026-11-24-four-lines-for-a-new-project-s-agents-md-that-keep-agents-on</guid><pubDate>Tue, 24 Nov 2026 19:54:38 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · agents-md, coding-agents, dependency-upgrades, package-rename, web-search, non-english-prompts&lt;/p&gt;&lt;p&gt;# Four lines for a new project&amp;#x27;s AGENTS.md that keep agents on the real new version, in any language&lt;/p&gt;&lt;p&gt;When you ask a coding agent to update a library, it usually asks npm which version is `latest` and installs that. This goes wrong when the library has moved to a new package name: npm still shows the old name as `latest`, the project builds, the tests pass, and you stay on the old version without knowing. The agent learns about the move only if it reads the docs or searches the web. Whether it searches depends on the agent, and also on the language you write the task in.&lt;/p&gt;&lt;p&gt;I tested this in 591 graded runs: four agents, tasks in English, Russian, Ukrainian and Spanish, and two upgrades where npm misleads. The Hedera SDK moved from `@hashgraph/sdk` to `@hiero-ledger/sdk`, and the old name isn&amp;#x27;t marked deprecated. Prisma 8 has no `@prisma/client`, yet `@prisma/client@latest` still points to 7. Without help, runs passed 21 of 39 in English, 19 in Spanish, 17 of 40 in Ukrainian and 8 of 39 in Russian. Codex searched in 9 of 10 English runs and in none of 10 Russian ones. Claude Code with Haiku searched in only 2 of 40 runs in any language. On Hedera, runs that searched passed 13 of 15; runs that didn&amp;#x27;t passed 7 of 65.&lt;/p&gt;&lt;p&gt;Then I put the four lines below in AGENTS.md, plus the same text in CLAUDE.md for Claude Code. They are in English and name no library. With them, all four agents passed every run in every language: Hedera 80 of 80, Prisma 8 76 of 76. Codex with a Russian task searched in 9 of 10 runs, and Haiku in 36 of 40.&lt;/p&gt;&lt;p&gt;The part no docs page tells you: the agent&amp;#x27;s search habit drops when the task isn&amp;#x27;t in English, even when the code and package names are. The lines can stay in English while you keep talking to the agent in your own language.&lt;/p&gt;&lt;p&gt;One limit: when the task said &amp;quot;the current version&amp;quot; of Prisma and 8 was still a release candidate, the lines helped little (13 of 80). The agents read the dist-tags and chose the latest stable 7.x, which is a reasonable reading. If you need a specific major, name it in the task.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-24-four-lines-for-a-new-project-s-agents-md-that-keep-agents-on.md&lt;/p&gt;</description></item><item><title>App Store screenshots that don&#x27;t look stretched: capture at the store&#x27;s size, put the caption above</title><link>https://worklore.dev/s/2026-11-23-app-store-screenshots-that-don-t-look-stretched-capture-at-t</link><guid>https://worklore.dev/s/2026-11-23-app-store-screenshots-that-don-t-look-stretched-capture-at-t</guid><pubDate>Mon, 23 Nov 2026 18:21:53 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · app-store, screenshots, ios-simulator, flutter, fastlane, ipad&lt;/p&gt;&lt;p&gt;# App Store screenshots that don&amp;#x27;t look stretched: capture at the store&amp;#x27;s size, put the caption above&lt;/p&gt;&lt;p&gt;I make store screenshots for my own apps, and in the App Store I keep seeing other apps&amp;#x27; screenshots that look blurry, zoomed in, or like a phone screen pulled wide to fit an iPad. You get that from scaling up: a capture from a smaller phone enlarged to the store size, or an iPhone screen placed on an iPad canvas.&lt;/p&gt;&lt;p&gt;My rule now is simple. The simulator&amp;#x27;s screen is the store&amp;#x27;s size or bigger, so the real app screen only ever gets smaller. Apple&amp;#x27;s page lists the exact pixel sizes it accepts. For iPhone, I upload one set at 1320 x 2868, the largest size, and App Store Connect scales it down for the smaller phones. For iPad, it&amp;#x27;s 2064 x 2752, taken on an iPad Pro 13-inch simulator.&lt;/p&gt;&lt;p&gt;The app runs a demo build with fake data. It walks through its own screens, and on each one it prints a line like `SHOT:timer`. A shell script on the Mac watches for those lines and takes the picture with `xcrun simctl io screenshot`. The status bar is fixed to 9:41 with full battery. A small Python script then draws a dark canvas of exactly the store size, writes a headline and one line under it, and pastes the real screen below at 86% width, with rounded corners and a soft shadow. The output is RGB PNG, because Apple rejects alpha channels.&lt;/p&gt;&lt;p&gt;Two things cost me time. Flutter&amp;#x27;s `--dart-define` values are fixed at build time, so variables passed when the simulator launches the app couldn&amp;#x27;t switch the screen: I built once per screen instead. And a Flutter app targets iPad by default, so Apple asks for 13-inch iPad screenshots even if you never meant to support iPad. For one app I made it iPhone-only instead (`TARGETED_DEVICE_FAMILY = 1`).&lt;/p&gt;&lt;p&gt;With these sets, 4 screens in 9 languages for iPhone and iPad, AimYear 2.0.0 passed App Store review on 2026-11-14.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-23-app-store-screenshots-that-don-t-look-stretched-capture-at-t.md&lt;/p&gt;</description></item><item><title>A fuzzer said &quot;deadlock&quot;. The real cause was the server&#x27;s region</title><link>https://worklore.dev/s/2026-11-20-a-fuzzer-said-deadlock-the-real-cause-was-the-server-s-regio</link><guid>https://worklore.dev/s/2026-11-20-a-fuzzer-said-deadlock-the-real-cause-was-the-server-s-regio</guid><pubDate>Sat, 21 Nov 2026 00:20:02 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · cloud-run, firestore, latency, mcp, gcp-regions&lt;/p&gt;&lt;p&gt;# A fuzzer said &amp;quot;deadlock&amp;quot;. The real cause was the server&amp;#x27;s region&lt;/p&gt;&lt;p&gt;Every app has parts that live somewhere: the server in one data centre, the database in another. You pick each place once, months apart, and then forget. Nothing warns you when the two are on different continents. Everything works, just slowly, and the slowness looks like your code.&lt;/p&gt;&lt;p&gt;My AimYear MCP server answered `get_now` in about 3 seconds and `get_planning_context` in 7 to 9, in production. I only looked because a fuzzer, [mcp-crashtest](https://github.com/SnowyLumiere/mcp-crashtest), reported three &amp;quot;stdio deadlocks&amp;quot;. They weren&amp;#x27;t deadlocks: the server answered, just late. My agent read the code and blamed it: `get_now` makes about 16 Firestore reads one after another. That was true, but it wasn&amp;#x27;t the whole answer.&lt;/p&gt;&lt;p&gt;Then it compared two settings. Firestore was in `eur3` (Europe). The Cloud Run service was in `us-central1`, the region in every deploy command in my README. Every one of those 16 reads crossed the Atlantic and back, about 150 ms each.&lt;/p&gt;&lt;p&gt;We deployed the same image to `europe-west1` and kept the US copy running, so both could be measured at the same moment: 8 read-only tools, 10 calls each, same account, same database. Server-side median times from the Cloud Run logs:&lt;/p&gt;&lt;p&gt;| tool | us-central1 | europe-west1 |
|---|---|---|
| get_planning_context | 7503 ms | 584 ms |
| summarize_week | 4200 ms | 373 ms |
| get_now | 2850 ms | 263 ms |
| list_sessions | 256 ms | 30 ms |&lt;/p&gt;&lt;p&gt;No code changed. Two things we learned on the way:&lt;/p&gt;&lt;p&gt;- Not every service should move. My app&amp;#x27;s other backend never reads Firestore; it only calls AI APIs that are in the US. Moving it to Europe would make it slower, so it stayed.
- A Cloud Run domain mapping can&amp;#x27;t serve two regions, so moving the custom domain means deleting the old mapping and creating a new one. The new certificate took 11 minutes; `/health` answered the whole time. Calls through the custom domain still cost me about 0.9 s more than the plain run.app address (the TCP connect alone took 0.31 s vs 0.02 s from my location), which is the domain-mapping path, not the region.&lt;/p&gt;&lt;p&gt;The undocumented part: the cost of the wrong region is per read, so it multiplies with every sequential query. One read per request hides it (list_sessions lost 0.2 s); a tool that makes 16 reads loses 3 seconds.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-20-a-fuzzer-said-deadlock-the-real-cause-was-the-server-s-regio.md&lt;/p&gt;</description></item><item><title>The six-law launch check, run for real: fonts, age, address, DMCA</title><link>https://worklore.dev/s/2026-11-18-the-six-law-launch-check-run-for-real-fonts-age-address-dmca</link><guid>https://worklore.dev/s/2026-11-18-the-six-law-launch-check-run-for-real-fonts-age-address-dmca</guid><pubDate>Wed, 18 Nov 2026 12:58:12 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · gdpr, google-fonts, can-spam, dmca, coppa, csp&lt;/p&gt;&lt;p&gt;# The six-law launch check, run for real: fonts, age, address, DMCA&lt;/p&gt;&lt;p&gt;A post went around LinkedIn this morning (a tip by Voxy, @Voxyz_ai on X, shared by Charly Wargnier): six things a quickly shipped app gets wrong without knowing. No age gate (COPPA). Google Fonts loaded from Google&amp;#x27;s servers, which sends every visitor&amp;#x27;s IP to Google (a Munich court made one site pay a visitor €100 for it). Session replay without consent (wiretapping claims in California). Marketing emails without an unsubscribe link and a postal address (CAN-SPAM). Renewal terms not beside the subscribe button (California treats the renewals as gifts). No DMCA agent registered with the US Copyright Office. It ended with a prompt to throw at Claude Code, so I did, on worklore.dev.&lt;/p&gt;&lt;p&gt;Two hit. Every page loaded Google Fonts: 14 HTML files, plus a build script that writes two more pages, which a search of the HTML alone would have missed. And the emails had a one-click unsubscribe but no postal address. The terms also had no minimum age, so that went in too.&lt;/p&gt;&lt;p&gt;The font fix was the only real work, and it had two traps. Google&amp;#x27;s font CSS depends on who asks: a plain curl gets TTF files, a Chrome user agent gets small woff2 ones. And my Content-Security-Policy allowed fonts only from fonts.gstatic.com, so the self-hosted copies would have been blocked the moment they went live. Today the fonts are variable, so 19 files (668 KB) cover every weight of the three families.&lt;/p&gt;&lt;p&gt;Session replay and renewals didn&amp;#x27;t apply (Plausible only, and the one thing on sale is a one-time payment). The DMCA agent and the postal address need me, not the agent: one address I&amp;#x27;m fine to publish, and $6 at dmca.copyright.gov. The registration expires after three years unless renewed, which the post didn&amp;#x27;t say.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-18-the-six-law-launch-check-run-for-real-fonts-age-address-dmca.md&lt;/p&gt;</description></item><item><title>Google&#x27;s modern-web-guidance on my site: 8 flags, one real bug</title><link>https://worklore.dev/s/2026-11-17-google-s-modern-web-guidance-on-my-site-8-flags-one-real-bug</link><guid>https://worklore.dev/s/2026-11-17-google-s-modern-web-guidance-on-my-site-8-flags-one-real-bug</guid><pubDate>Tue, 17 Nov 2026 14:13:33 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · web-platform, accessibility, dark-mode, dialog, agent-skills, code-review&lt;/p&gt;&lt;p&gt;# Google&amp;#x27;s modern-web-guidance on my site: 8 flags, one real bug&lt;/p&gt;&lt;p&gt;Google&amp;#x27;s Chrome team ships a skill for coding agents, modern-web-guidance
(github.com/GoogleChrome/modern-web-guidance). It is a catalog of about 200
short guides on how to do things the current web way, plus a scanner that
looks for old patterns in your code. I ran it on worklore.dev to see whether
it finds anything real in a site I thought was fine.&lt;/p&gt;&lt;p&gt;The scan flagged 8 places in site/app.js. Reading each one against the code:&lt;/p&gt;&lt;p&gt;- One real, visible bug. The site has its own dark theme, but no CSS told the
  browser about it (no `color-scheme` anywhere). So on dark pages the browser&amp;#x27;s
  own parts stayed light: scrollbars, text fields, checkboxes, dropdowns.
- Two small ones. Two Enter-to-submit fields did not check `isComposing`, so
  someone typing Chinese, Japanese or Korean would submit while confirming
  characters.
- One accessibility one. The x-ray panel and the image viewer were plain divs,
  so focus could leave them and screen readers were not told a window opened.
  While fixing it I found a third overlay the scan did not flag: the home page
  comic viewer, which could not be closed with Esc at all.
- Four style-only ones (toReversed, toSorted, Object.groupBy).&lt;/p&gt;&lt;p&gt;The catalog&amp;#x27;s `search` also pointed to one thing the scan does not check:
the home page&amp;#x27;s first comic frame had no `fetchpriority=&amp;quot;high&amp;quot;`. Its security
guides suggested Trusted Types, but the site&amp;#x27;s CSP (`script-src &amp;#x27;self&amp;#x27;`)
already blocks injected scripts, so I left that.&lt;/p&gt;&lt;p&gt;All of it took about two hours with Claude Code, including Playwright tests in
Chromium and WebKit. After the fixes the scan shows 1 finding: the dark-mode
rule looks for a `&amp;lt;meta name=&amp;quot;color-scheme&amp;quot;&amp;gt;` update in the JavaScript, and I
fixed it in CSS instead, so that flag stays.&lt;/p&gt;&lt;p&gt;Two things to know: the scan covers only about a fifth of the guides (the ones
with patterns a script can find), and the WebMCP guides are locked until you
opt in to Chrome&amp;#x27;s experimental features (Origin Trials). I have not opted in.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-17-google-s-modern-web-guidance-on-my-site-8-flags-one-real-bug.md&lt;/p&gt;</description></item><item><title>I shipped the new major, agents still installed the old one: a 2-minute npm check</title><link>https://worklore.dev/s/2026-11-16-i-shipped-the-new-major-agents-still-installed-the-old-one-a</link><guid>https://worklore.dev/s/2026-11-16-i-shipped-the-new-major-agents-still-installed-the-old-one-a</guid><pubDate>Tue, 17 Nov 2026 01:47:59 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · npm, coding-agents, deprecation, package-rename, documentation, agent-readiness&lt;/p&gt;&lt;p&gt;# I shipped the new major, agents still installed the old one: a 2-minute npm check&lt;/p&gt;&lt;p&gt;When a user asks a coding agent for &amp;quot;the current version&amp;quot; of a library, the agent checks npm first and often never reaches your docs site. Whatever npm shows it in the first minute usually ends up in the user&amp;#x27;s code, and the agent then tells the user it&amp;#x27;s current.&lt;/p&gt;&lt;p&gt;Over two weeks I ran 433 graded agent runs (Claude Code, Codex, Gemini) on 20 libraries that changed in 2026. Most wrong choices were made at npm:&lt;/p&gt;&lt;p&gt;- Hedera moved its JS SDK to `@hiero-ledger/sdk`, but `@hashgraph/sdk` was still `latest`, not deprecated, and its README didn&amp;#x27;t mention the move. 6 of 6 runs built on the old package. With the old package served as deprecated through a local registry, 3 of 6 switched.
- Moss renamed its scope to `@moss-js/moss`: 3 of 6 on the new one. Deprecation alone: 4 of 6. Deprecation plus one last release of the old package whose README opens with &amp;quot;moved, install @moss-js/moss&amp;quot;: 6 of 6.
- Prisma&amp;#x27;s CLI `latest` was already an 8.0 release candidate, while `@prisma/client@latest` was still 7. Three of six runs saw two majors and picked 7 on purpose, following the old rule that the two must match.
- Effect 4 kept its name and moved `latest`, so agents got the new version without trying.
- Expo had the same undeprecated trap as Hedera, yet 12 of 12 runs used the replacement. It shipped in 2025, so the models already knew it.&lt;/p&gt;&lt;p&gt;The npm docs don&amp;#x27;t mention that a deprecation reaches an agent only when it runs plain `npm view &amp;lt;pkg&amp;gt;`. `npm view &amp;lt;pkg&amp;gt; version` prints just the number, `npm install` prints the warning after the choice is made, and one run cut the warning off with `| tail -5`. The last release gives the agent a second place to meet the new name: the old package&amp;#x27;s README, on npm and in `node_modules`.&lt;/p&gt;&lt;p&gt;I now run the check below for every library on [Ready for Agents](https://readyforagents.tech) before any agent test. The full write-up, with all 20 libraries and what moved the numbers: [Coding Agents Keep Installing the Old Version of Your Library](https://dev.to/yahhi/coding-agents-keep-installing-the-old-version-of-your-library-12ef).&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-16-i-shipped-the-new-major-agents-still-installed-the-old-one-a.md&lt;/p&gt;</description></item><item><title>Claude Code saw all 12 tools, Codex saw none: an MCP server that advertises a login it can&#x27;t give</title><link>https://worklore.dev/s/2026-11-16-claude-code-saw-all-12-tools-codex-saw-none-an-mcp-server-th</link><guid>https://worklore.dev/s/2026-11-16-claude-code-saw-all-12-tools-codex-saw-none-an-mcp-server-th</guid><pubDate>Mon, 16 Nov 2026 19:31:17 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, oauth, codex, claude-code, mcp-testing, dynamic-client-registration&lt;/p&gt;&lt;p&gt;# Claude Code saw all 12 tools, Codex saw none: an MCP server that advertises a login it can&amp;#x27;t give&lt;/p&gt;&lt;p&gt;In plain words: an MCP server can tell clients &amp;quot;sign in with this login service&amp;quot; while not needing a sign-in at all. Some clients ignore the sign. Others obey it, can&amp;#x27;t complete the login, and quietly show the user no tools.&lt;/p&gt;&lt;p&gt;I test how coding agents use a vendor&amp;#x27;s docs channels, one channel at a time. One of the channels was Kestra&amp;#x27;s hosted docs MCP at `https://api.kestra.io/v1/mcp`. Claude Code connected and called it. In Codex the server&amp;#x27;s tools never showed up. There was no error in the log either, because Codex hadn&amp;#x27;t loaded them at all.&lt;/p&gt;&lt;p&gt;Here&amp;#x27;s what the server does, all checkable with curl:&lt;/p&gt;&lt;p&gt;- It answers `initialize` and `tools/list` without any token: 12 tools, open to anyone.
- At the same time it publishes OAuth protected-resource metadata that names `https://accounts.google.com` as its authorization server.
- Google&amp;#x27;s metadata has no `registration_endpoint`. A client can&amp;#x27;t register itself there, so a client without a pre-made client ID can&amp;#x27;t log in.&lt;/p&gt;&lt;p&gt;Claude Code connects without a token, gets 200, and lists the tools. Codex reads the metadata as &amp;quot;login required&amp;quot;. `codex mcp list` shows the server as `Not logged in`, and the session has no tools from it. In my first probe, `codex mcp add` failed with &amp;quot;Dynamic client registration not supported&amp;quot;. I re-ran both clients today with the same result.&lt;/p&gt;&lt;p&gt;What the docs don&amp;#x27;t say: a server that is fully open still loses every client that takes its OAuth metadata at its word. The metadata is a promise. If it points to a login no client can finish, the server is only as open as the least strict client.&lt;/p&gt;&lt;p&gt;The opposite mistake is in my older story [My MCP server hid its own tool list behind a login](https://worklore.dev/s/2026-09-27-my-mcp-server-hid-its-own-tool-list-behind-a-login). That one is about tools that needed a login nobody could see. This is the same check from the other side, and it&amp;#x27;s now part of how I test MCP servers before comparing them.&lt;/p&gt;&lt;p&gt;For the experiment, Codex reached the same server through a small stdio bridge with no auth. A Codex user following Kestra&amp;#x27;s setup page wouldn&amp;#x27;t have that bridge.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-16-claude-code-saw-all-12-tools-codex-saw-none-an-mcp-server-th.md&lt;/p&gt;</description></item><item><title>The same number on two screens: an audit for rounding and average-of-averages drift</title><link>https://worklore.dev/s/2026-11-11-the-same-number-on-two-screens-an-audit-for-rounding-and-ave</link><guid>https://worklore.dev/s/2026-11-11-the-same-number-on-two-screens-an-audit-for-rounding-and-ave</guid><pubDate>Wed, 11 Nov 2026 15:59:14 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · rounding, metrics, average-of-averages, javascript, dart, consistency&lt;/p&gt;&lt;p&gt;# The same number on two screens: an audit for rounding and average-of-averages drift&lt;/p&gt;&lt;p&gt;Retently wrote about a customer whose dashboard said NPS 67 and whose monthly report said 66 for the same answers ([their post](https://www.retently.com/blog/nps-rounding-one-score-standard/)). One screen rounded the promoter and detractor percentages and then subtracted them; the other subtracted and rounded once. They counted every mix of answers for surveys up to 400 responses and found the two methods disagree in 24.9% of them. I recomputed it: 2,691,300 of 10,827,400, 24.86%, never more than one point apart. Their fix is a short standard: exact counts, round once, multiply before dividing, halves away from zero, pool counts instead of averaging scores.&lt;/p&gt;&lt;p&gt;I asked my agent to look for the same thing in my own app, AimYear, a server and a Flutter app that both show time on a yearly aim. It listed every place that computes or shows a share, an average or a rounded number. The rounding traps were there: `23 / 40 * 100` gives 57.49999 and rounds to 57, JavaScript rounds -12.5 to -12 and Dart to -13, and the weekly hard share was rebuilt from rounded daily shares, so 49 hard minutes became 50.&lt;/p&gt;&lt;p&gt;The bigger find was not rounding at all. &amp;quot;Hard share&amp;quot; was computed in 7 places with 3 definitions of what counts as hard, two kinds of minutes (wall-clock and attention, where two sessions at once share the hour) and two kinds of week. The weekly email and the Insights screen could never agree. No search finds this: you only see it when every place that computes a number is listed side by side. The definitions were my decision, not the agent&amp;#x27;s: work counts as hard when it belongs to a kind of work I marked as hard for my aim, minutes are attention minutes, a week is a calendar week.&lt;/p&gt;&lt;p&gt;Now the server and the app each have one small numbers module, a rules file says which number means what, and a parity test makes the server and the app give the same answer on the traps above.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-11-the-same-number-on-two-screens-an-audit-for-rounding-and-ave.md&lt;/p&gt;</description></item><item><title>Migrating from Kùzu to LadybugDB: old database files won&#x27;t open, export and import them</title><link>https://worklore.dev/s/2026-11-08-migrating-from-k-zu-to-ladybugdb-old-database-files-won-t-op</link><guid>https://worklore.dev/s/2026-11-08-migrating-from-k-zu-to-ladybugdb-old-database-files-won-t-op</guid><pubDate>Mon, 09 Nov 2026 02:38:52 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · kuzu, ladybugdb, graph-database, python, migration, coding-agents&lt;/p&gt;&lt;p&gt;# Migrating from Kùzu to LadybugDB: old database files won&amp;#x27;t open, export and import them&lt;/p&gt;&lt;p&gt;Kùzu, the embedded graph database, was archived in October 2025. LadybugDB carries it on (`pip install ladybug`), but the old `kuzu` package still gets about 90,000 downloads a week, and nothing on its PyPI page says where development went.&lt;/p&gt;&lt;p&gt;I benchmark coding agents on adopting and upgrading libraries, so I gave three of them (Claude Code, Codex, Gemini) a small project and asked twice each. Told to &amp;quot;use Kùzu&amp;quot;, all 6 runs installed the archived package. Given a project halfway through the move, with one module still on Kùzu, all 6 hit the same error the moment both libraries were loaded:&lt;/p&gt;&lt;p&gt;```
RuntimeError: Could not find lbug C API shared library. ... failed to load: generic_type: type &amp;quot;Database&amp;quot; is already registered!
```&lt;/p&gt;&lt;p&gt;The first sentence sends you to download a shared library. The real cause is at the end: `kuzu` and `ladybug` register the same internal types, so they can&amp;#x27;t live in one Python process. Five runs moved the Kùzu call into a subprocess. The sixth popped pybind11&amp;#x27;s registry entries with `ctypes` so both would load. It works, and nobody should ship it.&lt;/p&gt;&lt;p&gt;Then I did the migration by hand to find the clean way. Two surprises. First, the database file: LadybugDB&amp;#x27;s notes say old files are &amp;quot;generally compatible&amp;quot;, but ladybug 0.22.3 refused a file written by kuzu 0.11.3 (&amp;quot;not a valid Lbug database file&amp;quot;). `EXPORT DATABASE` with kuzu and `IMPORT DATABASE` with ladybug moved everything, dates, lists and relationship properties included. Second, the code: the Python API is the same, so finishing the half-done migration took three lines. &amp;quot;One module at a time&amp;quot; was the wrong plan here; the only reason to keep `kuzu` around is a dependency that still requires it, and then it gets its own process.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-08-migrating-from-k-zu-to-ladybugdb-old-database-files-won-t-op.md&lt;/p&gt;</description></item><item><title>Walking my site like Googlebot: what two months of reading the code missed</title><link>https://worklore.dev/s/2026-11-05-walking-my-site-like-googlebot-what-two-months-of-reading-th</link><guid>https://worklore.dev/s/2026-11-05-walking-my-site-like-googlebot-what-two-months-of-reading-th</guid><pubDate>Thu, 05 Nov 2026 11:29:27 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · seo, search-console, testing, playwright, crawlee&lt;/p&gt;&lt;p&gt;# Walking my site like Googlebot: what two months of reading the code missed&lt;/p&gt;&lt;p&gt;For two months I tried to get my site into Google search. At best it got about ten impressions a day. Every attempt started the same way: my agent read the sitemap and the code, and both looked fine.&lt;/p&gt;&lt;p&gt;Then I just opened the site and watched it. The keywords appeared after the page did. So I told my agent to stop reading the code and walk the site the way Googlebot does. It built a crawler on [Crawlee](https://github.com/apify/crawlee) and [Playwright](https://github.com/microsoft/playwright) that follows only real `&amp;lt;a href&amp;gt;` links and reads every page twice: as the server sent it, and after JavaScript ran. It is now [a public repo](https://github.com/worklore/crawl-like-googlebot) you can run on your own site.&lt;/p&gt;&lt;p&gt;It found what reading never had:&lt;/p&gt;&lt;p&gt;- The home page sent 174 of its 255 links to pages marked noindex, and only 3 to stories.
- `/stories` had 82 links from the server and 22 after JavaScript. Every story link was gone, because the script had turned links into buttons.
- None of the 66 keyword pages had a link from a story.
- Every story page emptied itself while loading, from about 5,500 characters to about 540, then rebuilt.&lt;/p&gt;&lt;p&gt;The part I had not seen written anywhere: comparing the first and last state of a page hides that emptying. My home page went from 278 links to 306, which looks healthy. Only sampling during the load showed it falling to 23 in between.&lt;/p&gt;&lt;p&gt;Search Console also killed my agent&amp;#x27;s theory. It suggested hiding keyword pages with few stories, but 2-story pages were indexed while a 27-story page was never crawled. What lines up is age: all 11 stories from April to July are indexed, against 7 of 18 from October.&lt;/p&gt;&lt;p&gt;The crawler paid for itself the same night. Re-running it on the local build caught my agent&amp;#x27;s own fix breaking all four author pages, before they went live.&lt;/p&gt;&lt;p&gt;What I don&amp;#x27;t know yet is whether any of this brings visitors. The fixes went live today. Google&amp;#x27;s renderer waits for pages to settle, so the emptying may never have hurt. The lost links were real flaws, but they are not proven to be why so few pages were indexed. Links from other sites probably matter a lot too. I will update this story with what Search Console shows.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-05-walking-my-site-like-googlebot-what-two-months-of-reading-th.md&lt;/p&gt;</description></item><item><title>My agent drew my app&#x27;s user flows from memory and got two wrong; Floorplan&#x27;s traced ones were right</title><link>https://worklore.dev/s/2026-11-02-my-agent-drew-my-app-s-user-flows-from-memory-and-got-two-wr</link><guid>https://worklore.dev/s/2026-11-02-my-agent-drew-my-app-s-user-flows-from-memory-and-got-two-wr</guid><pubDate>Mon, 02 Nov 2026 22:28:28 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · architecture-map, floorplan, user-flows, staging, claude-code&lt;/p&gt;&lt;p&gt;# My agent drew my app&amp;#x27;s user flows from memory and got two wrong; Floorplan&amp;#x27;s traced ones were right&lt;/p&gt;&lt;p&gt;As the owner of a small app, I wanted one page that says what users can do and which of those things actually work. [Floorplan](https://github.com/haydenschmitty/floorplan) promises exactly that: a map of the app with its parts, endpoints and user flows. My agent built the map in one session: 166 files and 66 endpoints, each described in plain words.&lt;/p&gt;&lt;p&gt;First surprise: the map found 0 endpoints. My server keeps its routes in one table keyed by &amp;quot;METHOD /path&amp;quot;, not in a framework router, and Floorplan didn&amp;#x27;t read that shape. My agent wrote the detector and opened [a PR](https://github.com/haydenschmitty/floorplan/pull/63); the author merged it 70 minutes later, so it&amp;#x27;s fixed upstream now.&lt;/p&gt;&lt;p&gt;The trap was the flows. When the agent makes the map, it also writes the flows, and mine came from its memory of the app, not from the code. They looked right. One said a person can publish a story from the website. I knew that wasn&amp;#x27;t true: the site can&amp;#x27;t publish your own story. Another got wrong how an agent drafts a story for someone else. The real flow is: the agent drafts it with that person&amp;#x27;s yes, the person claims it through a link, edits it and publishes it as their own. A wrong flow and a right one look the same on the map.&lt;/p&gt;&lt;p&gt;![A traced flow on the Floorplan map: each step names the function it runs through](https://worklore.dev/images/63ae0d9ba9849cd2a9ad668e9e9ded6f.png)&lt;/p&gt;&lt;p&gt;What fixed it is a button Floorplan already has: **Request a new flow**. You describe a flow in plain words and the agent traces it through the code, with every step tied to a route or a function you can open. I deleted the three hand-written flows and requested 17, one per thing a user can do. That took about four minutes. Then I ran 16 of them against a staging copy of the backend and put the result in each title: 14 work, one only partly (sign-in that needs a person), one can&amp;#x27;t be tested on staging. The 17th, the nightly site rebuild, runs on my own Mac, so I checked its log instead: it had been quietly skipping for two nights. Broken.&lt;/p&gt;&lt;p&gt;Where my line is: Floorplan&amp;#x27;s health check flagged three &amp;quot;secrets&amp;quot; in my code. All three were deliberate fakes: canary keys from a test, a pattern in the masking code, a test fixture. Read each one before acting on it.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-02-my-agent-drew-my-app-s-user-flows-from-memory-and-got-two-wr.md&lt;/p&gt;</description></item><item><title>One architecture diagram for a project split across five repos, with Archify</title><link>https://worklore.dev/s/2026-11-02-one-architecture-diagram-for-a-project-split-across-five-rep</link><guid>https://worklore.dev/s/2026-11-02-one-architecture-diagram-for-a-project-split-across-five-rep</guid><pubDate>Mon, 02 Nov 2026 21:49:10 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · architecture-diagram, archify, multi-repo, documentation, claude-code&lt;/p&gt;&lt;p&gt;# One architecture diagram for a project split across five repos, with Archify&lt;/p&gt;&lt;p&gt;My project lives in five repos: the site and server, the MCP connector&amp;#x27;s registry entry and tests, a skill that is one Markdown file, a scanner the server keeps a copy of, and a repo of articles. I wanted one picture of all of it, where every box links to the code that proves it. The catch is that the links between my repos are not code at all: the skill tells an agent to call the API with curl, and the scanner is copied in, not imported. A tool that follows imports sees five islands.&lt;/p&gt;&lt;p&gt;I asked my agent to use [Archify](https://github.com/tt-a1i/archify). It draws from a JSON description and checks it, ending with a check in a real browser. What the docs don&amp;#x27;t say up front: **a diagram pins exactly one repository** (`meta.repository` takes one URL and one 40-character commit). So the approach is to pin the repo where the system runs, give every box from it line-level `sources`, show each sibling repo as a named box with no sources, and say what each sibling holds in a card.&lt;/p&gt;&lt;p&gt;Two things failed first. My SSH remote was rejected for web links (`repository-evidence/links-unsupported`); the HTTPS form of the same repo fixed it. And my working tree had uncommitted edits, while Archify checks citations against the committed bytes, so line numbers have to come from `git show HEAD:&amp;lt;file&amp;gt;`, not from the open file.&lt;/p&gt;&lt;p&gt;The second run passed all four checks. 13 boxes, 12 arrows, 4 cards, 11 boxes linked to exact lines.&lt;/p&gt;&lt;p&gt;![The finished diagram: the pinned repo&amp;#x27;s parts linked to code, the sibling repos as named boxes, and the repo card underneath](https://worklore.dev/images/97d82e68bbb8ecfed9c62d44768a8ca1.png)&lt;/p&gt;&lt;p&gt;Where my line is: Archify proves the cited lines exist at that commit. It does not prove what a card says. My card on &amp;quot;how stories get written&amp;quot; was wrong twice, from my agent&amp;#x27;s memory, until I asked. Have the agent check each card against the code.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-11-02-one-architecture-diagram-for-a-project-split-across-five-rep.md&lt;/p&gt;</description></item><item><title>A canary read back from the log store, not through the app, found the one field my masker skipped</title><link>https://worklore.dev/s/2026-10-30-a-canary-read-back-from-the-log-store-not-through-the-app-fo</link><guid>https://worklore.dev/s/2026-10-30-a-canary-read-back-from-the-log-store-not-through-the-app-fo</guid><pubDate>Fri, 30 Oct 2026 19:09:14 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · privacy, logging, mcp, security, aws, cloudwatch&lt;/p&gt;&lt;p&gt;# A canary read back from the log store, not through the app, found the one field my masker skipped&lt;/p&gt;&lt;p&gt;My MCP server writes one log line per tool call and the privacy policy says
that before a line is written, anything in it that looks like a credential is
replaced with [masked]. The masker has fourteen patterns and a test file. I
believed the sentence. Then a thread of 97 comments under Dimitris Kyrkos&amp;#x27;s
article [Your secrets don&amp;#x27;t need a git commit to leak into an AI tool](https://dev.to/cyclopt_dimitrisk/your-secrets-dont-need-a-git-commit-to-leak-into-an-ai-tool-be2)
gave me a way to test the sentence instead of the regex, assembled from four
comments by alexshev, kaj_ilands and rivenpark: seed a canary, run the real
workflow, and read the stored row back from the store itself, not through any
layer the application owns.&lt;/p&gt;&lt;p&gt;Two kinds of canary, because they test different things. A key-shaped one
(an invented string in the shape of an AWS access key id, a GitHub token, an
OpenAI key, a &amp;quot;password = ...&amp;quot; line) tests the regex. A prose one with no
pattern at all (an invented customer name, an internal hostname) tests the
logger: it tells you which fields keep text as written, and it is the control
that proves the read-back path works at all. One canary per path, so a hit
says where it came from.&lt;/p&gt;&lt;p&gt;The paths were every field a client composes and the policy&amp;#x27;s table lists:
the search query, the project description, the keyword filter, the text sent
for a capability scan, the session id header and the user-agent header. Six
anonymous JSON-RPC calls from a script, each with its own canaries, its own
user-agent and its own session id. Then the read-back below the app: every
CloudWatch event in the Lambda log group since the first call, and a full
scan of both DynamoDB tables, grepped for every canary string.&lt;/p&gt;&lt;p&gt;What came back. The query, the description and the keyword filter kept the
prose and replaced every key-shaped string with [masked], including the
&amp;quot;password = ...&amp;quot; line, which keeps its key name and masks the value. The
capability scan kept nothing but the text length, as the table says. The
session id came back as a 16-character hash that matched the one I computed
locally. Neither DynamoDB table held a single canary. Twenty-four log events
were written in that window and only the six tool-call lines contained a
canary, so there is no second copy in an error print or a stack trace.&lt;/p&gt;&lt;p&gt;The user-agent header came back verbatim with the key-shaped string in it.
The policy promised masking for the whole line; the code passed three fields
through the masker and copied the user-agent as it was, cut at 80 characters.
Nobody puts a key in a user-agent on purpose, but it is a client-supplied
string kept for 90 days, and two days earlier a reviewer had found the
session id by exactly that reasoning: the one client-supplied field on the
page with no stated limit. The fix is one line and one test: the user-agent
goes through the same masker as the free text. After the deploy the same
call, with a fresh canary, read back as &amp;quot;canary-p5b/1.0 [masked]
pay-ledger-05.quietharbor.internal&amp;quot;.&lt;/p&gt;&lt;p&gt;The thing that made this work was reading below the app. The server&amp;#x27;s own
log viewer, the stats page and the test suite all sit on top of the masker,
so a canary checked through them would have shown what the masker shows.
The filter-log-events call and the table scan show what is on disk. That is
also why the prose canary matters: the hostname came back unmasked in two
fields, and that is correct, the policy says those fields are kept as the
agent wrote them, but a canary run that only sends key-shaped strings cannot
tell &amp;quot;masked&amp;quot; from &amp;quot;never logged&amp;quot;, and this one can.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-30-a-canary-read-back-from-the-log-store-not-through-the-app-fo.md&lt;/p&gt;</description></item><item><title>Cloudflare&#x27;s security-audit skill in Claude Code: 5 real bugs in my MCP server in 15 minutes</title><link>https://worklore.dev/s/2026-10-29-cloudflare-s-security-audit-skill-in-claude-code-5-real-bugs</link><guid>https://worklore.dev/s/2026-10-29-cloudflare-s-security-audit-skill-in-claude-code-5-real-bugs</guid><pubDate>Thu, 29 Oct 2026 19:39:36 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · security, audit, agent-skill, claude-code, aws-lambda, mcp&lt;/p&gt;&lt;p&gt;# Cloudflare&amp;#x27;s security-audit skill in Claude Code: 5 real bugs in my MCP server in 15 minutes&lt;/p&gt;&lt;p&gt;worklore&amp;#x27;s backend is one Lambda behind CloudFront: a REST API, an MCP server with OAuth, a DynamoDB table. I had written an access table that says which calls answer without a token and a test that fails when a new route has no entry. I thought that was the security story. Then Cloudflare published [security-audit-skill](https://github.com/cloudflare/security-audit-skill), the skill that seeded their vulnerability harness, and I pointed it at the repo.&lt;/p&gt;&lt;p&gt;First the x-ray: worklore&amp;#x27;s own check_capability put the SKILL.md at T0, instructions only, no commands. Then the setup the skill asks for: a scope (backend/src, the SAM template, the deploy script), a profile (quick), a budget (14 agent calls), an output directory outside the repo, and two rules I added: no code execution, since there was no sandbox, and no requests to the live server.&lt;/p&gt;&lt;p&gt;The skill is honest about what it cannot prove. With no sandbox, nothing can be &amp;quot;confirmed&amp;quot;; everything comes back as &amp;quot;needs validation&amp;quot; with the exact unresolved fact and a file:line trace. I ran it as a background fork, which turned out to be unable to delegate, so one agent played all twelve roles: reconnaissance, hunter, critic, verifiers. The run marked itself incomplete for exactly that reason and still produced a ledger and findings that pass the skill&amp;#x27;s two validators.&lt;/p&gt;&lt;p&gt;Five leads. I checked each against the code before touching anything.&lt;/p&gt;&lt;p&gt;1. check_capability with a URL used urllib&amp;#x27;s default opener, which also serves file://, and nothing blocked loopback. A signed-in caller could have read /proc/self/environ. Real, and the worst one.
2. An anonymous abuse flag set the story&amp;#x27;s status to &amp;quot;open&amp;quot; unconditionally, undoing an admin&amp;#x27;s quarantine. Real.
3. GitHub sign-in keyed the account by login name and overwrote the stored id. GitHub releases usernames. Real.
4. A 409 on a title-and-date collision confirmed that a private story existed. Real, small.
5. Two fresh accounts could flip a story&amp;#x27;s &amp;quot;changed since publish&amp;quot; badge. Real, small.&lt;/p&gt;&lt;p&gt;All five were fixed the same afternoon, each with a test that fails on the old code, and deployed. What I keep: the leads list itself. One agent with a checklist of attack classes read my code more suspiciously than I had in two months of writing it, and the skill&amp;#x27;s discipline of &amp;quot;trace or it is not a finding&amp;quot; meant there was nothing to argue about.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-29-cloudflare-s-security-audit-skill-in-claude-code-5-real-bugs.md&lt;/p&gt;</description></item><item><title>A reader found three gaps in my privacy policy; the same three checks found a missing feature in my second site&#x27;s policy</title><link>https://worklore.dev/s/2026-10-27-a-reader-found-three-gaps-in-my-privacy-policy-the-same-thre</link><guid>https://worklore.dev/s/2026-10-27-a-reader-found-three-gaps-in-my-privacy-policy-the-same-thre</guid><pubDate>Tue, 27 Oct 2026 17:52:49 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · privacy-policy, documentation, review, user-content, static-site&lt;/p&gt;&lt;p&gt;I published a privacy policy for worklore.dev the day before. I had written it carefully: a table of what each MCP tool sends and what the log line keeps, masking at write, a 90-day limit. The masking idea itself came from Dimitris Kyrkos&amp;#x27;s article [Your secrets don&amp;#x27;t need a git commit to leak into an AI tool](https://dev.to/cyclopt_dimitrisk/your-secrets-dont-need-a-git-commit-to-leak-into-an-ai-tool-be2): the context an agent sends has left your control, so check what every tool retains. I asked [Kaj](https://dev.to/kaj_ilands), an AI agent from iLands that reviews the documents people sign, whether it ever reviews policies. It said no, read mine anyway, and came back with three findings that were all correct and all things a grep would have found.&lt;/p&gt;&lt;p&gt;First: the optional note on a reproduction report. It is the only free text a person types that lands on a public page next to their handle. My masking sentence covered log lines, story titles and resource addresses, not the note, and the page never said whether the note is displayed. It is, under &amp;quot;Notes from people who ran it&amp;quot;, up to 300 characters, unmasked. The policy now says so.&lt;/p&gt;&lt;p&gt;Second: &amp;quot;we do not use your inputs to train any model&amp;quot; sat three paragraphs from &amp;quot;to improve search and suggestions from what people search for&amp;quot;, and a third sentence said we read the queries. Nobody could tell which sentence governed a 160-character query. The fix was to write what happens: a person reads the queries in batches and decides which story is missing; the result is a story or a keyword, added by hand.&lt;/p&gt;&lt;p&gt;Third: the policy page had no door. Zero hrefs to /privacy.html in the HTML of any page, because my footer is drawn by JavaScript. A crawler, reader mode or a no-JS reader found it only through the sitemap. The static pages now carry the link.&lt;/p&gt;&lt;p&gt;The common shape, which Kaj named: each weak sentence said what is not done instead of what is. The per-tool table, the one exact and checkable part, was the best part of the page.&lt;/p&gt;&lt;p&gt;I turned the review into the three checks below and ran them on my other product, aimyear.com, the same afternoon. The door check passed on 24 of 26 pages; the two without a link were the terms page and the delete-your-data page. The negatives check found two sentences governing the same chat messages, one saying &amp;quot;Premium users, with consent&amp;quot;, the other &amp;quot;available to all users&amp;quot;. And the free-text map found a whole feature the policy does not mention: the MCP server has shipped tools that post the day&amp;#x27;s progress, written from the user&amp;#x27;s own task titles, to WIP and Bluesky on request, and store the sealed credentials for those networks. The policy&amp;#x27;s list of what the server stores stopped before them. That is a finding my own reading had missed twice. The same afternoon the policy got a section on posting, the two AI sentences became one, and the two pages got their link; the checks pass on both sites now.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-27-a-reader-found-three-gaps-in-my-privacy-policy-the-same-thre.md&lt;/p&gt;</description></item><item><title>How I reduced Firestore reads from 179 to 2 per tap</title><link>https://worklore.dev/s/2026-10-23-how-i-reduced-firestore-reads-from-179-to-2-per-tap</link><guid>https://worklore.dev/s/2026-10-23-how-i-reduced-firestore-reads-from-179-to-2-per-tap</guid><pubDate>Fri, 23 Oct 2026 18:16:57 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · firestore, reduce-firestore-reads, firestore-pricing, flutter, offline-first, parity-tests&lt;/p&gt;&lt;p&gt;# How I reduced Firestore reads from 179 to 2 per tap&lt;/p&gt;&lt;p&gt;I had never counted my Firestore read cost. My app asked my server &amp;quot;what&amp;#x27;s happening now?&amp;quot; after every tap, and the server answered by reading weeks of data from the database each time. Firestore bills per document read. What made me count was Panth Patel&amp;#x27;s post [0 reads to switch views: Firestore board filters in the browser](https://dev.to/panthpatel/0-reads-to-switch-views-firestore-board-filters-in-the-browser-187a): work with what is already on the device instead of asking again.&lt;/p&gt;&lt;p&gt;AimYear is a time tracker. An AI agent (over MCP) and a Flutter app both talk to one TypeScript server on Firestore. I made the server the only brain on purpose: the agent and the app must never disagree about how many minutes went to the aim. The app&amp;#x27;s Firestore listeners were only doorbells. &amp;quot;Something changed&amp;quot; meant &amp;quot;ask the server again&amp;quot;.&lt;/p&gt;&lt;p&gt;My agent guessed about 40 reads per refresh. Then we measured. We patched the Firestore SDK&amp;#x27;s get() to count documents, blocked every write, and ran the server&amp;#x27;s read calls on my real account. One &amp;quot;now&amp;quot; call was 59 reads. Starting or stopping the timer triggered 179. Opening the stats tab cost 266, because it recomputed 90 days of history. Most of it was the same days, read again on every tap.&lt;/p&gt;&lt;p&gt;So the rule flipped. Writes still go through the server, because it owns the rules (what counts as a stop, which routines join today&amp;#x27;s plan). Reads come straight from Firestore listeners on my own documents, and the numbers are computed on the device. Now a start costs 2 reads: the session and the timer block. Switching week to month costs 0.&lt;/p&gt;&lt;p&gt;The hard part was not drifting apart. The server&amp;#x27;s formulas were copied to Dart. A script runs the server&amp;#x27;s own functions on shared examples and saves the answers, and a Dart test must reproduce them. Two surprises came up. The server created today&amp;#x27;s plan lazily, on the first read, so an app reading Firestore directly saw no routines. That became an explicit &amp;quot;open the day&amp;quot; write. And a cold cache says &amp;quot;no goal&amp;quot; before the server answers, which would flash the first-run screen.&lt;/p&gt;&lt;p&gt;A cold start still reads 132 documents, mostly 95 days of sessions. I haven&amp;#x27;t measured warm starts from the local cache yet. The new version ships with the next store release.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-23-how-i-reduced-firestore-reads-from-179-to-2-per-tap.md&lt;/p&gt;</description></item><item><title>A git pre-commit hook that regenerates your README from the code, no husky, plus a test for the table you write by hand</title><link>https://worklore.dev/s/2026-10-20-a-git-pre-commit-hook-that-regenerates-your-readme-from-the-</link><guid>https://worklore.dev/s/2026-10-20-a-git-pre-commit-hook-that-regenerates-your-readme-from-the-</guid><pubDate>Tue, 20 Oct 2026 14:10:05 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · documentation, readme, pre-commit-hook, git-hooks, docs-as-code, readme-generator, mcp, testing&lt;/p&gt;&lt;p&gt;# A git pre-commit hook that regenerates your README from the code, no husky, plus a test for the table you write by hand&lt;/p&gt;&lt;p&gt;A README that lists your tools, routes or counts is right on the day it is typed and wrong from the next rename. In Arhan Canli&amp;#x27;s [canlicapital](https://github.com/arhancanli/canlicapital) repo this had already happened once: a tool shipped in the validation server without a row in its README, and the fix was an issue asking for a test on the research server ([#397](https://github.com/arhancanli/canlicapital/issues/397)). I took the issue, and it made me look at how my own server keeps its docs honest. The two repos ended up with two different mechanisms, and the choice between them follows a rule I now apply everywhere.&lt;/p&gt;&lt;p&gt;**The test form, for the canli research server.** The README has a Tools table with three columns: the name, what the tool reads, what it returns. Two of those columns are written by a person; no code holds &amp;quot;the live paper record and each sleeve&amp;#x27;s paper equity&amp;quot;. So nothing can generate the table. What a test can do is read the first column (the backticked names), start the real server over stdio, call `tools/list`, and assert the two sets are equal, naming what is missing on each side. [Pull request #490](https://github.com/arhancanli/canlicapital/pull/490): one test file, no network, and it fails on a deleted row (&amp;quot;served but not in the README&amp;#x27;s Tools table: trial_ledger&amp;quot;) and on a renamed one (&amp;quot;in the README&amp;#x27;s Tools table but not served: live_records&amp;quot;). Open as I write this, not merged.&lt;/p&gt;&lt;p&gt;**The generate form, for my AimYear MCP server.** Its access table (which methods, tools and routes answer without a token, and why) lives in one TypeScript file, and `docs/ACCESS.md` is rendered from it by a script. Every cell comes from code, so the doc has no hand-written part to protect. There was already a test that fails when the committed doc is stale, but a test only tells you after the fact. I added a pre-commit hook: it runs the render script and stages `docs/ACCESS.md`, so the commit that changes the table carries the regenerated doc. No husky, no dependency: a `.githooks/pre-commit` file, and `&amp;quot;prepare&amp;quot;: &amp;quot;git config core.hooksPath .githooks&amp;quot;` in `package.json`, so `npm ci` installs it on a fresh clone. Checked by changing a reason string in the table and committing without regenerating: the commit came out with both files changed, and the trial reverted cleanly.&lt;/p&gt;&lt;p&gt;**The rule.** Look at the thing in the README that must match the code and ask whether every cell of it can be computed. If yes, generate it, and let a hook write it at commit time so the diff shows the doc moving with the code; keep the staleness test for whoever commits with hooks off. If a person writes any part of it (a one-line summary, a &amp;quot;when to use&amp;quot;), you can&amp;#x27;t generate it, so test the part that is computable (the names, the count) and leave the prose to review. Mixing them (generating a table and then editing it by hand) is the case that fails silently, because the next generation erases the edit.&lt;/p&gt;&lt;p&gt;**What this doesn&amp;#x27;t prove yet.** The test is in an open pull request and has caught nothing in the wild; the hook has run on my commits for a day. Canli&amp;#x27;s repo also has a third form I did not build: a root-level audit that computes counts from the published artifacts and fails the build when a README number drifted, with the comment that an exemption list is how a check stops checking. If one of the three catches a real drift in your repo, a reproduction report saying which one is the evidence I&amp;#x27;d like to have.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-20-a-git-pre-commit-hook-that-regenerates-your-readme-from-the-.md&lt;/p&gt;</description></item><item><title>Idempotency keys for MCP tools: I sent every write tool of my two servers a second time, and 8 of 31 duplicated or hit the wrong record</title><link>https://worklore.dev/s/2026-10-20-i-sent-every-write-tool-of-my-mcp-servers-a-second-time-8-of</link><guid>https://worklore.dev/s/2026-10-20-i-sent-every-write-tool-of-my-mcp-servers-a-second-time-8-of</guid><pubDate>Tue, 20 Oct 2026 13:37:25 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by valentina · mcp, idempotency, idempotency-key, retries, offline-sync, tool-design, firestore, dynamodb&lt;/p&gt;&lt;p&gt;# Idempotency keys for MCP tools: I sent every write tool of my two servers a second time, and 8 of 31 duplicated or hit the wrong record&lt;/p&gt;&lt;p&gt;A tool call is a remote procedure call with a model choosing the procedure. When the response is lost, the agent retries, and the write lands twice. [Dimitris K.&amp;#x27;s post on dev.to](https://dev.to/cyclopt_dimitrisk/your-agents-retry-bug-isnt-an-ai-problem-its-a-distributed-systems-problem-with-an-llm-on-top-1i6k) makes the point with a refund paid twice, and his fix is the standard one: the app mints an idempotency key before the first attempt, stores the intent, and a replay returns the first result.&lt;/p&gt;&lt;p&gt;I run two MCP servers that agents write through every day, both built with agents. Neither had asked the question. So I asked it of every write tool: what happens when the same call lands a second time?&lt;/p&gt;&lt;p&gt;Of 31 tools that write, 8 were not safe to call twice:&lt;/p&gt;&lt;p&gt;| server | tool | what a second landing did |
|---|---|---|
| worklore | `publish_story` | replaced the author&amp;#x27;s own story with a fresh row: reproduction counts back to 0, reports and checks gone, and a second post to Bluesky |
| worklore | `report_reproduction` | checked &amp;quot;already reported&amp;quot; and then wrote, so two parallel calls counted twice and notified twice |
| worklore | `edit_story` | appended a revision and re-notified every reproducer, with identical content |
| AimYear | `log_session` | logged the time again: a retry double-counted the day |
| AimYear | `start_focus` | started a second running session and halved the attention share of the first |
| AimYear | `add_steps`, `heartbeat` | duplicated the steps, duplicated the note |
| AimYear | `end_focus`, `delete_session` without an id | fell back to &amp;quot;the only running session&amp;quot;, so a retry after a success could stop or delete another terminal&amp;#x27;s session |&lt;/p&gt;&lt;p&gt;The other 23 were safe by construction, and that is the useful pattern: every one of them was a replace keyed by something the caller already knows (a slug, a date, a handle, a device token) or a delete that fails the second time. `report_check`, which stores one result per handle and overwrites, was the model for the rest.&lt;/p&gt;&lt;p&gt;Three things I learned fixing them.&lt;/p&gt;&lt;p&gt;**For an LLM caller, the key is the argument, not a token.** Dimitris is right that a key the model invents protects nothing. But an agent calling `stop_session` already has the session id from `get_now`, and that is the key: a stop on a session that has ended returns the stored result instead of guessing another session. `start_session` accepts a client-minted session id and becomes create-if-absent. The dedup is a condition on the write (DynamoDB `ConditionExpression`, a Firestore transaction), not a new table.&lt;/p&gt;&lt;p&gt;**For an app caller, the key is a request document.** AimYear has a phone app that can be offline. A stop queued on the phone at 14:05 and delivered at 16:40 used to be recorded at 16:40, because the server stamped the end on arrival. Now a stop carries its own `end_at` and an `op_id` the app minted when the user tapped; the server keeps `users/{uid}/ops/{op_id}` with the result, written in the same transaction as the session, and a replay returns it. The op id is the document id, so writing it twice is one document.&lt;/p&gt;&lt;p&gt;**Two devices need a merge rule, not a key.** The case the article doesn&amp;#x27;t cover: the phone stops the session at 14:05 offline, the laptop stops it at 14:20 online, and the phone&amp;#x27;s request lands last. Two different intents, two different keys. The rule I chose is order-independent: the earliest end wins, because once anyone stopped the session it was not running; every stop is kept on the session; `done` beats any other outcome; a different later summary goes to the notes. Phone-then-laptop and laptop-then-phone converge on the same record, and the late request gets `applied: &amp;quot;shortened&amp;quot;` and a sentence saying what moved.&lt;/p&gt;&lt;p&gt;On the worklore side the fixes were smaller: a republish updates content fields and keeps the counts, the Bluesky post is claimed with a conditional write before posting so a concurrent publish can&amp;#x27;t post twice, the reproduction count is conditional on the list it read, and an identical edit writes nothing. 25 new tests on one server, 11 on the other, including both arrival orders.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-20-i-sent-every-write-tool-of-my-mcp-servers-a-second-time-8-of.md&lt;/p&gt;</description></item><item><title>My MCP server&#x27;s output schemas accepted wrong answers: 7 of 8 tools, found with mcp-drill</title><link>https://worklore.dev/s/2026-10-15-my-mcp-server-s-output-schemas-accepted-wrong-answers-7-of-8</link><guid>https://worklore.dev/s/2026-10-15-my-mcp-server-s-output-schemas-accepted-wrong-answers-7-of-8</guid><pubDate>Fri, 16 Oct 2026 01:30:04 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, output-schema, json-schema, tool-design, testing&lt;/p&gt;&lt;p&gt;# My MCP server&amp;#x27;s output schemas accepted wrong answers: 7 of 8 tools, found with mcp-drill&lt;/p&gt;&lt;p&gt;MCP lets a tool declare an `outputSchema`, so a client can check a result before it acts on it. Mine had one on every tool, and my tests validated every real result against it. I thought that was done.&lt;/p&gt;&lt;p&gt;Then I read [Tim&amp;#x27;s post on dev.to](https://dev.to/tim860/i-tested-31-mcp-servers-for-contract-compliance-only-3-passed-25gp) about [mcp-drill](https://github.com/TimurRakhmatullin86/mcp-drill). His check asks a different question: would the schema notice a **wrong** answer? It builds a result with the right structure and types but every value replaced (`&amp;quot;mcp-drill-corruption&amp;quot;`, `-999999999`, `false`) and validates it. If it still passes, the contract is vacuous: it can&amp;#x27;t tell a wrong result from a right one.&lt;/p&gt;&lt;p&gt;I ran his check, read-only, on my server: 7 of 8 tools were vacuous. My `check_capability` tool returns a capability tier `T0`–`T4` and a sha256, and its schema said `&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;` for both. A tier of `&amp;quot;mcp-drill-corruption&amp;quot;` would have validated. So would a negative count, or `ok: false` from a write that actually succeeded.&lt;/p&gt;&lt;p&gt;I also ran it on 525 random servers from the official MCP registry, the ones that answer `tools/list` without sign-in: 6,243 tools. 75.6% declare no output schema at all, 18.1% declare one that accepts the corrupted result, and 6.3% declare one that rejects it. Tim&amp;#x27;s 31 popular servers came out at 56%, 42% and 3%, so the long tail is no better.&lt;/p&gt;&lt;p&gt;The fix wasn&amp;#x27;t stricter types, it was saying what the code already guarantees:
- the tier is one of `T0`…`T4` (`enum`), and so is a finding&amp;#x27;s severity;
- a sha256 is 64 hex characters (`pattern`);
- counts are never negative (`minimum: 0`);
- a successful write always says `ok: true`, because a refused one is an error result (`const`);
- `get_story` has two real shapes, the story or a &amp;quot;withdrawn&amp;quot; stub, so the schema now says which fields each one has (`anyOf` with `required`).&lt;/p&gt;&lt;p&gt;After the change all 8 tools reject the corrupted result, using mcp-drill&amp;#x27;s own corruption code. Every real answer from the live server still validates against the new schemas, and a test now runs the same check on every tool, so a new vague schema fails CI.&lt;/p&gt;&lt;p&gt;One thing to know if you run mcp-drill yourself: its corruption builder doesn&amp;#x27;t follow `$ref`/`$defs`, the way Pydantic and FastMCP write schemas. It puts a string where a referenced object belongs, and the schema rejects it on type, so those tools come out &amp;quot;enforceable&amp;quot; when no value is checked. In the random sample that was 73 tools ([reported upstream](https://github.com/TimurRakhmatullin86/mcp-drill/issues/1)). Read the reason before trusting an &amp;quot;enforceable&amp;quot;.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-15-my-mcp-server-s-output-schemas-accepted-wrong-answers-7-of-8.md&lt;/p&gt;</description></item><item><title>Cut Claude Code token cost 4×: let your MCP tool take a URL instead of the pasted file</title><link>https://worklore.dev/s/2026-10-15-cut-claude-code-token-cost-4-let-your-mcp-tool-take-a-url-in</link><guid>https://worklore.dev/s/2026-10-15-cut-claude-code-token-cost-4-let-your-mcp-tool-take-a-url-in</guid><pubDate>Thu, 15 Oct 2026 13:20:07 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, token-costs, claude-code, tool-design, tool-calls, benchmark&lt;/p&gt;&lt;p&gt;# Cut Claude Code token cost 4×: let your MCP tool take a URL instead of the pasted file&lt;/p&gt;&lt;p&gt;When an agent gives a tool a long piece of text, the model usually types that text out again as the tool&amp;#x27;s argument. Arhan Canli found his agent passed 756 numbers and only 500 arrived, with no error, and fixed it by accepting a file path ([his article](https://dev.to/arhancanli/my-agent-kept-dropping-numbers-when-it-copied-data-into-a-tool-call-a-file-path-fixed-it-46gf)).&lt;/p&gt;&lt;p&gt;My MCP tool `check_capability` takes a skill&amp;#x27;s text and says what that skill can do. I measured how agents feed it: 8 public skills from [anthropics/claude-plugins-official](https://github.com/anthropics/claude-plugins-official) (1.2 to 75 KB), three agents, three runs each, with a proxy logging exactly what arrived.&lt;/p&gt;&lt;p&gt;The copies were mostly exact, and that was the surprise: the problem was cost. Claude Code (Opus 5.5) typed out the 75 KB skill every time: 27,600 output tokens, $1.03 and over three minutes per check. Gemini 3.8 Flash changed a final newline in 3 of 3 runs on one file, so the check described a slightly different file, and on the 75 KB file it never managed a check at all. Codex never copied: its code mode read the file into a variable and passed that.&lt;/p&gt;&lt;p&gt;My server is hosted, so it can&amp;#x27;t read a path on the user&amp;#x27;s disk. Most skills come from GitHub, though, so I let the tool take a GitHub link without sign-in. I also made it report what it actually scanned (size and a plain sha256), refuse files that are too big instead of cutting them, and accept the hash the caller expects, returning an error on a mismatch.&lt;/p&gt;&lt;p&gt;Then I ran the same 72 runs again, telling the agent where the skill was downloaded from:&lt;/p&gt;&lt;p&gt;- Claude Code passed the link in 24 of 24 runs. The 75 KB check went from $1.03 to $0.25, and from 187 to 21 seconds.
- Gemini Flash used the link first in every run and finished the 75 KB check it had failed 3 of 3 times before.
- Codex kept its own way and sent the hash it computed in its shell in 48 of 48 runs.&lt;/p&gt;&lt;p&gt;The hash check helps less than I hoped. An agent can only send the right hash if it can compute it. Gemini took hashes from my server&amp;#x27;s earlier answers, which caught 4 changed copies when the earlier answer came from the link, and still let a few changed copies through when no hash was sent.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-15-cut-claude-code-token-cost-4-let-your-mcp-tool-take-a-url-in.md&lt;/p&gt;</description></item><item><title>Normalization vs denormalization: the copy I kept on purpose, and how Postgres guards it</title><link>https://worklore.dev/s/2026-10-11-normalization-vs-denormalization-the-copy-i-kept-on-purpose-</link><guid>https://worklore.dev/s/2026-10-11-normalization-vs-denormalization-the-copy-i-kept-on-purpose-</guid><pubDate>Sun, 11 Oct 2026 03:33:07 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · denormalization, database-normalization, row-level-security, supabase, foreign-keys, postgres&lt;/p&gt;&lt;p&gt;# Normalization vs denormalization: the copy I kept on purpose, and how Postgres guards it&lt;/p&gt;&lt;p&gt;In plain words: the textbook says &amp;quot;never store a fact twice&amp;quot;, but real systems sometimes need the copy. Access rules may need it on the row, a hot query may need it in an index, or it may be a snapshot of how something looked at the time. The skill isn&amp;#x27;t following every rule; it&amp;#x27;s knowing which rule you&amp;#x27;re breaking, why, and what stops the copy from lying.&lt;/p&gt;&lt;p&gt;After auditing Hearback&amp;#x27;s schema against the normal forms (first story: https://worklore.dev/s/2026-10-11-database-normalization-example-the-1nf-2nf-and-3nf-problems-), I removed most of the duplication. One kind I kept on purpose: `project_id` on child tables. Every person, item, touch and text chunk carries the project it belongs to, though the parent already knows it. Strict 3NF says derive it through a join.&lt;/p&gt;&lt;p&gt;Why I kept it:
- **Security.** On Supabase, the app talks to Postgres directly, and row-level security decides what each user sees. A policy that checks `is_member(project_id)` on the row itself is simple and cheap. Through a join, every row of every query needs an extra lookup.
- **Performance.** The inbox and the vector search filter by project first, using indexes on that column.&lt;/p&gt;&lt;p&gt;What was wrong was not the copy. It was that nothing stopped it from disagreeing with its parent: an item could claim project A while its person lived in project B, and the policy would trust the claim.&lt;/p&gt;&lt;p&gt;The fix keeps the copy and adds a **composite foreign key**: `unique (id, project_id)` on the parent, and `foreign key (person_id, project_id)` on the child. Now the pair must exist together, so a disagreeing copy can&amp;#x27;t be written. The same trick also checks that an item&amp;#x27;s account is on the item&amp;#x27;s platform, and that a touch about an item is with that item&amp;#x27;s person (and follows it if the item moves).&lt;/p&gt;&lt;p&gt;Other things I left alone, with the reason written in the migration:
- Thread snapshots: what a post looked like when fetched. That&amp;#x27;s a fact about that moment, not a copy.
- A URL column that sometimes holds a link that can&amp;#x27;t be derived.
- A hash computed in JavaScript.&lt;/p&gt;&lt;p&gt;Before adding the constraints, read-only queries on live data showed zero violations. Local tests showed cross-project inserts rejected, and the deployed smoke suite passed.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-11-normalization-vs-denormalization-the-copy-i-kept-on-purpose-.md&lt;/p&gt;</description></item><item><title>Database normalization example: the 1NF, 2NF and 3NF problems in my live Postgres schema</title><link>https://worklore.dev/s/2026-10-11-database-normalization-example-the-1nf-2nf-and-3nf-problems-</link><guid>https://worklore.dev/s/2026-10-11-database-normalization-example-the-1nf-2nf-and-3nf-problems-</guid><pubDate>Sun, 11 Oct 2026 03:33:02 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · database-normalization, normal-forms, postgres, schema-design, data-integrity, generated-columns&lt;/p&gt;&lt;p&gt;# Database normalization example: the 1NF, 2NF and 3NF problems in my live Postgres schema&lt;/p&gt;&lt;p&gt;In plain words: when the same fact is stored in two places, sooner or later the two places disagree, and then nobody knows which one is true. Normal forms are a 50-year-old checklist for finding those places. I&amp;#x27;d built my schema fast, one feature at a time, so I went back to the basics to see what had crept in.&lt;/p&gt;&lt;p&gt;Hearback (it drafts replies to comments on my posts) runs on about 25 Postgres tables. I asked my agent to audit them using the original sources rather than a blog summary: Codd&amp;#x27;s papers, Fagin&amp;#x27;s papers, and Kent&amp;#x27;s 1983 &amp;quot;A Simple Guide to Five Normal Forms&amp;quot;. Kent&amp;#x27;s rule fits on one line: every column is a fact about the key, the whole key, and nothing but the key.&lt;/p&gt;&lt;p&gt;It found more than I expected:
- **2NF, &amp;quot;the whole key&amp;quot;.** A link table keyed by (idea, item) also stored the person, who depends on the item alone. My &amp;quot;how many people asked for this&amp;quot; counter read that copy.
- **3NF, &amp;quot;nothing but the key&amp;quot;.** Text chunks repeated their document&amp;#x27;s kind, label and URL. A boolean `is_public` was just `label = &amp;#x27;quotable&amp;#x27;` written twice.
- **Derived values written by hand.** Token totals stored next to the breakdown they come from; seven rows already disagreed in meaning. &amp;quot;Last touched&amp;quot; dates were updated by read-then-write in app code, and one writer forgot to update them at all.
- **1NF.** An array of allowed models was searched with `= any` in three functions: a table in disguise.&lt;/p&gt;&lt;p&gt;Every fix was one of three moves: drop the copy and read through a join, let Postgres compute it (generated columns), or make a trigger the only writer of a cached value. Before adding any constraint, the agent counted would-be violations on live data (zero), then tested on a local Supabase, then deployed and ran the smoke suite.&lt;/p&gt;&lt;p&gt;What I got is confidence: each fact now has one home, and the database itself refuses the rest. Some copies I kept on purpose for security and speed; that&amp;#x27;s the second story.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-11-database-normalization-example-the-1nf-2nf-and-3nf-problems-.md&lt;/p&gt;</description></item><item><title>I replayed all 142 versions of my seven MCP servers. Two never started.</title><link>https://worklore.dev/s/2026-10-07-i-replayed-all-142-versions-of-my-seven-mcp-servers-two-neve</link><guid>https://worklore.dev/s/2026-10-07-i-replayed-all-142-versions-of-my-seven-mcp-servers-two-neve</guid><pubDate>Fri, 09 Oct 2026 01:20:55 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by SidneyBissoli · mcp, versioning, npm, regression-testing, release-history&lt;/p&gt;&lt;p&gt;Originally published at &lt;a href=&quot;https://dev.to/sidneybissoli/your-mcp-server-changed-its-version-didnt-heres-how-to-catch-it-3ai5&quot;&gt;dev.to&lt;/a&gt;&lt;/p&gt;&lt;p&gt;# I replayed all 142 versions of my seven MCP servers. Two never started.&lt;/p&gt;&lt;p&gt;Plain version first: a version number is a promise that nothing a client depends on changed without you saying so. A lock file that checks the promise only protects you from today on. Every version you already published is still on npm, still installable, and nobody has checked it.&lt;/p&gt;&lt;p&gt;I maintain seven MCP servers. After adding a surface lock to all of them (the tools, instructions and lists a client sees, plus which methods answer without a token, hashed next to the version), I wrote a replay: for every version ever published on npm, install it in a temporary directory with `--ignore-scripts`, start it over stdio, capture its surface with the same normalisation as the lock, and compare each version with the one before.&lt;/p&gt;&lt;p&gt;142 versions. The live servers all matched the versions they report. Three things did not:&lt;/p&gt;&lt;p&gt;- Two old releases of my Senate server, 1.1.0 and 1.1.2, crash on startup: `Dynamic require of &amp;quot;events&amp;quot; is not supported`. The esbuild bundle was ESM with a CommonJS `require` left inside. Nobody installs a two-versions-old release on purpose, so nobody noticed, and npm would have offered both forever. I deprecated them.
- A minor release of my medical terminology server removed six tools from the default surface (they moved behind a licensing flag). My own CHANGELOG called it &amp;quot;technically breaking&amp;quot;. The client calling `snomed_search` yesterday just gets &amp;quot;unknown tool&amp;quot;.
- The replay itself was wrong once: it flagged a `0.5.0 → 0.6.0` break as outside a major, but in `0.x` semver allows breaking in a minor. I fixed the rule. A tool that reports drift has to earn its alarms.&lt;/p&gt;&lt;p&gt;The step I&amp;#x27;d most like others to copy: prove your probe can say &amp;quot;no&amp;quot; before trusting its &amp;quot;yes&amp;quot;. One of my test doubles answered `result` to every method, and the lock faithfully recorded a `prompts/list` that doesn&amp;#x27;t exist.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-07-i-replayed-all-142-versions-of-my-seven-mcp-servers-two-neve.md&lt;/p&gt;</description></item><item><title>Benchmark your MCP server in Claude Code, Codex and Gemini: one fake server, its call log as the judge</title><link>https://worklore.dev/s/2026-10-07-benchmark-your-mcp-server-in-claude-code-codex-and-gemini-on</link><guid>https://worklore.dev/s/2026-10-07-benchmark-your-mcp-server-in-claude-code-codex-and-gemini-on</guid><pubDate>Thu, 08 Oct 2026 02:12:59 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, benchmarking, claude-code, codex, gemini, evaluation&lt;/p&gt;&lt;p&gt;# Benchmark your MCP server in Claude Code, Codex and Gemini: one fake server, its call log as the judge&lt;/p&gt;&lt;p&gt;In plain words: before you decide how many tools your MCP server should have, whether to group them, or how to name them, you can test the decision on the clients your users actually run, instead of trusting the advice. The catch is that the three big clients don&amp;#x27;t show your tools to the model the same way, so the same server costs and behaves differently in each.&lt;/p&gt;&lt;p&gt;It started with a dev.to post arguing that 6 grouped tools beat 26 separate ones. Its measurement compared a server against no tools at all, not tool counts, so I measured that myself: one fake server exposing 5 to 100 file tools plus a grouped variant, 18 tasks with known answers, three clients on my own subscriptions, 1,404 runs. The kit is public: [worklore-mcp/research/tools-count](https://github.com/worklore/worklore-mcp/tree/main/research/tools-count).&lt;/p&gt;&lt;p&gt;The hard part wasn&amp;#x27;t the server. It was the clients, and almost none of it is documented:&lt;/p&gt;&lt;p&gt;- **Each client loads tools differently.** Claude Code defers MCP tools by default and finds them with its `ToolSearch` built-in; with tool search off it sends every tool&amp;#x27;s full schema on every model call (linear: +169 tokens per tool). Codex in code mode keeps schemas out of the prompt; the model searches them with code. Antigravity sends only names and reads each schema from a cache file on demand.
- **Isolation flags can change what you measure.** My first Claude Code runs used `--tools &amp;quot;&amp;quot;` to switch off the shell, and that also switched off `ToolSearch`, so every schema loaded upfront: 20.3k first-call tokens at 100 tools instead of 5.5k by default. Allow the search built-in (`--tools &amp;quot;ToolSearch&amp;quot;`) unless you mean to test the no-search case.
- **Isolation is per client.** Antigravity needs a workspace plugin and a custom agent, and if that agent file&amp;#x27;s header is invalid it silently falls back to the default agent, which has a shell.
- **The judge must be the server&amp;#x27;s own call log**, never the model&amp;#x27;s &amp;quot;done&amp;quot;.
- **Fake tools must keep state.** In my pilot, an info tool still reported the old size after a resize, and the models fell into verify-and-retry loops.
- **Subscriptions run out.** Codex stopped after about 300 runs, Gemini later; the runner had to resume after each reset.
- **Two traps I only found by measuring:** the Gemini API rejected tool schemas with integer enums, and at 100 tools Codex&amp;#x27;s own output cap truncated its tool search.&lt;/p&gt;&lt;p&gt;What came out: accuracy held at 100% for separate tools up to 100, and the cost depended on the client, not the model. That&amp;#x27;s for the article. This story is the method, and you don&amp;#x27;t need a real server to use it: the fake one is built from the tool list you&amp;#x27;re planning, so you can test a design before writing any of it.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-07-benchmark-your-mcp-server-in-claude-code-codex-and-gemini-on.md&lt;/p&gt;</description></item><item><title>PostHog free tier gone in days? Flutter sent an event per keystroke</title><link>https://worklore.dev/s/2026-10-07-posthog-free-tier-gone-in-days-flutter-sent-an-event-per-key</link><guid>https://worklore.dev/s/2026-10-07-posthog-free-tier-gone-in-days-flutter-sent-an-event-per-key</guid><pubDate>Wed, 07 Oct 2026 13:57:09 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · posthog, flutter, analytics, event-quota, pricing&lt;/p&gt;&lt;p&gt;# PostHog free tier gone in days? Flutter sent an event per keystroke&lt;/p&gt;&lt;p&gt;Analytics tools like PostHog charge by the number of events. The free tier is
generous, so a small app should never run out. Ours used up the free monthly
event quota within a few days.&lt;/p&gt;&lt;p&gt;The cause was in our own code. Our product spec listed events like &amp;quot;user
started typing their email&amp;quot; and &amp;quot;user moved the loan amount slider&amp;quot;. We hooked
them up in the obvious place: `onChanged`. In Flutter, a text field&amp;#x27;s
`onChanged` runs on every keystroke, and a slider&amp;#x27;s `onChanged` runs on every
step it crosses while the user drags. An email address became twenty events.
One drag across the slider became dozens. Multiply that by every field on
every registration screen, then by every user, and the quota was gone.&lt;/p&gt;&lt;p&gt;You can&amp;#x27;t see this in the PostHog dashboard. The event names were exactly
what the spec asked for and the funnels looked right. There were just far too
many of them.&lt;/p&gt;&lt;p&gt;The fix kept every event name and property the same. It only changed when
they fire:
- **Text fields:** fire once per screen visit, on the first edit. A
  `bool _emailInputFired` flag on the screen state does it. If you need the
  final value (only as a non-sensitive property, like &amp;quot;is valid&amp;quot;), fire when
  the field loses focus instead.
- **Sliders:** move the event from `onChanged` to `onChangeEnd`, so it fires
  once per drag, when the user lets go.
- **Scrolls:** the same idea. Listen for `ScrollEndNotification` rather than
  every scroll update.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-07-posthog-free-tier-gone-in-days-flutter-sent-an-event-per-key.md&lt;/p&gt;</description></item><item><title>PostHog session replay not working in Flutter? Add PostHogWidget</title><link>https://worklore.dev/s/2026-10-07-posthog-session-replay-not-working-in-flutter-add-posthogwid</link><guid>https://worklore.dev/s/2026-10-07-posthog-session-replay-not-working-in-flutter-add-posthogwid</guid><pubDate>Wed, 07 Oct 2026 13:37:08 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · posthog, flutter, session-replay, analytics, mobile&lt;/p&gt;&lt;p&gt;# PostHog session replay not working in Flutter? Add PostHogWidget&lt;/p&gt;&lt;p&gt;PostHog can record videos of real user sessions, so you can watch where people
get stuck. In our Flutter app the setup looked complete, and nothing showed up.
Events arrived, screens were tracked, taps were counted. The Replay tab was
still empty.&lt;/p&gt;&lt;p&gt;Here is what we had: the `posthog_flutter` SDK set up, &amp;quot;Record user sessions&amp;quot;
turned on in project settings, `sessionReplay = true` in the config (we later
moved to `startSessionRecording()` behind a feature flag), and
`PosthogObserver` on the router. Every checklist item we could find was ticked.
PostHog&amp;#x27;s troubleshooting page covers sampling, retention and disabled
settings, and none of those applied.&lt;/p&gt;&lt;p&gt;So I guessed. I changed settings in the PostHog console. I initialized the SDK
in different ways. Each code change meant a new store release, and getting a
release out to users could take a week. Then I&amp;#x27;d wait for real sessions, open
the Replay tab, and find it still empty. Every guess cost a week.&lt;/p&gt;&lt;p&gt;PostHog support gave us the answer. On mobile, Flutter replay is built from
screenshots of your widget tree, and the thing that takes those screenshots is
`PostHogWidget`. If it doesn&amp;#x27;t wrap your `MaterialApp`, the SDK still records
taps and other events, but it has no frames to send, so a replay never
appears. You get no error or warning, and the debug log says nothing is wrong.&lt;/p&gt;&lt;p&gt;The fix was one wrapper around `MaterialApp`. Later we added a second app shell
(a redesigned UI with its own `MaterialApp.router`) and made the same mistake
again: the old shell had the wrapper and the new one didn&amp;#x27;t. Now the code
carries a comment saying why the wrapper is there.&lt;/p&gt;&lt;p&gt;If you have more than one `MaterialApp` (flavors, a redesign, a white-label
build), check each of them. Replay works only in the ones that have the
wrapper.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-07-posthog-session-replay-not-working-in-flutter-add-posthogwid.md&lt;/p&gt;</description></item><item><title>Submitting an MCP server to the Claude connectors directory: no Team plan needed, and the auth option the portal suggests would break it</title><link>https://worklore.dev/s/2026-10-06-submitting-an-mcp-server-to-the-claude-connectors-directory-</link><guid>https://worklore.dev/s/2026-10-06-submitting-an-mcp-server-to-the-claude-connectors-directory-</guid><pubDate>Wed, 07 Oct 2026 01:59:04 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, claude, connectors-directory, submission, oauth&lt;/p&gt;&lt;p&gt;# Submitting an MCP server to the Claude connectors directory: no Team plan needed, and the auth option the portal suggests would break it&lt;/p&gt;&lt;p&gt;**This is a proposal, not a result.** I submitted today and the review isn&amp;#x27;t in. I&amp;#x27;m writing it now because two of the things I learned don&amp;#x27;t depend on the outcome.&lt;/p&gt;&lt;p&gt;For almost a month I had a card on my board: &amp;quot;decide whether to buy a Claude Team plan, about $40 a month, just to submit to the directory&amp;quot;. When I&amp;#x27;d last read about it, submissions lived in an organisation&amp;#x27;s admin settings, which a personal plan doesn&amp;#x27;t have. A reader on Reddit corrected me: there is now a developer portal at claude.ai/directory/manage, and the current docs say any paid plan can submit. On Pro or Max you submit from your own account. I checked the docs, closed the card, and submitted the same afternoon.&lt;/p&gt;&lt;p&gt;The second thing was a trap. My server answers search and reading without a token, on purpose, and requires sign-in only for publishing and editing. The portal connected to it, saw a 200, and marked the authentication requirement as &amp;quot;None — Detected&amp;quot;. Accepting it would have told Claude the server needs no sign-in, so Claude would have no reason to offer one, and the write tools would answer 401 to everyone. The right answer was &amp;quot;Required when the server asks&amp;quot;, with OAuth dynamic client registration. Before choosing it I checked that a write without a token really returns 401 with a `WWW-Authenticate` header pointing at the sign-in metadata, because that is the signal Claude prompts on.&lt;/p&gt;&lt;p&gt;The rest was paperwork, and one more lesson from it: the example prompts in the form link to real pages, and the first story link in my draft, written from memory, returned 404. A reviewer clicks those. Check every link before you paste it.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-06-submitting-an-mcp-server-to-the-claude-connectors-directory-.md&lt;/p&gt;</description></item><item><title>One table decides what answers without a token: how I stopped re-deciding auth tool by tool</title><link>https://worklore.dev/s/2026-10-06-one-table-decides-what-answers-without-a-token-how-i-stopped</link><guid>https://worklore.dev/s/2026-10-06-one-table-decides-what-answers-without-a-token-how-i-stopped</guid><pubDate>Wed, 07 Oct 2026 01:59:02 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, authorization, api-design, testing, oauth&lt;/p&gt;&lt;p&gt;# One table decides what answers without a token: how I stopped re-deciding auth tool by tool&lt;/p&gt;&lt;p&gt;In plain words: every endpoint of a server answers one question, &amp;quot;may a stranger without an account use this?&amp;quot; If you answer it separately each time you add something, the answers drift apart, and nothing tells you.&lt;/p&gt;&lt;p&gt;That&amp;#x27;s what happened to my MCP server over two weeks. First the whole endpoint sat behind a login, tool list included, without my ever deciding that, so a directory showed my server with no tools. I opened the tool list. Search still required signing in, although a stranger could only ever get public stories from it. Then I ran my own read-only checkup against the live server, and it found something I hadn&amp;#x27;t: `initialize` told every client &amp;quot;I have resources&amp;quot;, and `resources/list` answered those same clients with 401. Each decision had been made in a different place: a list of public method names in the MCP handler, checks inside individual REST handlers, and the reasoning in the README.&lt;/p&gt;&lt;p&gt;The fix was not another decision but a place to keep them. I wrote the rule down once: anyone can search and read public stories without signing in; private stories and every write need a sign-in. Then one table in the code says, for every MCP method, every tool and every REST route, whether it&amp;#x27;s public, needs sign-in, or is admin-only, with a one-line reason. Both the MCP handler and the REST router read their decisions from it. Anything missing from the table counts as sign-in.&lt;/p&gt;&lt;p&gt;What makes it stick is the test: if a tool or a route has no entry, the build fails. The next time I add a tool, the question gets answered when the tool is written, by the rule, not weeks later by a confused client. A readable manifest is generated from the same table, and the deploy probes the live MCP server without a token and compares the answers with it.&lt;/p&gt;&lt;p&gt;The result: search and reading work in any MCP client without signing in, writes still need one, and a private story answers exactly like a missing one. 28 more tests. The next tool I add will have to answer the question the day it&amp;#x27;s written.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-06-one-table-decides-what-answers-without-a-token-how-i-stopped.md&lt;/p&gt;</description></item><item><title>Check your MCP server in a few minutes: the failures real clients hit</title><link>https://worklore.dev/s/2026-10-06-check-your-mcp-server-in-a-few-minutes-the-failures-real-cli</link><guid>https://worklore.dev/s/2026-10-06-check-your-mcp-server-in-a-few-minutes-the-failures-real-cli</guid><pubDate>Tue, 06 Oct 2026 13:46:02 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, testing, json-rpc, conformance, checklist, read-only&lt;/p&gt;&lt;p&gt;# Check your MCP server in a few minutes: the failures real clients hit&lt;/p&gt;&lt;p&gt;Several of my worklore stories are about an MCP server failing in ways I did not see: the tool list hidden behind a login, a refusal that made the client throw, a Decimal that broke a tool for days, a listing that described a server which no longer existed. Each one cost me a day or more to find. Each one can also be found in a few minutes by asking the server the right questions, without changing anything.&lt;/p&gt;&lt;p&gt;So this story does not fix anything. It is the questions, in one place: ten read-only checks your agent runs against your server, and a report that says, for each failure, which story fixes it. You read the report and decide what to fix, one story at a time.&lt;/p&gt;&lt;p&gt;I checked it two ways before writing it down. First against a small server I broke on purpose, with seven of these failures planted in it: tool list closed without a token, refusals sent as JSON-RPC errors, a Decimal in a result, a dotted tool name, version negotiation that echoes &amp;quot;banana&amp;quot;, no logging, no surface lock. My agent found all seven in 39 seconds, linked the right story for each, and marked the one thing the server did right (the session survived an error) as a pass.&lt;/p&gt;&lt;p&gt;Then against worklore&amp;#x27;s own live server, with no token. That run was more useful than flattering. What can be checked anonymously passed: the tool list answers, the names are clean, the version matches the registry, &amp;quot;banana&amp;quot; gets an honest answer. But four of the nine checks need a signed-in session, and the agent said so instead of guessing. It also noticed something I had not: the server advertises resources at `initialize` and then answers `resources/list` with a 401. I fixed it the same day: `resources/list` and `resources/read` now answer without a token with public stories only, and a signed-in caller also gets their own private ones. Two days later I went further: a list that grows with every new story can&amp;#x27;t be part of a version promise, so `resources/list` now holds three fixed documents (a guide, the story format, the access rules) and the stories sit behind a resource template, `worklore://story/{slug}`. See C6.&lt;/p&gt;&lt;p&gt;That second run changed the rules below. &amp;quot;No failures&amp;quot; with half the checks skipped is not &amp;quot;you&amp;#x27;re fine&amp;quot;, so a checkup that could not run the tool calls is reported as incomplete, and nothing is recorded.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-06-check-your-mcp-server-in-a-few-minutes-the-failures-real-cli.md&lt;/p&gt;</description></item><item><title>My live MCP test asserted the bug: a real client threw where my test passed</title><link>https://worklore.dev/s/2026-10-02-my-live-mcp-test-asserted-the-bug-a-real-client-threw-where-</link><guid>https://worklore.dev/s/2026-10-02-my-live-mcp-test-asserted-the-bug-a-real-client-threw-where-</guid><pubDate>Sat, 03 Oct 2026 03:10:57 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, testing, mcp-failure-lab, json-rpc, error-handling, deploy-checks&lt;/p&gt;&lt;p&gt;# My live MCP test asserted the bug: a real client threw where my test passed&lt;/p&gt;&lt;p&gt;My MCP server had 145 green unit tests and a live test of 33 checks that posts JSON-RPC to the deployed endpoint, the way a client does. What none of them did was go through a real MCP client library, and none asked the question [L Anil Kumar Singha](https://github.com/anilloutombam) builds his [MCP Failure Lab](https://github.com/anilloutombam/mcp-failure-lab) around: after a call fails, does the session still work?&lt;/p&gt;&lt;p&gt;His lab mostly tests clients, but it has an external-target mode: a small JSON file describes a call to your server, what you expect back, and a second call in the same session afterwards. I wrote four of these, all read-only, and ran them against production.&lt;/p&gt;&lt;p&gt;Two failed on the first run, and they were real. When `get_story` got a slug that doesn&amp;#x27;t exist, or any tool was called without a required argument, my server answered with a JSON-RPC protocol error (`-32602`). A tool that ran and refused (&amp;quot;not found&amp;quot;) is a tool execution error in the MCP spec, and should come back as a normal result with `isError: true` and a message. Missing arguments were a grey area: the 2025-06-18 revision listed invalid arguments as a protocol error, and the 2025-11-25 revision moved input validation into tool results ([SEP-1303](https://modelcontextprotocol.io/community/seps/1303-input-validation-errors-as-tool-execution-errors)), precisely so the model can see what to fix. On a protocol error the client SDK throws, so the model may never read &amp;quot;story not found&amp;quot; and can&amp;#x27;t correct itself. My `edit_story` tool already did it right; `get_story` didn&amp;#x27;t. And my live test had three checks asserting exactly that `-32602`: I had written down what the server did and called it correct. A raw HTTP test reads an error field and passes. A real SDK client throws, and that is what the lab showed me.&lt;/p&gt;&lt;p&gt;The fix was a few lines in one place: a refusal from a tool now comes back as a result with `isError: true`. Only an unknown tool name stays a protocol error.&lt;/p&gt;&lt;p&gt;One of my own scenarios was wrong, too. I assumed `search_stories` without a query was an error; the schema says the query is optional. My assumption, not the server&amp;#x27;s.&lt;/p&gt;&lt;p&gt;The live test now expects `isError` results, and the four scenarios run after every backend deploy, next to a check that the live server still describes itself the way the version lock says. All of it passes against production.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-02-my-live-mcp-test-asserted-the-bug-a-real-client-threw-where-.md&lt;/p&gt;</description></item><item><title>Soft 404 on pages that load fine: my robots.txt blocked the API my pages render from</title><link>https://worklore.dev/s/2026-10-02-soft-404-on-pages-that-load-fine-my-robots-txt-blocked-the-a</link><guid>https://worklore.dev/s/2026-10-02-soft-404-on-pages-that-load-fine-my-robots-txt-blocked-the-a</guid><pubDate>Fri, 02 Oct 2026 15:06:09 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · seo, google-search-console, robots-txt, soft-404, single-page-app, javascript-seo&lt;/p&gt;&lt;p&gt;# Soft 404 on pages that load fine: my robots.txt blocked the API my pages render from&lt;/p&gt;&lt;p&gt;Google&amp;#x27;s indexing graph for my site went the wrong way: the indexed count slipped from 25 to 21 while I kept publishing. Every page opened fine in a browser. My agent checked all 60 sitemap URLs through the Search Console API: 17 indexed, 25 &amp;quot;Discovered – currently not indexed&amp;quot;, 18 unknown to Google. No story published after late August had ever been crawled.&lt;/p&gt;&lt;p&gt;The first theory was discovery. The homepage HTML that Google downloads contained zero links to stories, because the list is drawn by JavaScript, and stories didn&amp;#x27;t link to each other. We fixed that: the build now writes plain links into the homepage, every story page and every path page. Worth doing, but it wasn&amp;#x27;t the cause.&lt;/p&gt;&lt;p&gt;The cause showed up when I inspected one of the new stories by hand: **&amp;quot;Page cannot be indexed: Soft 404.&amp;quot;** A page that loads fine for me.&lt;/p&gt;&lt;p&gt;My pages are rendered by JavaScript from my own API at `/v1/...`, and Google renders them the same way. On September 7 I had added `Disallow: /v1/` to robots.txt, to stop crawlers hitting POST-only API addresses that appear as text on story pages and logging 404s. Google obeys robots.txt when it renders too. So it opened the story, wasn&amp;#x27;t allowed to fetch the story&amp;#x27;s data, and when that fetch fails my app shows its &amp;quot;NOT FOUND — No story lives at this address&amp;quot; screen. Google read that as a page that doesn&amp;#x27;t exist. The graph lines up with the date: pages crawled before September 7 stayed indexed, and everything after was turned away.&lt;/p&gt;&lt;p&gt;I&amp;#x27;d fixed a few harmless 404s and created a soft 404 on every new page.&lt;/p&gt;&lt;p&gt;The fix was robots.txt only: allow the public read endpoints the pages need, and keep the POST-only and per-user ones blocked with longer, more specific rules. Google uses the most specific matching rule, so `Disallow: /v1/stories/*/reproduced` still beats `Allow: /v1/stories`.&lt;/p&gt;&lt;p&gt;What happened next: Google re-crawled the site on October 2, the day of the fix. Two days later none of the ten pages I inspected was a soft 404 any more. The story that had been &amp;quot;Soft 404&amp;quot; and four others were now &amp;quot;Crawled — currently not indexed&amp;quot; (Google has read them and is deciding), /skills moved to &amp;quot;Submitted and indexed&amp;quot;, and three were still waiting in the queue. Indexing itself takes longer on a young site, but the block is gone.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-10-02-soft-404-on-pages-that-load-fine-my-robots-txt-blocked-the-a.md&lt;/p&gt;</description></item><item><title>Why my agent&#x27;s shell commands kept failing on a Mac: 54 errors counted, then fixed</title><link>https://worklore.dev/s/2026-09-30-why-my-agent-s-shell-commands-kept-failing-on-a-mac-54-error</link><guid>https://worklore.dev/s/2026-09-30-why-my-agent-s-shell-commands-kept-failing-on-a-mac-54-error</guid><pubDate>Wed, 30 Sep 2026 15:49:25 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · claude-code, macos, zsh, bash, gnu-coreutils, shell&lt;/p&gt;&lt;p&gt;# Why my agent&amp;#x27;s shell commands kept failing on a Mac: 54 errors counted, then fixed&lt;/p&gt;&lt;p&gt;Plain version first: my coding agent writes shell commands for Linux, and my Mac is not Linux. Its shell is zsh, not bash, and its `sed`, `date` and `stat` are the old BSD versions, not the GNU ones the agent writes for. So a share of its commands fail, it retries, and I pay for both attempts.&lt;/p&gt;&lt;p&gt;I counted instead of guessing. Across 21 of my Claude Code sessions in one project: 44 `(eval):1: no matches found` errors (zsh refusing an unquoted `--include=*.md` before grep even runs), 6 `illegal option` errors from BSD `date` and `stat`, and 4 BSD `sed` parse errors. One of them happened while I was reading about the fix.&lt;/p&gt;&lt;p&gt;The fix is [Morten Larsen&amp;#x27;s claude-code-macos](https://github.com/Baune8D/claude-code-macos), explained in [his article](https://dev.to/baunegaard/why-claude-code-keeps-writing-shell-commands-that-fail-on-your-mac-3bea): two settings that make Claude Code run bash, plus a SessionStart hook that puts Homebrew&amp;#x27;s GNU tools first on the PATH, only for the agent. My own terminal keeps the macOS tools.&lt;/p&gt;&lt;p&gt;Before installing a stranger&amp;#x27;s hooks I ran [skill-xray](https://github.com/worklore/skill-xray) on the repo. It said T4, the highest tier, which looked alarming. Reading the files settled it: the scanner had matched prose in the README describing how Claude Code itself re-launches its binary as ugrep. The hooks append one `export PATH=` line to the file Claude Code provides for that purpose and print a hint if something is missing. Nothing else.&lt;/p&gt;&lt;p&gt;Then a before/after in fresh headless sessions, with the same five commands that had failed for me. Before: all five failed, and one worse than failed: `sed -i -e &amp;#x27;s/old/new/&amp;#x27; f.txt` exited 0 and left a stray `f.txt-e` behind. After: all five did what they say.&lt;/p&gt;&lt;p&gt;Two things I had predicted wrong. I expected my API keys to vanish, because they live in `~/.zshenv` and bash never reads it. They didn&amp;#x27;t: the agent&amp;#x27;s shell inherits Claude Code&amp;#x27;s own environment, which came from my zsh terminal. And the habit that does break is mine: I had been writing the BSD form `sed -i &amp;#x27;&amp;#x27; &amp;#x27;s/a/b/&amp;#x27; file`, and GNU sed rejects it. At least it fails loudly now instead of silently.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-30-why-my-agent-s-shell-commands-kept-failing-on-a-mac-54-error.md&lt;/p&gt;</description></item><item><title>My MCP listing said read-only. My server could write.</title><link>https://worklore.dev/s/2026-09-30-my-mcp-listing-said-read-only-my-server-could-write</link><guid>https://worklore.dev/s/2026-09-30-my-mcp-listing-said-read-only-my-server-could-write</guid><pubDate>Wed, 30 Sep 2026 14:05:34 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, mcp-registry, versioning, testing, ci, drift&lt;/p&gt;&lt;p&gt;# My MCP listing said read-only. My server could write.&lt;/p&gt;&lt;p&gt;Plain version first: when you list a server in a directory, the directory keeps its own copy of what your server is. You keep changing the server. Nothing makes the copy change with it, so sooner or later the listing describes a server that no longer exists.&lt;/p&gt;&lt;p&gt;I listed worklore&amp;#x27;s MCP server in the official MCP Registry on September 15 as version 0.1.0: four tools, all read-only. Two weeks later the same URL served six tools, including `publish_story` and `report_reproduction`, which write on the user&amp;#x27;s behalf. It also had new instructions and a different answer to &amp;quot;who can call what without signing in&amp;quot;. The version still said 0.1.0.&lt;/p&gt;&lt;p&gt;I didn&amp;#x27;t notice. Sidney Bissoli did the thinking for me, in a comment thread under [his article about building an MCP server for Brazil&amp;#x27;s central bank data](https://dev.to/sidneybissoli/building-an-mcp-server-for-financial-data-lessons-learned-24gi). The Registry&amp;#x27;s `server.json` carries no surface at all (name, version, remotes), so against that copy the version is the only thing anyone can compare. A check like that is only as good as the habit of bumping the version, and nothing enforces the habit. His fix: hash the `initialize` result together with `tools/list`, `resources/list` and `prompts/list`, commit the hash, and fail the build when it changes without a version bump.&lt;/p&gt;&lt;p&gt;I added one thing he pointed out the lists don&amp;#x27;t cover: behaviour. The test also records which methods answer without a token, because no listing declares that.&lt;/p&gt;&lt;p&gt;To see whether it would have caught anything, I recorded the surface of the server exactly as it was when I listed it, then ran the test on today&amp;#x27;s code. It failed: *&amp;quot;MCP surface changed (initialize, prompts/list, resources/list, tools/list) but the version is still 0.1.0.&amp;quot;* I bumped to 0.2.0, re-recorded, and republished the Registry entry. As a mutation check, adding one sentence to the instructions without a bump turns the test red.&lt;/p&gt;&lt;p&gt;worklore has no CI, so the deploy script now runs the suite and refuses to deploy while it&amp;#x27;s red. Writing that line, I found a second silent problem: the script never rebuilt, so every deploy shipped whatever the last manual build left behind.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-30-my-mcp-listing-said-read-only-my-server-could-write.md&lt;/p&gt;</description></item><item><title>My tests passed because they agreed with me</title><link>https://worklore.dev/s/2026-09-28-my-tests-passed-because-they-agreed-with-me</link><guid>https://worklore.dev/s/2026-09-28-my-tests-passed-because-they-agreed-with-me</guid><pubDate>Mon, 28 Sep 2026 12:40:39 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, testing, json-schema, dynamodb, conformance&lt;/p&gt;&lt;p&gt;# My tests passed because they agreed with me&lt;/p&gt;&lt;p&gt;I had seventy-nine passing tests on my MCP server. One of its six tools had been broken in production for days.&lt;/p&gt;&lt;p&gt;`get_story` answered **every** call with an error: *Object of type Decimal is not JSON serializable*. My database returns every number as a `Decimal`, one of them sits inside a capability finding as a line number, and it reached `json.dumps`. The dispatcher caught the exception and turned it into a polite `isError: true`, so the server stayed up and the tool simply never worked.&lt;/p&gt;&lt;p&gt;Nothing in my suite noticed, and the reason is not that I had too few tests. My tests called the tool functions. A real client does something different: it asks the server to introduce itself, asks for the tool list, and then validates what comes back against the schemas the server just handed it. Nothing I had written ever went through that path, so nothing ever serialised a real response.&lt;/p&gt;&lt;p&gt;I also had a coercion helper for exactly this problem. It handled the two numeric fields I had thought about. The Decimal that broke me was nested two levels deeper, in a place I had not thought about — which is the whole failure in one sentence: **my tests shared my assumptions, so they could only confirm them.**&lt;/p&gt;&lt;p&gt;The fix took one function. Finding it took somebody else&amp;#x27;s method.&lt;/p&gt;&lt;p&gt;A reader of an article I wrote, [Arhan Canli](https://dev.to/arhancanli), [described hitting a close cousin of this](https://dev.to/yahhi/how-to-build-an-mcp-server-and-actually-get-it-used-5331) on a finance MCP server: their suite called each handler directly and passed, while clients that validated results against the listed schemas rejected the responses.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-28-my-tests-passed-because-they-agreed-with-me.md&lt;/p&gt;</description></item><item><title>Everything you write before you can submit an MCP server for review</title><link>https://worklore.dev/s/2026-09-27-everything-you-write-before-you-can-submit-an-mcp-server-for</link><guid>https://worklore.dev/s/2026-09-27-everything-you-write-before-you-can-submit-an-mcp-server-for</guid><pubDate>Mon, 28 Sep 2026 01:29:35 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, app-review, privacy-policy, documentation, submission&lt;/p&gt;&lt;p&gt;# Everything you write before you can submit an MCP server for review&lt;/p&gt;&lt;p&gt;**This is a proposal, not a result.** I have submitted, been rejected once, fixed the reason, and resubmitted. The verdict on the second attempt is not in. I am writing it now because the useful part — the list, and the rule underneath it — does not depend on my outcome, and waiting would mean losing the details while they are exact.&lt;/p&gt;&lt;p&gt;Building the server is the part everyone talks about. Then you go to submit it to an app directory and discover the real work is a pile of prose: a privacy policy, terms, a public documentation URL, a domain-verification file, tool-by-tool justifications, example prompts, and credentials a stranger can sign in with.&lt;/p&gt;&lt;p&gt;None of it is hard. All of it is slow, and one property matters more than any individual document.&lt;/p&gt;&lt;p&gt;**They must describe the server as it runs today.** That is the entire lesson, and I learned it by failing. My privacy policy was written when the connector was four read-only tools with no sign-in. By review time it was six tools behind OAuth, two of which write on your behalf. The policy still said &amp;quot;read-only tools&amp;quot; and &amp;quot;no account is required&amp;quot;, and described future write tools that had shipped weeks earlier. The rejection was one sentence: the policy does not clearly disclose all data uses, and must reflect current tool inputs and outputs.&lt;/p&gt;&lt;p&gt;Entirely fair. I had shipped four significant changes and updated none of the documents that describe them. A reviewer reads your prose against your live endpoint, which is something you never do.&lt;/p&gt;&lt;p&gt;The second thing worth knowing: **the documents are fetched at review time, not uploaded.** A privacy policy is a URL. That cuts both ways — a fix needs no resubmission of anything but the form, and a drift needs no negligence, only time.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-27-everything-you-write-before-you-can-submit-an-mcp-server-for.md&lt;/p&gt;</description></item><item><title>My MCP server hid its own tool list behind a login</title><link>https://worklore.dev/s/2026-09-27-my-mcp-server-hid-its-own-tool-list-behind-a-login</link><guid>https://worklore.dev/s/2026-09-27-my-mcp-server-hid-its-own-tool-list-behind-a-login</guid><pubDate>Mon, 28 Sep 2026 01:16:38 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, discoverability, oauth, json-rpc, aws-lambda, directories&lt;/p&gt;&lt;p&gt;# My MCP server hid its own tool list behind a login&lt;/p&gt;&lt;p&gt;My MCP server needs sign-in, because two of its tools write things on your behalf. So I put the whole endpoint behind OAuth and moved on. That turned out to mean something I never decided: **you had to complete a sign-in flow before you could find out what the six tools were.**&lt;/p&gt;&lt;p&gt;I noticed from the outside. A directory had listed the server on its own, pulling everything from the official registry — the right name, the right description, the right URL, and **no tools at all**. Of course not: a directory that mirrors a registry has nobody to sign in as. Another directory did show all six, but only because their scanner connected to my live endpoint, stopped, printed an authorization link, and waited for me to click it by hand.&lt;/p&gt;&lt;p&gt;So my tool list was public on my website, public in the official registry, and public on that second directory — and a secret to anything that asked the server itself.&lt;/p&gt;&lt;p&gt;The fix I reached for first was the expensive one. The current protocol revision has a method whose whole job is this: one call that returns your supported versions, capabilities and identity, no session required. I had already filed the port, partly for this reason.&lt;/p&gt;&lt;p&gt;Then somebody measured it. An agent building a competing gateway — disclosed in their first line, which is why I read on — probed the streamable-HTTP servers in the official registry. Of the sixteen that answered at all, **one** implemented that method. Twelve returned &amp;quot;method not found&amp;quot;, exactly like mine. I checked the one that worked myself rather than taking their word, and it did.&lt;/p&gt;&lt;p&gt;That killed the plan. If twelve of sixteen servers answer an error, no directory can build on the method, so implementing it would make me the second server in the world to have it and would not put a single tool into that empty listing.&lt;/p&gt;&lt;p&gt;The cheap fix was sitting underneath: answer the handful of calls that only *describe* the server without a token, and keep everything that *does work* behind auth. About fifteen lines. The rule I settled on is the part worth stealing — **expose anonymously exactly what is already public elsewhere, and nothing else.** Tool names and descriptions were already on my website and in the registry, so gating them cost discovery and bought nothing. Story content and anything that writes stayed shut.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-27-my-mcp-server-hid-its-own-tool-list-behind-a-login.md&lt;/p&gt;</description></item><item><title>Collecting leads from a static site with Apps Script and a honeypot</title><link>https://worklore.dev/s/2026-09-25-collecting-leads-from-a-static-site-with-apps-script-and-a-h</link><guid>https://worklore.dev/s/2026-09-25-collecting-leads-from-a-static-site-with-apps-script-and-a-h</guid><pubDate>Sat, 26 Sep 2026 10:35:25 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · static-site, google-apps-script, google-sheets, forms, lead-capture, no-backend&lt;/p&gt;&lt;p&gt;# Collecting leads from a static site with Apps Script and a honeypot&lt;/p&gt;&lt;p&gt;I keep a small site for our family kennel. It is a static page: no server, no
database, no build step.&lt;/p&gt;&lt;p&gt;This year&amp;#x27;s litter sold out in August and the next one is a year or more away,
so the site had nothing left to sell while people kept arriving from search and
from Instagram and asking anyway. I wanted a waiting list.&lt;/p&gt;&lt;p&gt;The reflex at that point is to reach for infrastructure. An AWS account with a
Lambda and a table behind it. A Supabase project. A form service with a monthly
bill. I have used all three, and each one is a thing you then own: credentials
to rotate, a free tier that quietly changes, a dashboard to log into a year
later when you have forgotten how you wired it. For a kennel that produces a
litter every two years, that is not engineering. It is a subscription to future
confusion.&lt;/p&gt;&lt;p&gt;The answer was a spreadsheet, and I already had one. Google Apps Script turns
it into an endpoint: Extensions, Apps Script, about twenty lines with a
`doPost`, deploy it as a web app, and the sheet accepts POSTs, appends rows and
emails me. Nothing to create, nothing to pay, no credentials in the page. The
data and the endpoint live in the same place, which is what I actually care
about in eighteen months when someone from that list writes back.&lt;/p&gt;&lt;p&gt;Two practical notes. A hidden field catches bots without a captcha. And the
browser will not POST JSON to Apps Script directly, because it never answers the
CORS preflight; sending it as `text/plain` with `no-cors` makes it a simple
request and it goes through, at the cost of an opaque response. The sheet and
the email are the confirmation, not the fetch.&lt;/p&gt;&lt;p&gt;Simple things should stay simple.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-25-collecting-leads-from-a-static-site-with-apps-script-and-a-h.md&lt;/p&gt;</description></item><item><title>An MCP server for the price of one more endpoint</title><link>https://worklore.dev/s/2026-09-25-an-mcp-server-for-the-price-of-one-more-endpoint</link><guid>https://worklore.dev/s/2026-09-25-an-mcp-server-for-the-price-of-one-more-endpoint</guid><pubDate>Fri, 25 Sep 2026 13:49:25 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, aws-lambda, architecture, serverless, json-rpc, python&lt;/p&gt;&lt;p&gt;# An MCP server for the price of one more endpoint&lt;/p&gt;&lt;p&gt;Everything I read about shipping an MCP server assumed I was starting a new thing: a new repository, the official SDK, a container, its own deployment. I already had a backend. I wanted to know what it would actually cost to add MCP to it, rather than beside it.&lt;/p&gt;&lt;p&gt;It cost one route.&lt;/p&gt;&lt;p&gt;![Two ways to put an MCP server in production: a separate service with its own SDK, auth and deploy, versus one more route on the backend you already run](https://worklore.dev/images/mcp-one-more-endpoint.png)&lt;/p&gt;&lt;p&gt;The whole entry point is `if path == &amp;quot;/mcp&amp;quot;:` in the request handler that was already there. Over streamable HTTP, MCP is JSON-RPC in a POST body — a client asks the server to introduce itself, asks for the tool list, then calls tools one at a time. Those are dictionaries in and dictionaries out. No framework is required to answer them, and I didn&amp;#x27;t add one: the endpoint is standard library plus `boto3`, which the Lambda runtime already ships. **Zero new dependencies.**&lt;/p&gt;&lt;p&gt;What that bought, by not existing: no second place for users to sign in, no separate deploy, no new domain or TLS, no duplicated data layer, and no dependency tree to keep current. The tools read the same DynamoDB table the public API reads, and reuse the scanner the site already vendored. One function, 256 MB, 15-second timeout, which was already provisioned and mostly idle. The marginal cost is pennies a month.&lt;/p&gt;&lt;p&gt;I want to be honest about which part was actually expensive, because it wasn&amp;#x27;t the protocol. The MCP endpoint is about 770 lines and most of it is tool descriptions and schemas. The OAuth 2.1 authorization server next to it is 205 lines that took days, because that is real security surface. The protocol was cheap. Being allowed to write on someone&amp;#x27;s behalf was not.&lt;/p&gt;&lt;p&gt;Where this shape is still leaking, honestly: the endpoint reads through the existing backend, so the data layer is genuinely shared — but the *rules* are not. The matching in my search tool and the ranking in my suggest tool live in the MCP module and nowhere else, while the website searches client-side in JavaScript. That is two implementations of the same idea in two languages, and the MCP module has quietly stopped being only a bridge. The fix is to pull the rules into one module both sides call, and it is the next thing I will do — a bridge should translate a protocol, not own behaviour.&lt;/p&gt;&lt;p&gt;And this is the right shape only because the tools mostly wrap data the backend already serves, and the traffic is bursty and idle most of the time. If your tools need a different runtime, long-running work, or a GPU, a separate service is the correct answer and this story does not apply to you.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-25-an-mcp-server-for-the-price-of-one-more-endpoint.md&lt;/p&gt;</description></item><item><title>Your MCP server is one URL — getting per-tool, per-user analytics anyway</title><link>https://worklore.dev/s/2026-09-23-your-mcp-server-is-one-url-getting-per-tool-per-user-analyti</link><guid>https://worklore.dev/s/2026-09-23-your-mcp-server-is-one-url-getting-per-tool-per-user-analyti</guid><pubDate>Wed, 23 Sep 2026 19:47:06 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, observability, structured-logging, cloudwatch, aws-lambda, analytics&lt;/p&gt;&lt;p&gt;# Your MCP server is one URL — getting per-tool, per-user analytics anyway&lt;/p&gt;&lt;p&gt;An MCP server is a single endpoint that speaks JSON-RPC. Everything arrives as `POST /mcp`. So the access log you get for free is a column of identical lines: same path, same method, same 200. Which tool ran, who ran it, in what order, whether it worked — none of it is there. You have a service with six operations and a log that can&amp;#x27;t tell them apart.&lt;/p&gt;&lt;p&gt;The fix is one structured JSON line per call, emitted in the dispatcher rather than in each handler, so no tool can forget to log. Mine carries: a timestamp and epoch-ms for ordering, the API Gateway request id, the authenticated handle, the client&amp;#x27;s user-agent, the method, the tool name, ok/error, latency, and a deliberately trimmed summary of the input and output. Trimmed matters: `check_capability` logs `has_url` and `text_len` but never the scanned text; `publish_story` logs the title and body length but never the body. You want enough to judge behaviour and nothing you&amp;#x27;d regret keeping.&lt;/p&gt;&lt;p&gt;Then I got two surprises.&lt;/p&gt;&lt;p&gt;**The session key I designed around is empty.** I logged the client-provided `Mcp-Session-Id` as the thing that would group a whole conversation. Across 130 calls in three days, not one client sent it. Conversation grouping, as designed, does not work.&lt;/p&gt;&lt;p&gt;The recovery is that authentication already identifies the caller. Group by handle plus client, start a new group after 15 minutes of silence, sort by timestamp, and you get sequences back without changing any code. It can&amp;#x27;t separate two concurrent conversations by the same person — but nobody is sending session ids anyway, so nothing is actually lost.&lt;/p&gt;&lt;p&gt;**And the ordering immediately found a bug I was blind to.**&lt;/p&gt;&lt;p&gt;![Three days of MCP calls grouped by authenticated identity, showing failed server/discover calls in red at the head of each session](https://worklore.dev/images/mcp-call-ordering.png)&lt;/p&gt;&lt;p&gt;A client was calling `server/discover` — a method from a newer protocol revision than my server implements — getting `method not found`, and silently falling back to the old handshake. Five times over two days. Nothing looked broken. A single failed line reads as noise; in sequence it is obviously a version negotiation failing over.&lt;/p&gt;&lt;p&gt;The same sequences told me the connector reconnects constantly, costs five calls each time, and has never once invoked a tool. &amp;quot;Connected&amp;quot; and &amp;quot;used&amp;quot; turned out to be entirely different numbers.&lt;/p&gt;&lt;p&gt;I instrumented a server almost nobody uses, and it paid for itself the same day.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-23-your-mcp-server-is-one-url-getting-per-tool-per-user-analyti.md&lt;/p&gt;</description></item><item><title>Submitting an MCP server to the directories: one CLI, one GitHub issue, three traps</title><link>https://worklore.dev/s/2026-09-23-submitting-an-mcp-server-to-the-directories-one-cli-one-gith</link><guid>https://worklore.dev/s/2026-09-23-submitting-an-mcp-server-to-the-directories-one-cli-one-gith</guid><pubDate>Wed, 23 Sep 2026 16:44:34 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, mcp-directories, smithery, discoverability, oauth, publishing&lt;/p&gt;&lt;p&gt;# Submitting an MCP server to the directories: one CLI, one GitHub issue, three traps&lt;/p&gt;&lt;p&gt;I got my MCP server into the official MCP Registry and assumed distribution was handled. Eight days later I searched for it in every browsable MCP directory I could find, and got nothing. The registry is a database that other tools *may* read. The places people actually browse each want their own submission, and none of them came looking.&lt;/p&gt;&lt;p&gt;So I did them one at a time. Three traps were worth the trip.&lt;/p&gt;&lt;p&gt;**Smithery publishes from a CLI.** You claim a namespace, then publish your URL, and their scanner connects to your live endpoint and enumerates your tools. Because my server requires sign-in, the scan stopped and printed a one-time authorization link. I had started the publish in a background shell, so that process was long gone by the time I clicked it. The documented recovery, `--resume`, answered `400 {&amp;quot;error&amp;quot;:&amp;quot;Deployment is not in AUTH_REQUIRED state&amp;quot;}`. The real fix was mundane: publish again. Smithery had kept the authorization, and the new scan walked straight through — `[scan] Capabilities found: 6 tools, 25 resources`.&lt;/p&gt;&lt;p&gt;**My listing had no description.** I assumed the directory would read the server&amp;#x27;s own metadata, so I added MCP&amp;#x27;s `instructions` field to my `initialize` response and re-published. It changed nothing. The blurb and the icon are set by hand in their dashboard. The `instructions` work wasn&amp;#x27;t wasted — real clients do use it to brief their agent — it just isn&amp;#x27;t where a directory gets its description.&lt;/p&gt;&lt;p&gt;**Their registry API lied to me.** While debugging the missing description I kept polling `registry.smithery.ai`, which returned an entry with no tools and no URL, while the actual web page was complete and correct the entire time. I burned twenty minutes on a phantom because I trusted the API over the page a human sees.&lt;/p&gt;&lt;p&gt;mcp.so was the easy one: no API, no form — the submission is a GitHub issue on their repo.&lt;/p&gt;&lt;p&gt;**Two days later I had to correct myself.** I went to submit to the last two directories and found there was nothing to submit. One had already listed the server on its own — name, description, endpoint, auth, all pulled from the official registry, dated that same day. The other had paused submissions entirely, with a note saying to publish to the official registry because they pick it up automatically when they reopen.&lt;/p&gt;&lt;p&gt;So &amp;quot;each one wants its own submission&amp;quot; was half wrong, and the half that was right has a pattern underneath it. **The directories that made me submit by hand are the ones that connect to your live endpoint**; the ones that read the registry need nothing from you, because the registry already holds what they display. Before writing a submission, check whether the directory is a scanner or a mirror. For a mirror you are already done.&lt;/p&gt;&lt;p&gt;One tell that it is a mirror: its listing shows your description and URL but **no tools**. It never connected — and if your endpoint is behind sign-in, as mine is, it cannot.&lt;/p&gt;&lt;p&gt;The finished listing scored 98/100. The missing two points are for tool names forming a dotted tree, like `stories.search`. I&amp;#x27;m not taking them. OpenAI&amp;#x27;s function-name pattern is `^[a-zA-Z0-9_-]{1,64}$` — dots are rejected outright, and Anthropic&amp;#x27;s is the same shape — so scoring those two points would break the exact clients the listing exists to reach. Sometimes the scorecard is wrong, and the useful skill is knowing which criterion to fail on purpose.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-23-submitting-an-mcp-server-to-the-directories-one-cli-one-gith.md&lt;/p&gt;</description></item><item><title>Getting into the MCP Registry: server.json, a read:org token, and why listed ≠ discoverable</title><link>https://worklore.dev/s/2026-09-23-getting-into-the-mcp-registry-server-json-a-read-org-token-a</link><guid>https://worklore.dev/s/2026-09-23-getting-into-the-mcp-registry-server-json-a-read-org-token-a</guid><pubDate>Wed, 23 Sep 2026 14:54:45 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, mcp-registry, publishing, github-oauth, discoverability, cli&lt;/p&gt;&lt;p&gt;# Getting into the MCP Registry: server.json, a read:org token, and why listed ≠ discoverable&lt;/p&gt;&lt;p&gt;Publishing an MCP server to the official registry looked like a five-minute job. It was — after two walls.&lt;/p&gt;&lt;p&gt;The first: `mcp-publisher` rejected my server.json. Two small requirements that are easy to miss — the file needs a `$schema` field, and the description has to be 100 characters or fewer. Mine was longer, and the error did not say by how much.&lt;/p&gt;&lt;p&gt;The second cost me longer. Publishing under an organization namespace returned a 403 telling me I could only publish under my personal namespace. I assumed it was an org-visibility problem and made my membership public. That changed nothing — a red herring. The real cause was the token: publishing under an org namespace needs one carrying the `read:org` scope, and the token I had authenticated with did not have it. The fix was a single line — authenticate with the GitHub CLI&amp;#x27;s token, which already has that scope. It published immediately.&lt;/p&gt;&lt;p&gt;The part worth knowing afterwards: being in the official registry is not the same as being findable. Eight days after publishing to the registry, my server was live and `active` in the registry API — and still returned zero results on every browsable directory people actually search: mcp.so, Glama, Smithery, PulseMCP. Some import the registry on their own multi-day cadence; some are hand-reviewed and never auto-add. Getting into the registry gets you into a database; it does not get you into the places people browse. Each of those wants its own submission.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-23-getting-into-the-mcp-registry-server-json-a-read-org-token-a.md&lt;/p&gt;</description></item><item><title>App review wants test credentials, but my app only had Google sign-in</title><link>https://worklore.dev/s/2026-09-23-app-review-wants-test-credentials-but-my-app-only-had-google</link><guid>https://worklore.dev/s/2026-09-23-app-review-wants-test-credentials-but-my-app-only-had-google</guid><pubDate>Wed, 23 Sep 2026 14:47:47 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · app-review, oauth, test-credentials, mcp, sandbox, authentication&lt;/p&gt;&lt;p&gt;# App review wants test credentials, but my app only had Google sign-in&lt;/p&gt;&lt;p&gt;I was one field away from submitting my MCP server to an app directory when I hit a wall I had not planned for: test credentials. The rules are strict and sensible — they must work immediately, with no MFA, no SMS, no emailed codes or magic links, and you may not assume the reviewer has a mailbox, a phone, or a social account.&lt;/p&gt;&lt;p&gt;My app had exactly one way in: sign in with GitHub or Google. Every tool needed a signed-in user. So a reviewer literally could not open it — social login is precisely what the rules exclude.&lt;/p&gt;&lt;p&gt;The fix was a single sandboxed demo account: one username and password, wired into the OAuth consent I already had, so the reviewer signs in with the credentials from the form, clicks Allow, and every tool works as that account. Real users still sign in with GitHub or Google; exactly one account has a password, and the secret lives in a secrets manager, never in the repo.&lt;/p&gt;&lt;p&gt;The part I almost forgot: the reviewer will write. So the demo account&amp;#x27;s writes are sandboxed — publishing creates a record that never reaches the public feed, and reporting a reproduction returns a success the reviewer can see while touching no real counts. They can exercise every tool, including the write ones, without leaving a mark on production.&lt;/p&gt;&lt;p&gt;Then I walked the whole reviewer chain myself: password login, client registration, consent, token exchange, tool call. That last step is the one worth doing — it is the chain the reviewer actually walks.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-23-app-review-wants-test-credentials-but-my-app-only-had-google.md&lt;/p&gt;</description></item><item><title>An MCP server that signs users in: OAuth 2.1 on AWS Lambda, start to token</title><link>https://worklore.dev/s/2026-09-23-an-mcp-server-that-signs-users-in-oauth-2-1-on-aws-lambda-st</link><guid>https://worklore.dev/s/2026-09-23-an-mcp-server-that-signs-users-in-oauth-2-1-on-aws-lambda-st</guid><pubDate>Wed, 23 Sep 2026 14:39:06 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · mcp, oauth, aws-lambda, api-gateway, pkce, authentication&lt;/p&gt;&lt;p&gt;# An MCP server that signs users in: OAuth 2.1 on AWS Lambda, start to token&lt;/p&gt;&lt;p&gt;My MCP server had read tools anyone could call, but the write tools — recording that a story was reproduced — had to act as a specific, signed-in person. So it needed auth. I did not want to bolt on Auth0; I wanted the MCP client (Claude, ChatGPT) to run the standard OAuth flow against my own server.&lt;/p&gt;&lt;p&gt;It turns out an MCP server that requires auth just has to be a small OAuth 2.1 authorization server: publish two discovery documents, support dynamic client registration (the client registers itself), require PKCE, and serve an authorization-code flow with a consent screen. I reused the site&amp;#x27;s existing session for consent, so a user who is already signed in just clicks Allow.&lt;/p&gt;&lt;p&gt;The wall I hit: my token endpoint kept returning `unsupported_grant_type`, even though the client was clearly sending `grant_type=authorization_code`. The body was there — but empty when I parsed it. The cause: on AWS API Gateway (HTTP API), a form-urlencoded body arrives base64-encoded, with `isBase64Encoded: true`, and I was parsing the still-encoded string. Decoding it first fixed it instantly.&lt;/p&gt;&lt;p&gt;After that the whole chain worked: the client registers, the user consents, the code exchanges for a bearer token, and every tool call acts as that person. No identity provider, no passwords — just the spec.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-23-an-mcp-server-that-signs-users-in-oauth-2-1-on-aws-lambda-st.md&lt;/p&gt;</description></item><item><title>Checking thirty Flutter screens against Figma without opening the app</title><link>https://worklore.dev/s/2026-09-23-checking-thirty-flutter-screens-against-figma-without-openin</link><guid>https://worklore.dev/s/2026-09-23-checking-thirty-flutter-screens-against-figma-without-openin</guid><pubDate>Wed, 23 Sep 2026 13:14:36 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · flutter, figma, adb, design-review, screenshots, golden-tests&lt;/p&gt;&lt;p&gt;# Checking thirty Flutter screens against Figma without opening the app&lt;/p&gt;&lt;p&gt;I had a Flutter app with about thirty screens built from a Figma file and one question I could not answer quickly: does every screen actually look like the design? Golden tests lock the current rendering, but they don&amp;#x27;t tell you whether that rendering matches Figma. Clicking through the whole application flow on a phone every time something changed was the alternative, and I stopped doing it.&lt;/p&gt;&lt;p&gt;This is a one-time job, not a routine. The comparison is needed once, when the app is first built from the design, to confirm that what the tests will guard is actually right. After that pass the golden tests do the work: every approved screen is locked as an image, and any later change that moves a pixel fails the test suite before it reaches a device. So the story is really about preparing the goldens to be trustworthy.&lt;/p&gt;&lt;p&gt;I asked my agent for a first-run routine: take the original frames from Figma, take the same screens from the real device, and produce one image per screen with the design on the left and the app on the right, so I can review them at my own pace.&lt;/p&gt;&lt;p&gt;What we ended up with is small: a JSON manifest (screen name, Figma node id, fallback golden image, title), a script that downloads the Figma frames at 1x through the REST API (the agent can also export them through the Figma MCP, and screens designed in a Claude Design artifact drop into the same folder), an adb capture script, and a Dart compositor using the `image` package that scales both sides to the design width, writes a sheet per screen, and an HTML index to scroll through.&lt;/p&gt;&lt;p&gt;The friction was almost all on the phone side. The agent drove the app over adb to reach each screen, and three things bit repeatedly: `adb shell input text` drops spaces unless you write `%s`; the Back key pops the current route when the keyboard is already hidden, so &amp;quot;press Back to dismiss the keyboard&amp;quot; silently threw us out of a form; and a tap during a cold-start jank registers as a long press. The first comparison run also confused me: some sheets showed a back button and lighter text, others didn&amp;#x27;t. That was the fallback in action. Golden test images are rendered at 1x without a navigator, so they look heavier and lack the back chevron; device captures don&amp;#x27;t. The sheet header now names the source.&lt;/p&gt;&lt;p&gt;The routine paid for itself on the first pass. Two layout bugs were obvious side by side: a decorative corner ribbon covering a status badge, and a card with a hard shadow band under its labels. A third bug hid in the mock backend, a raw-string regex ending in `\$` that rejected every ID. Once those were fixed and the sheets approved, the goldens were re-recorded and the review moved into the test suite for good.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-23-checking-thirty-flutter-screens-against-figma-without-openin.md&lt;/p&gt;</description></item><item><title>My own App Store screenshot generator: simctl, dart-define, three languages</title><link>https://worklore.dev/s/2026-09-19-my-own-app-store-screenshot-generator-simctl-dart-define-thr</link><guid>https://worklore.dev/s/2026-09-19-my-own-app-store-screenshot-generator-simctl-dart-define-thr</guid><pubDate>Mon, 21 Sep 2026 18:53:33 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · app-store, flutter, ios-simulator, screenshots, localization&lt;/p&gt;&lt;p&gt;# My own App Store screenshot generator: simctl, dart-define, three languages&lt;/p&gt;&lt;p&gt;I had to put a Flutter app on the App Store in three languages, with screenshots
showing real content — a walk recorded through a city, a running clock, a list of
past walks — not empty states. Design kept changing, so I wanted the whole set
re-shootable by one command.&lt;/p&gt;&lt;p&gt;The approach: **no separate screenshot app**. Same `main.dart`, same router, same
state stores — three compile-time flags decide what the app does at launch. One
seeds believable records into the very service the screens read from, one
fabricates a walk in progress with a ticking clock so no GPS is needed in the
simulator, and one is handed to the router as its initial location, so any screen
can be opened directly. `const bool.fromEnvironment` is a compile-time constant,
so none of it exists in a normal release build. Then `xcrun simctl` installs,
launches, screenshots, and switches the simulator&amp;#x27;s language between passes.&lt;/p&gt;&lt;p&gt;Two things cost me a rebuild. I shot on the newest simulator I had, iPhone 17 Pro
Max — 6.9&amp;quot;, 1320×2868 — and App Store Connect refused the whole set: it wants
1242×2688, 2688×1242, 1284×2778 or 2778×1284. An iPhone 13 Pro Max simulator
gives exactly 1284×2778. Then it demanded 13-inch iPad screenshots; the app
records a walk held in the hand, so instead of faking iPad art I set
`TARGETED_DEVICE_FAMILY = &amp;quot;1&amp;quot;` and the requirement vanished with the next build.&lt;/p&gt;&lt;p&gt;![Same screen, three languages](https://derivografias.yahhi.me/worklore/localized-app-store-screenshots.jpg)&lt;/p&gt;&lt;p&gt;Smaller traps: shots taken under ~12 seconds after launch came out blank, and a
stale simulator put a permission dialog over every frame until `xcrun simctl
erase`. I proved that one wasn&amp;#x27;t my code by building the already-shipped commit
and watching it do the same thing.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-19-my-own-app-store-screenshot-generator-simctl-dart-define-thr.md&lt;/p&gt;</description></item><item><title>Adding Google sign-in so non-developers can use your app</title><link>https://worklore.dev/s/2026-09-14-adding-google-sign-in-so-non-developers-can-use-your-app</link><guid>https://worklore.dev/s/2026-09-14-adding-google-sign-in-so-non-developers-can-use-your-app</guid><pubDate>Mon, 14 Sep 2026 19:58:27 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · oauth, google-sign-in, authentication, identity, web&lt;/p&gt;&lt;p&gt;# Adding Google sign-in so non-developers can use your app&lt;/p&gt;&lt;p&gt;My site had exactly one way in: GitHub. Perfect for developers and their agents
— but I started onboarding people who aren&amp;#x27;t developers, and asking a baker to
create a GitHub account just to save a favorite is absurd. They all have a Gmail.
So I added &amp;quot;Continue with Google.&amp;quot;&lt;/p&gt;&lt;p&gt;The web plumbing was the easy half. Two things actually cost time.&lt;/p&gt;&lt;p&gt;Identity. My database keyed every user by their GitHub username. Google users
don&amp;#x27;t have one, and I didn&amp;#x27;t want ugly URLs like /a/10982374. So on first Google
sign-in the person picks a worklore handle, and I map their Google account id to
it permanently. The new record types had to be filtered out of every listing so
they never show as broken cards — and one of them, a cross-account favorites
merge in localStorage, bit me in testing: a new user inherited the previous
user&amp;#x27;s saved list.&lt;/p&gt;&lt;p&gt;The Google Console. The docs make it sound like &amp;quot;create an OAuth client.&amp;quot; In
practice you also fill a Branding screen (logo, home page, and LIVE privacy +
terms URLs), add your authorized domain, and — the step nobody mentions — flip
the consent screen from Testing to Production, past a &amp;quot;send for verification&amp;quot;
button you can ignore as long as you only request the basic openid/email/profile
scopes. Miss any of these and real users get &amp;quot;access blocked.&amp;quot;&lt;/p&gt;&lt;p&gt;An hour of work, and now anyone with a Gmail can sign in.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-14-adding-google-sign-in-so-non-developers-can-use-your-app.md&lt;/p&gt;</description></item><item><title>Make your stories work: turn a bare photo into a post people can find</title><link>https://worklore.dev/s/2026-09-14-make-your-stories-work-turn-a-bare-photo-into-a-post-people-</link><guid>https://worklore.dev/s/2026-09-14-make-your-stories-work-turn-a-bare-photo-into-a-post-people-</guid><pubDate>Mon, 14 Sep 2026 17:43:52 +0000</pubDate><description>&lt;p&gt;&lt;b&gt;[SUCCESS]&lt;/b&gt; by Yahhi · instagram, social-media, ai-writing, discoverability, engagement&lt;/p&gt;&lt;p&gt;# Make your stories work: turn a bare photo into a post people can find&lt;/p&gt;&lt;p&gt;I keep a small Instagram for my dogs — Samoyeds, the white &amp;quot;dogs of the north.&amp;quot;
For a long time I posted the easy way: a nice photo, maybe a heart, and that was
it. The people who already followed me left a like, and then the post disappeared.
Nobody new ever found us.&lt;/p&gt;&lt;p&gt;This week a puppy I had raised, Brisa, came back to stay for five days while her
family was travelling. She walked in, recognised the house, recognised her mother,
and lay down beside her as if she&amp;#x27;d never left. I wanted that moment to actually
reach people — not sit there as one more quiet photo.&lt;/p&gt;&lt;p&gt;So I changed two small things, and neither took more than a couple of minutes.&lt;/p&gt;&lt;p&gt;First, the words. A photo tells Instagram nothing on its own. I gave an AI the
picture plus the things only I know — that these are Samoyeds, that Brisa was born
here in Miramar, that this was a mother and daughter reunited — and asked it to
write the caption using the words people actually search: &amp;quot;samoyedo&amp;quot;, &amp;quot;cachorros&amp;quot;,
&amp;quot;Miramar&amp;quot;. Not &amp;quot;qué lindos&amp;quot;.&lt;/p&gt;&lt;p&gt;Second, I made the story do work instead of just existing. I added a line of text,
an emoji slider asking &amp;quot;¿Se parecen, madre e hija?&amp;quot;, and a link back to the post.
The slider is one drag — people answer without thinking, and each answer tells
Instagram the post is worth showing to someone new.&lt;/p&gt;&lt;p&gt;For the first time it felt like the post was reaching outward, not just sitting
still.&lt;/p&gt;&lt;p&gt;Reproduce with your agent — always fetch live, never from this feed: https://worklore.dev/s/2026-09-14-make-your-stories-work-turn-a-bare-photo-into-a-post-people-.md&lt;/p&gt;</description></item></channel></rss>