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 整合