Repository navigation
v4.18.0 — Assistants read your files over MCP
An assistant can read your files over MCP. Claude Code, or any client that speaks the Model Context Protocol over HTTP and signs in with OAuth, connects to https://cloud-storage-app-ionic-v0.vercel.app/mcp and gets three tools, each read-only: search_files finds files by meaning, ask_files answers a question from what they say with its sources, and list_files lists them by folder. (ADR 0020: #301, #302, #303, #304, #305, #306)
claude mcp add --transport http --scope user cloud-storage https://cloud-storage-app-ionic-v0.vercel.app/mcp-
You let it in, and you take it back. The assistant sends you to the app's page "Connect an assistant", which names it and says what it will and will not be able to do. A demo account can only deny. The account page lists the assistants let in, and Revoke stops one at once.
-
Its token only reads. Migration 024 keeps the token from writing files, folders or Storage, and from reading the profile or the share links. Every route but
/mcprefuses it. -
Its token is no session to Supabase Auth. This was found by trying a real assistant on a local Supabase, before the OAuth server was turned on. The token Supabase issues an assistant was the person's whole session at Auth's own endpoints: it set the account's password and signed in with it, and approved another assistant in the person's name. Migration 025's Custom Access Token hook gives such a token a session id Auth has none for, so Auth refuses it, while the database still reads it.
/mcpchecks the real session in the database instead, so a revoked assistant is refused on its next request rather than an hour later. -
Signing out of the app leaves your assistants connected. Supabase's default sign-out ended every session of the account, the assistants' included. It now ends only this browser's session. A new password still ends every session.
-
Checked in production on 2026-11-27. First a probe assistant:
- Auth answered
403 session_not_foundto six endpoints; /mcplisted the three tools, and the 15 files were read;- the assistant stayed connected after the person signed out;
- after Revoke, the database held none of its sessions.
Then Claude Code connected, and chose
list_files,search_filesandask_filesfor the three questions it was asked. - Auth answered
-
Which tool a model picks is measured. In
evals/, 60 requests in English, Spanish and Russian, graded by rules. The model is told what the server says, word for word. On Workers AI:mistral-small-3.1chose right 59 times;llama-3.3-70bchose right 49 times, and called a tool for all 9 requests no tool fits.
What it costs: the first load is 379.0 kB, 0.3 kB over 4.17.1's. All assets are 482.7 kB, 3.8 kB more, for the consent page and the account page's assistants; the budget for all assets went from 480 to 490. The app's unit tests went from 2,126 to 2,222, and the evals' to 210.