Dekart CLI for auth, MCP tool discovery, calls, and file upload flows.
Project description
dekart-cli
Dekart MCP wrapper for your AI agent to create maps from SQL query results.
Works best with the geosql skill — it writes the SQL, this CLI renders the map.
Works with any Dekart instance:
- Dekart Cloud (SaaS, default)
- Self-hosted (your own URL)
- Localhost (
http://localhost:8080)
Init
pip install dekart
dekart init
dekart init walks you through:
- Picking the instance (Cloud / self-hosted / localhost).
- Authorizing the CLI in your browser.
- Optionally enabling local snapshots.
To switch instance later:
dekart config --url <your-url>
dekart init
Config and token: ~/.config/dekart/.
Enable local snapshot
Local headless renderer for fast PNG snapshots without a round-trip to the server:
dekart snapshot-local install
Manage:
dekart snapshot-local status
dekart snapshot-local uninstall # remove renderer
dekart snapshot-local uninstall --purge # also remove its browser cache
When local snapshot is enabled, dekart snapshot --report-id <id> --out ./snap.png uses it automatically. Pass --remote-only to force server-side rendering.
Run Prepared Query And Download Rows
Run an already-prepared Dekart query, wait for the job, and save result rows:
dekart run-query --query-id <query-id> --out-dir ./results --wait --json
Queries wait by default; use --no-wait only when you expect an already-finished job. Prepare the query separately with dekart call --name create_query and dekart call --name update_query, then use dekart run-query to run, poll, and download the result. Use --json to return dataset_id, query_id, job_id, terminal status, and result_file metadata. Empty downloads fail with empty result (metadata/SHOW statement?).
Resolve a report URL explicitly from a report id:
dekart report-url --report-id <report-id>
dekart report-url --report-id <report-id> --json
Preview Downloaded Rows
Preview a CSV or parquet file produced by dekart run-query:
dekart preview ./results/<result-file>.parquet --limit 20
dekart preview ./results/<result-file>.parquet --schema
Preview output is tab-separated. Parquet and CSV previewing use the bundled DuckDB Python dependency.
Links
- Dekart: dekart.xyz
- geosql skill: github.com/dekart-xyz/geosql
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dekart-0.10.0.tar.gz.
File metadata
- Download URL: dekart-0.10.0.tar.gz
- Upload date:
- Size: 33.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc675f23abdb7e388fb36d3feb2867a5f999384a95ee56f8b57800a9068f1ab
|
|
| MD5 |
f932ae8af5667265345dc28a82cb0c72
|
|
| BLAKE2b-256 |
29f0bc77869e182d5cbb076dc1648cafd2e84a2181009c54391d13c53006653e
|
File details
Details for the file dekart-0.10.0-py3-none-any.whl.
File metadata
- Download URL: dekart-0.10.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
109c1e660033c5c33a35ea43aac75aa808055ed63ca7c089821c221e2065bd7c
|
|
| MD5 |
a2ff864a94c5fa432f29c87791204c18
|
|
| BLAKE2b-256 |
9c08faccb4755f118a3cab13966ee4e45d6277386dd7f00edf2d28b4ea7d810d
|