Skip to main content

Dekart CLI for auth, MCP tool discovery, calls, and file upload flows.

Project description

dekart-cli

Standalone Dekart CLI.

Install

pip install -e .

After install, command is:

dekart --help

Config and auth

dekart config --url http://localhost:3000
dekart init

Config and token are stored under:

  • ~/.config/dekart/config.json
  • ~/.config/dekart/token.json

After successful dekart init, the CLI can optionally install local snapshot capability. You can control this behavior with:

dekart init --local-snapshot ask      # default
dekart init --local-snapshot install  # install right after auth
dekart init --local-snapshot skip     # skip prompt/install

MCP tools

dekart tools --json
dekart call --name create_report --args '{}'
dekart upload-file --file /tmp/result.csv --file-id <file-id>

You can also stream upload content from stdin:

bq query --use_legacy_sql=false --format=csv 'SELECT 1 AS x' \
  | dekart upload-file --stdin --file-id <file-id> --name result.csv --mime-type text/csv

--stdin is staged to a temporary file and uploaded in parts, so it avoids loading the full stream into memory. Total-size limits are enforced by Dekart server configuration.

Snapshots

Render report PNG snapshots for agent verification:

dekart snapshot --report-id <report-id> --out ./snapshot.png

dekart snapshot uses local headless rendering when local snapshot is enabled. It uses remote snapshot only when local snapshot is disabled (or when you pass --remote-only).

Manage local snapshot capability:

dekart snapshot-local status
dekart snapshot-local install
dekart snapshot-local uninstall

Optional full browser cleanup on uninstall:

dekart snapshot-local uninstall --purge

Local release hook (main branch)

Install repo hooks:

./scripts/install_hooks.sh

On main, pre-push will:

  1. Bump minor version in pyproject.toml and commit it.
  2. Build and publish to PyPI with twine.
  3. Stop the first push intentionally.

Then run push again:

git push origin HEAD
git push origin HEAD

Auth:

  • If PYPI_API_TOKEN is set, hook uses token auth.
  • Otherwise it uses local Twine auth (~/.pypirc, keyring, or prompt).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dekart-0.2.0.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dekart-0.2.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file dekart-0.2.0.tar.gz.

File metadata

  • Download URL: dekart-0.2.0.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dekart-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8295bfd3741a477b65ee916b381045b71b1b6479c5c8cf9fb6a0a2767e1d767f
MD5 a1fc7febea72daa54f397ffbb90393b6
BLAKE2b-256 28bb1c778ae4f4730c21f6d522407cd77cfc8c5b97aac5e3b4b2eca87fafd0e7

See more details on using hashes here.

File details

Details for the file dekart-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dekart-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dekart-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28c7b19dd7ece24c0885649c261780a05ca61c3c41b7aea0b59b49e49ab77d07
MD5 23ddadad7e46a31917a175f6fca6b4ad
BLAKE2b-256 e3a9ec81b63eaf8d2fce2af2e70e8714fd4ad93c4110c49f7e1055c65623a57e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page