Tteop Mcp

io.github.SunrisesIllNeverSee由 GitHub 账号 SunrisesIllNeverSee 发布v0.2.1更新于 Oct 24, 2026

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

发布方自己的服务:Contribution Exchange

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

本地 MCP 服务器,用于构建、校验和说明 TTEOP 遥测信封及其 token 效率指标。

可以做什么
  • 根据 token 计数构建符合 TTEOP v0.1-draft 模式的信封,并计算 Yield、Leverage、Velocity、output_fraction 与 log_leverage
  • 按 JSON Schema 和语义规则校验信封,返回模式错误、语义错误、警告和计算出的指标
  • 查询协议元数据:版本、隐私模式、来源等级、禁用字段以及带公式的指标定义
  • 运行一致性测试套件,覆盖规范向量、空值语义、禁用字段检测和银行家舍入
适用场景
当你处理 TTEOP 遥测格式,希望助手代为构建或检查信封、解释协议指标时使用;它并不用于分析任意数据。
运行要求
以本地 stdio 进程运行,通常通过 npx tteop-mcp 或全局 npm 安装,因此需要 Node.js 和 npm。未声明任何账号、API 密钥、环境变量或请求头。
安装前请注意
该包只是 tteop-spec 依赖之上的传输层,校验与指标行为随该依赖的版本变化。README 提到尚待发布的 0.2.1 版本会升级协议依赖,安装前请确认版本。未描述任何写入、发送或处理凭据的行为。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Tteop Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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

bash
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:

json
{  "mcpServers": {    "tteop": {      "command": "npx",      "args": ["-y", "tteop-mcp"]    }  }}

With MCP Inspector

bash
npx @modelcontextprotocol/inspector npx -y tteop-mcp

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

Programmatic

javascript
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

bash
# Install the exact locked dependency graphnpm 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 testsnpm test                    # real MCP client testnpm run test:packaged       # packaged tarball testnpm run test:release        # package/lockfile/registry version agreementnpm run test:all            # complete local release gate
# Run with MCP Inspectornpm run inspect
# Start the servernpm 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:
    bash
    mcp-publisher loginmcp-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

来源:README.md,提交 3132150

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Signalaf 集成