mcpField
T
tteop-mcp

tteop-mcp

Local
github.com/SunrisesIllNeverSeeDeveloper Tools0Updated 3w ago

About tteop-mcp

tteop-mcp is an MCP server for building, validating, and describing TTEOP telemetry envelopes. It delegates protocol rules and metric computation to the tteop-spec reference implementation rather than duplicating them.

Key features

  1. 01Build TTEOP telemetry envelopes
  2. 02Validate schemas and semantic rules
  3. 03Compute telemetry metrics
  4. 04Describe protocol metadata
  5. 05Run conformance tests

Use cases

  1. 01Create envelopes from token counts
  2. 02Check envelopes for schema and semantic errors
  3. 03Inspect protocol metrics and privacy modes

MCP support

Exposes four MCP tools: tteop_build_envelope, tteop_validate_envelope, tteop_describe_protocol, and tteop_run_conformance. It runs over stdio and can be launched with npx tteop-mcp.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"sunrisesillneversee-tteop": {
"command": "npx",
"args": [
"-y",
"tteop-mcp"
]
}
}
}
Run commandnpx -y tteop-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmtteop-mcp0.2.1

Tools

4

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
toolstringNoAI tool name (e.g., 'claude-code', 'cursor', 'copilot').
inputintegerYesFresh input tokens (non-negative integer, required).
modelstringNoModel identifier (e.g., 'claude-sonnet-4', 'gpt-4o').
outputintegerYesOutput tokens (non-negative integer, required).
providerstringNoProvider name (e.g., 'anthropic', 'openai', 'google').
cohort_idstringNoCohort identifier for private-managed-cohort mode. Requires operator_key.
cache_readanyNoCache-read tokens, or null when unavailable.
cache_writeanyNoCache-write tokens, or null when unavailable.
operator_keystringNoPseudonymous operator identifier. Must not contain real-world identity.
privacy_modeenumNoPrivacy mode. Default: public-pseudonymous.public-pseudonymous | private-managed-cohort | enterprise-isolated
provenance_levelenumNoProvenance level. Default: self-reported.self-reported | collector-attested | platform-verified | signed

Details

From the project README

tteop-mcp

Production MCP server for TTEOP — Token Telemetry Evaluation Operator Protocol.

Build, validate, and describe TTEOP telemetry envelopes via the Model Context Protocol. Powered by the official MCP TypeScript SDK v2 and the tteop-spec reference implementation.

New here? Read START-HERE.md. Automated contributors must also read AGENTS.md.

Architecture

This package is a thin MCP transport layer. All protocol logic — envelope construction, metric computation (banker's rounding), schema validation, and semantic rules — is delegated to tteop-spec via its stable JavaScript API:

  • tteop-spec/builder → buildEnvelope(telemetry, options)
  • tteop-spec/validator → validateEnvelope(envelope, options), computeMetrics(telemetry)

No metric formulas or schema logic are duplicated here. When tteop-spec updates its validator or builder, this server inherits the changes.

Product separation
PackageRole
tteop-specSpecification, schemas, validator, conformance suite, builder API
tteop-mcpProduction MCP server (this package) — thin transport over tteop-spec
SignalAF / SigRankHosted benchmarking, leaderboard, pilots, enterprise services

Install

npm install -g tteop-mcp
# or use directly:
npx tteop-mcp

Tools

ToolDescription
tteop_build_envelopeBuild a TTEOP v0.1-draft schema-conforming envelope from token counts. Computes Yield (Υ), Leverage (L), Velocity (V), output_fraction (F), and log_leverage (D).
tteop_validate_envelopeValidate an envelope against the JSON Schema and semantic rules. Returns schema errors, semantic errors, warnings, and computed metrics.
tteop_describe_protocolGet TTEOP protocol metadata: versions, privacy modes, provenance levels, forbidden fields, metric definitions with formulas.
tteop_run_conformanceRun the conformance suite: canonical vector invariants, null semantics, forbidden field detection, banker's rounding.

Usage

With Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "tteop": {
      "command": "npx",
      "args": ["-y", "tteop-mcp"]
    }
  }
}
With MCP Inspector
npx @modelcontextprotocol/inspector npx -y tteop-mcp

Open the browser tab, click Connect, open the Tools tab, and call any tool.

Programmatic
import { spawn } from "node:child_process";

const proc = spawn("npx", ["-y", "tteop-mcp"], { stdio: ["pipe", "pipe", "pipe"] });
// Send JSON-RPC 2.0 messages to proc.stdin, read responses from proc.stdout

Development

# Install the exact locked dependency graph
npm ci

# Optional: test unpublished local tteop-spec changes after the clean install.
# This overrides node_modules locally and is never used by CI or releases.
cd ../otep-spec && npm link && cd ../tteop-mcp && npm link tteop-spec

# Run tests
npm test                    # real MCP client test
npm run test:packaged       # packaged tarball test
npm run test:release        # package/lockfile/registry version agreement
npm run test:all            # complete local release gate

# Run with MCP Inspector
npm run inspect

# Start the server
npm start

Acceptance criteria

  • npx tteop-mcp waits for an MCP connection
  • initialize succeeds
  • tools/list returns complete schemas (4 tools)
  • Every tool can be called through MCP Inspector
  • Invalid token values return structured MCP errors (isError: true with validation message)
  • stdout contains protocol messages only
  • CI runs an actual MCP client against the packaged tarball

Distribution status and release order

[email protected] is currently published to npm and listed in the MCP Registry and Glama. Release 0.2.1 repairs source/package provenance, upgrades the exact protocol dependency to [email protected], and adds release hardening.

The required release order is:

  1. Confirm [email protected] is available from npm.
  2. Merge the [email protected] release commit with every required check green.
  3. Run the manual Release npm package workflow. It publishes with npm provenance and creates GitHub release v0.2.1 at the same commit.
  4. Confirm npm view [email protected] gitHead equals the GitHub release commit.
  5. Publish the matching server.json to the MCP Registry:
    mcp-publisher login
    mcp-publisher publish
    
  6. Confirm the MCP Registry and Glama show version 0.2.1 and all four tools.
  7. From a clean directory, run npx -y [email protected] --version and a real MCP client invocation.

Never publish from an uncommitted working tree. Package version, lockfile, server.json, Git tag, GitHub release, npm gitHead, and MCP Registry version must identify the same release.

License

Apache-2.0

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.