TokenisttTokenistt
PricingResourcesBlogDocsLegalAbout UsCareers
private beta · limited accessSign inStart free →
PricingResourcesBlogDocumentationLegalAbout UsCareers
Start free →Sign in
DocsMCP Server — Configuration
← Back
Getting Started
MCP Server
Integrations
Features
Reference

MCP Server — Configuration

Configure Tokenistt via ~/.tokenistt/config.toml or a project-local .tokenistt.toml. Project config takes precedence.

# .tokenistt.toml

[server]
port = 9317
workspace = "my-project"          # default workspace label
log_level = "info"                # debug | info | warn | error

[analytics]
enabled = true
endpoint = "https://api.tokenistt.com/ingest"
flush_interval_ms = 2000

[optimization]
enabled = true
auto_apply = false                # true = silently rewrite prompts
min_score_threshold = 60          # 0-100, below this triggers suggestions

[cache]
fingerprint = true
prefix_window_tokens = 1024       # tokens to hash for cache key
report_hits = true

[content]
trace = false                     # NEVER set true in production w/ sensitive data
redact_patterns = []              # regex list for PII scrubbing

[governance]
spend_cap_daily_usd = 0           # 0 = disabled
spend_cap_per_request_usd = 0
alert_webhook = ""                # POST on anomaly

Environment variables

TOKENISTT_API_KEYYour Tokenistt account API key
TOKENISTT_WORKSPACEOverride workspace label
TOKENISTT_PORTOverride server port
TOKENISTT_LOG_LEVELdebug | info | warn | error
TOKENISTT_DISABLE1 = bypass all interception