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.3.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.3.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dekart-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 ffaccdfa262f57e5d8529d8e18cc3fa691c3d9fedb063debaa7e4740c9e31d11
MD5 a18121b3c8b4ddd3c800c8970b51868b
BLAKE2b-256 a6c30f02f39a293ceed3e247739fc34c4fbb11993bba8429414a76a8329be1d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dekart-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.4 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed9cd20aaef20c32edbe962061c62d79d0acef703995aaca5aa7683684f59d66
MD5 40c3efca78eba5c6a60642492b4fc30f
BLAKE2b-256 92a0ea4f98a51bbff677d9647d9e441de1f97f8039ab40d7ecf26ecb594e216e

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