CLI for uploading dives
Youval Bronicki
I've been using a simple CLI to upload dives to MotherDuck. It's way faster than using the MCP, because there's no need to waste tokens on shuttling the dive content as an MCP parameter .
It also lets me easily switch between accounts via an API token (the MCP can only connect to a single account, at least in Claude)
I believe this could be useful as a bundled/official feature (possibly delivered as a script inside a skill)
Usage:
uv run python -m src.viz.md_cli query <sql>
uv run python -m src.viz.md_cli list_dives
uv run python -m src.viz.md_cli read_dive <title-or-uuid>
uv run python -m src.viz.md_cli save_dive <title> <file.tsx>
uv run python -m src.viz.md_cli update_dive <title-or-uuid> <file.tsx>
uv run python -m src.viz.md_cli delete_dive <title-or-uuid>