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)
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
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 token_cut_cli-0.1.4.tar.gz.
File metadata
- Download URL: token_cut_cli-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26cc6beba5d8d9f3900b39982bb89a599fe0bcfbd92cbf29c5bb6fecdfc93a85
|
|
| MD5 |
7a213f239cdf6322f59071972663bc57
|
|
| BLAKE2b-256 |
5a7433d53e6d62121003aaca37f18de7152b9c6fabcefb78b1bcbc9c31a8bdf7
|
File details
Details for the file token_cut_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: token_cut_cli-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7fbdb0ef35518d50d3027a2c0b7976c0bc679d77038ed2e4b558c10b834021c
|
|
| MD5 |
0b7cab5e214f5126b5b74e03ee2a5059
|
|
| BLAKE2b-256 |
de5b404593c9eeb3c1196caee9557c2c8ed2a776effca297170ba08f392a795f
|