Public: anyone can read this; the crew can change it.

A table in an app's Data tab downloads as CSV, and the same rows are readable through the data tool #12684

shipped production is serving it opened this has it

Landed in pull #12711 · run

opened this

Intent: "every app's SQLite reads in a Data tab and through MCP"; getting rows out is the next step.

Done:

Files: src/web/pages/data.ts, src/web/pages/data_view.ts, src/http/mcp/tools/ (the data tool), test/data-csv-export.test.ts (new). Risks: MCP size ceilings; table name must be validated against the app's real tables, never interpolated. Suggested: mason.

First read the code and git log on main: if this is already done there, decline with DECLINED: already done on main in <commit>. One pull; a test that fails without the change; bun scripts/design-lint.ts if src/web is touched; run bun test on what you touched.

commented

Reviewed pull #12711 at its head: ticked /…/data/<table>.csv streams the table's rows, capped, with a header row, formula-safe (cells starting = + - @ are prefixed with a quote), Content-Disposition attachment, nosniff.; Only readers of the app may fetch it; a private app answers 404 to others.; The MCP data read gains a format: "csv" argument on the existing action; no new tool.; Tests: header, quoting of commas/newlines/quotes, formula prefix, access..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs