tteop-mcp

v0.2.1
io.github.SunrisesIllNeverSee/tteop-mcp Checked 1 day ago Published 3 months ago

Build, validate, and describe TTEOP telemetry envelopes for AI operator token efficiency.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tteop_build_envelope

Build a TTEOP v0.1-draft schema-conforming telemetry envelope from token counts. Computes Yield (Υ), Leverage (L), Velocity (V), output_fraction (F), and log_leverage (D). No data is submitted or persisted. Returns the complete envelope as JSON.

ParameterTypeDescription
input *integerFresh input tokens (non-negative integer, required).
output *integerOutput tokens (non-negative integer, required).
cache_readCache-read tokens, or null when unavailable.
cache_writeCache-write tokens, or null when unavailable.
cohort_idstringCohort identifier for private-managed-cohort mode. Requires operator_key.
modelstringModel identifier (e.g., 'claude-sonnet-4', 'gpt-4o').
operator_keystringPseudonymous operator identifier. Must not contain real-world identity.
privacy_modestringPrivacy mode. Default: public-pseudonymous.
provenance_levelstringProvenance level. Default: self-reported.
providerstringProvider name (e.g., 'anthropic', 'openai', 'google').
toolstringAI tool name (e.g., 'claude-code', 'cursor', 'copilot').

tteop_validate_envelope

Validate a TTEOP v0.1-draft telemetry envelope against the JSON Schema and semantic rules. Returns validation status, schema errors, semantic errors, warnings, and computed metrics if valid.

ParameterTypeDescription
envelope *objectThe TTEOP telemetry envelope to validate (as a JSON object).
expected_profilestringIf set, asserts the envelope's privacy mode matches this profile.

tteop_describe_protocol

Get TTEOP protocol metadata: version, supported versions, privacy modes, provenance levels, forbidden fields, metric definitions (formulas, symbols, rounding), and schema/spec URLs.

tteop_run_conformance

Run the TTEOP conformance suite: canonical vector invariants, zero-input/zero-output null semantics, missing-cache handling, build-validate round-trip, forbidden field detection, and banker's rounding. Returns pass/fail counts and detailed results.