audit_tokens

command
v2.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Command audit_tokens measures the LLM context window overhead of all registered MCP tool definitions. It creates in-memory MCP servers in both individual and meta-tool modes, serializes tool definitions to JSON, and counts tokens with the cl100k_base tokenizer (see countTokens), falling back to a bytes/4 heuristic only if the tokenizer is unavailable.

Usage:

go run ./cmd/audit_tokens/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL