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 + Graphify 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_KEY=cc_live_your_key
token-cut verify

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

IDE setup (Cursor · Claude · Copilot)

export TOKEN_CUT_API_KEY=cc_live_your_key
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.3.tar.gz (7.1 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.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: token_cut_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 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.3.tar.gz
Algorithm Hash digest
SHA256 e157d65ba4689db65e8cab0bcb92d53ea4917c9af8222bd46cfbfb9e55f7a2d4
MD5 6e683ac2b849782399c84e8479fdb8b7
BLAKE2b-256 b376b982a32412f6c137110ef9e480219b1831b2f319f2bdbf44cb2f4697d9df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: token_cut_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20d6f0dd032917d02bdfcbec51652684f7ff950dcedb2eb3465ec365dc0490b3
MD5 34362d923d461078031a2493125d1cf9
BLAKE2b-256 e81a2dbed6425ef7a25483077e7e4b63645152f094b3e61a8de2d5ee04c7f9d2

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