
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
概覽
本機 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 金鑰、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Tteop Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
Install
Tools
Usage
With Claude Desktop
Add to claude_desktop_config.json:
With MCP Inspector
Open the browser tab, click Connect, open the Tools tab, and call any tool.
Programmatic
Development
Acceptance criteria
-
npx tteop-mcpwaits for an MCP connection -
initializesucceeds -
tools/listreturns complete schemas (4 tools) - Every tool can be called through MCP Inspector
- Invalid token values return structured MCP errors (
isError: truewith 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:
- Confirm
[email protected]is available from npm. - Merge the
[email protected]release commit with every required check green. - Run the manual Release npm package workflow. It publishes with npm provenance and creates GitHub release
v0.2.1at the same commit. - Confirm
npm view [email protected] gitHeadequals the GitHub release commit. - Publish the matching
server.jsonto the MCP Registry: - Confirm the MCP Registry and Glama show version
0.2.1and all four tools. - From a clean directory, run
npx -y [email protected] --versionand 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版本歷史
1- v0.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。