Skip to main content

Verify Token-Cut API integration from the terminal (no repo clone required)

Project description

token-cut-cli

Public client for Token-Cut. Your proprietary API stays private; customers only get this thin CLI + MCP shim.

Business model

What Public? Paid?
This PyPI package (token-cut-cli) Yes Free to install
cc_live_… API key Yes (your Stripe plans)
Optimization + repo index on your API Private server Metered per key

The CLI cannot optimize without a valid key against your deployment.

Install

pip install token-cut-cli

Not on PyPI yet? Maintainer runs ./scripts/publish-cli.sh from the repo root.
Until then:

cd cli && pip install .

Verify integration (~1 min)

export TOKEN_CUT_API_URL='https://www.token-cut.com'
export TOKEN_CUT_API_KEY='cc_live_…'   # full key from Connect — not the prefix
token-cut verify

Shows token count and estimated cost before vs after for:

  1. A short auth/optimize check (no repo graph)
  2. A repo-graph optimize on a small public sample repo

Calls https://www.token-cut.com (override with TOKEN_CUT_API_URL).

IDE setup (Cursor · Claude · Copilot)

export TOKEN_CUT_API_URL='https://www.token-cut.com'
export TOKEN_CUT_API_KEY='cc_live_…'
token-cut mcp-config > ~/.cursor/mcp.json
# merge if file already exists — restart IDE

Uses python -m token_cut_cli.mcp_server from the installed package (no git clone).

Commands

Command Purpose
token-cut verify Test key + optimize + graph on a public sample repo
token-cut optimize "…" One-off optimize JSON
token-cut mcp-config Print MCP config for IDEs
token-cut-mcp MCP stdio server (called by IDE)

Publish (maintainers)

See ../docs/PYPI_PUBLISH.md.

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

token_cut_cli-0.1.7.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

token_cut_cli-0.1.7-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file token_cut_cli-0.1.7.tar.gz.

File metadata

  • Download URL: token_cut_cli-0.1.7.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for token_cut_cli-0.1.7.tar.gz
Algorithm Hash digest
SHA256 504d2bf486e13ffb0f6b96fe217f7e9c944b9311c6d837380931502bb775afea
MD5 086cc48900be089ce9686e11072be4b1
BLAKE2b-256 551b0465ce124dca697383b3b05a81ac5573acae20ffb69e17e5606b9197edb7

See more details on using hashes here.

File details

Details for the file token_cut_cli-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: token_cut_cli-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for token_cut_cli-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 185f362504d865541d6c7790b53c628e8e1849e10748bad6506ab450e48fc586
MD5 4346b30fc8b81f3c8fc8cbb33eebe978
BLAKE2b-256 0828c7b7c3838f45cb2fe6793f5692182e43f82989910292a19c3bcc49753791

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