The weak spot in the loop
I have my own app for daily records, and three of us work with it: me, Claude Code on the Mac, and Claude AI on my phone. One spot kept snagging, though. Claude AI on the phone would prepare an entry, from a photo for example, and hand back a block of data, I copied it into Claude Code, and only then did Claude Code write it into the app. Three windows and two copy-pastes for every entry.
What came out
The app (SvelteKit on Vercel, Turso database) got its own MCP server. Claude AI has it connected on claude.ai as a connector and reaches into the app directly:
- reads a day's records and an overview over a chosen number of days;
- writes new records and notes for the day;
- deletes wrong records by id;
- when the watch data is stale, sends me a push notification, and tapping it triggers a sync on the iPhone.
That is ten tools, all with Czech names.
How it is built
- No SDK, just plain JSON-RPC over Streamable HTTP in a single file. The server handles initialize, tools/list, tools/call and ping, and acknowledges notifications with a 202.
- The code has 428 tests. Every change went the same way: tests, build, push, deploy, and a smoke test against production.
What the first day in use showed
I tried it for real right away, and Claude AI reported what did not fit:
- I made the first write into a note on purpose, not into the numbers, so that nothing made up could end up in the data. It went through.
- Claude AI noticed that the time of an entry was off by an hour. The data was fine; only the technical storage times were shifted, because the app keeps them in UTC and converts them itself. The connector now sends them in Prague time.
- Claude AI reported that a value I do not record every day was missing from the day's overview. A day now always carries its latest value, with its date.
- I wanted to dictate in plain words. The connector got a rule: whatever has its own field goes there, and the rest is appended to the day's note with a timestamp. Nothing is overwritten or lost.
- Only the iPhone can trigger a sync from the watch, not the server. So Claude AI sends a notification instead, and I tap it.
- Finally I had deletion added and verified it on three test records. Before deleting, Claude Code checked that they really were the test ones.
Why it matters
An entry into the app is now one message on the phone instead of three windows and two copy-pastes. The server is a single file without an SDK, and both sides, Claude AI on the phone and Claude Code on the Mac, work on the same data. The pattern pays off wherever I repeatedly move the same kind of data between two tools I control.
Related. How the agent remembers between sessions is in the piece on persistent memory without a vector database, and how I isolate agent jobs from prompt injection is in the one on isolating autonomous jobs.