Skip to main content
Glama
plugin-federation

units-static

units-static

单位换算 MCP 服务器,使用固定的换算表(无网络 I/O)。作为 meteo-static 的配套自用:这个仓库是 good MCP 基线——工具的设计旨在让 schema 清晰度评判者获得良好评分(清晰的命名、清晰的描述、严格的枚举、类型化的输出 schema)。

工具

工具

描述

list_units

列出支持的单位 ID(可选按维度过滤)

convert_length

在 SI / 英制单位之间换算长度

convert_mass

换算质量 / 重量

convert_temperature

换算 °C / °F / K(拒绝低于绝对零度)

convert_volume

换算液体体积(美制 + 英制 + SI)

compare_quantities

比较同一维度下的两个量

Related MCP server: gnomon-mcp

设计目标(对评判者友好)

  • 命名:小写、描述性、动词开头(convert_*list_*compare_*

  • 描述:何时调用该工具、它做什么、不应用于什么

  • 输入:封闭枚举 / 受限字段,带每个参数的描述

  • 输出:Pydantic 模型 → MCP outputSchema 对象(无裸数组)

  • 确定性:静态因子表;适合 CI 评估

运行

STDIO(默认)

pip install -r requirements.txt
python src/server.py

Streamable HTTP

pip install -r requirements.txt
python src/server.py --transport http --port 8000

导出 tools/list(本地)

pip install -r requirements.txt
python scripts/export_tools_list.py --output ci/tools-list.json

GitHub Actions

共享 Actions 来自 plugin-federation/actions

任务

目的

tools-list-validate

导出 tools/list + 结构验证

nexus-catalog

OIDC → catalog、schema 验证、选择面嵌入、LLM-as-judge(fail-on-judge-fail

evals

功能评估(evals/evaluations.xml100% 阈值)

Nexus 流水线设置

变量 / 密钥

用途

NEXUS_URL

例如 https://api.nonprod.plugin-federation.com

NEXUS_OIDC_AUDIENCE

必须与 Nexus GitHub 受众匹配

TENANT_ID

目标租户 UUID

MCP_SOURCE_ID

新增 此服务器的稳定工具源 UUID

XAI_API_KEY

评判模型 + 功能评估

OPENAI_API_KEY

嵌入(text-embedding-3-small

嵌入使用名称 + 描述 + 输入 schema(tool-embedding-report/v1)。嵌入失败不会导致评判失败。相似度报告由 Nexus 从注册的语义分析 profile 派生,其 profileVersionmodeltext-embedding-3-small 匹配(1536 维,除非缩短)。CI 无法创建该 profile。

还需在租户 OIDC 信任策略中注册此仓库(与 meteo-static 相同的模式),并为 units-static 创建专用工具源。

状态

  • 正常 — stdio + streamable HTTP

  • 工具 — 六个转换工具,具有结构化 I/O

  • CI — Plugin Federation Actions,带硬失败门

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive suite of four MCP servers providing real-time stock market data, currency conversion between 160+ currencies, world timezone conversion, and unit conversion across 10 measurement categories. Features beautiful web interfaces and ChatGPT integration capabilities.
    -
  • A
    license
    A
    quality
    C
    maintenance
    A small MCP server for the boring-but-essential utilities every model needs: dates, calendars, arithmetic, unit conversion. Use it so your assistant stops "next-token guessing" math and date math.
    4
    1
    MIT
  • A
    license
    C
    quality
    C
    maintenance
    A comprehensive MCP server that turns any AI assistant into a powerful mathematical computation engine, providing 52 advanced functions, 158 unit conversions, financial calculations, and secure AST-based evaluation.
    18
    13
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server providing deterministic base conversions (binary, hex, octal, decimal, base64) for AI agents, eliminating hallucination risks in low-level data processing.
    18
    3
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/plugin-federation/units-static'

If you have feedback or need assistance with the MCP directory API, please join our Discord server