TypeSafe MCP

io.github.Renwang-Huang由 GitHub 账号 Renwang-Huang 发布v0.5.2更新于 Oct 24, 2026

Host-neutral MCP bridge for TypeSafe AI Jev judgments with typed review, routing, and gate tools.

发布方自己的服务:Google Analytics (unofficial)

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

为助手提供类型化决策原语——分类、评分、检查、验证、门控、路由、评审——由 TypeSafe Jev 模型驱动。

可以做什么
Arbitype 是一个本地 MCP 桥接层,把自由形式的输入转化为结构化决策。它提供九个只读、幂等的工具:evaluate、classify、score、check、verify、gate、route、review 和 health。每个工具返回类型化结果,例如带概率分布的标签、pass/review/fail 信号,或一条建议的下一步操作。工具描述中标注了适用与不适用场景。
适用场景
当助手需要有限定的结构化判断而非自由文本时使用:从无序标签中选一个、按有序等级评分、逐条核查命名断言、对检查项做阈值判断,或选择一条下一步操作。它只提供建议,不会执行所建议的操作。
运行要求
通过 uvx 启动的本地进程(PyPI 包 typesafe-mcp,或规范发行版 arbitype)。需要环境变量 TYPESAFE_API_KEY,可选 TYPESAFE_MODEL。需通过 HTTPS 访问 TypeSafe Jev 提供方。仅限桌面端;未声明 MCP 认证。
安装前请注意
必需的 TYPESAFE_API_KEY 是保存在进程环境中的真实凭据;实时提供方检查为可选且需付费。概率与置信度只是模型信号,并非证明;gate 与 review 仅为建议性判断转换,不是授权或审批系统。项目声明其并非 TypeSafe AI 官方产品,也不会执行建议操作、编辑文件或运行 shell 命令。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Arbitype

Typed decision tools for AI agents.

Classify · Score · Verify · Gate · Route · Review

MCP-native · Powered by TypeSafe Jev

[CI] [Latest release] [Arbitype on PyPI] [MIT license] [Python 3.10 or newer] [MCP 2026-07-28] [Arbitype listed in the MCP Registry]

Quick start · Why Arbitype? · Tools · Benchmarks · Documentation

What is Arbitype?

Arbitype is an MCP-native typed decision layer for AI agents, powered by TypeSafe Jev. It turns probabilistic judgments into structured decision primitives that an agent or program can consume directly.

Arbitype is available on PyPI and the official MCP Registry.

[!NOTE] Arbitype is an independent open-source project. It is not an official TypeSafe AI product or an official integration for any particular agent host.

Quick Start

The fastest way to connect an MCP host is a local STDIO server launched by uvx:

bash
export TYPESAFE_API_KEY="your-key"uvx arbitype

For a pinned, reproducible launch:

bash
uvx --from 'arbitype==0.7.0' arbitype

Or install the package into the current environment:

bash
python -m pip install arbitypearbitype

The API key stays in the process environment. It is not an MCP argument and is never printed to standard output.

Host setup

Inspect detected hosts before writing anything:

bash
arbitype setup --detect --dry-run

Then apply a reviewed plan:

bash
arbitype setup codexarbitype doctor --json

The setup flow is plan → unified diff → confirmation → backup → apply. Use claude, cursor, or vscode in place of codex. Detailed host formats, secret forwarding, --yes, --remove, ownership, and non-interactive behavior are documented in docs/HOST_SETUP.md.

Configuration

At minimum, set TYPESAFE_API_KEY. To select a model explicitly:

bash
export TYPESAFE_API_KEY="your-key"export TYPESAFE_MODEL="jev-latest"

See the full configuration reference for endpoints, timeouts, retries, and request/response limits.

Compatibility

arbitype is the canonical distribution, Python package, and CLI. Existing TypeSafe MCP users should migrate to Arbitype; see docs/REGISTRY_MIGRATION.md.

For the safe migration from the historical distribution:

bash
python -m pip uninstall typesafe-mcppython -m pip install arbitype
SurfaceCanonicalLegacy compatibility
PyPI / CLIarbitypetypesafe-mcp, typesafe-codex-mcp
Python importsarbitypetypesafe_mcp, typesafe_codex_mcp
MCP toolsroute, reviewcodex_route, codex_review

Why Arbitype?

Arbitype is designed around contracts and bounded decisions rather than free-form prose:

PrincipleWhat it means
Contract-firstRequests and provider responses are validated before they reach the agent.
Safe by defaultCredentials stay out of MCP tool arguments and generated host configuration.
Agent-orientedPurpose-built classify, verify, gate, route, review, and score primitives.
PortableZero third-party runtime dependencies and standard MCP STDIO.
MeasuredPublic tool-selection and decision-stability evaluation assets.

The decision flow is:

text
free-form state      ↓  TypeSafe Jev      ↓probabilistic judgment      ↓    Arbitype      ↓typed decision + probability      ↓agent / code branch

Real Use Cases

Start with one of the small, runnable fixtures:

ScenarioToolWhat it demonstrates
Support routingrouteChoose one next action without executing it.
PR verificationverifyCheck several claims independently.
Release reviewreview / gateSeparate holistic review from thresholded checks.
Agent next steprouteKeep the next workflow action bounded.

The example outputs are illustrative fixtures. They are not live model results, accuracy claims, or authorization decisions.

Tools

Arbitype advertises nine read-only, idempotent MCP tools:

ToolUse whenResult
evaluateYou need a custom typed Jev question set.Raw typed Jev response.
classifyYou need one choice from unordered labels.Choice and probability distribution.
scoreYou need one ordered rating or level.Weighted score and distribution.
checkYou need a probability for one bounded criterion.Noul yes/no probability.
verifyYou need several named claims checked independently.Noul answer per claim.
gateYou need checks and thresholds transformed into a signal.pass, review, or fail.
routeYou need one suggested next action.One action; no action execution.
reviewYou need a holistic quality or risk assessment.Review decision and evidence.
healthYou need local diagnostics or an explicit live check.Configuration and optional provider health.

Tool Selection Guide

NeedUseDo not substitute
One unordered labelclassifyroute, which selects an action
One ordered ratingscoreclassify, which has no order
One bounded propositioncheckverify, which handles multiple claims
Several named claimsverifyreview, which assesses a whole object
Checks plus thresholdsgatereview, which is holistic
One next actionrouteclassify, which returns a category
Whole diff, plan, release, or reportreviewverify, which answers claim by claim

Tool descriptions also state USE WHEN and DO NOT USE WHEN boundaries so hosts can select a primitive without hidden prompt conventions.

Probabilities and confidence are model signals, not proof. gate and review are advisory decision transformations, not authorization systems, security boundaries, or approval engines.

Architecture

mermaid
flowchart LR    host["AI Agent / MCP Host<br/>Codex · Claude · Cursor · VS Code"]    arbitype["Arbitype<br/>Typed decision tools"]    jev["TypeSafe Jev<br/>System One Model"]    env["TYPESAFE_API_KEY<br/>process environment"]
    host -->|MCP| arbitype    arbitype -->|validated HTTPS| jev    jev -->|typed probabilistic judgment| arbitype    arbitype -->|structured decision| host    env -. credential .-> arbitype

The public product is Arbitype; TypeSafe Jev is the current provider. Provider configuration intentionally keeps the TYPESAFE_* names because the credential and endpoint belong to TypeSafe.

Benchmark Snapshot

Recorded on the public 120-case Jev-mediated tool-selection evaluation:

MetricResult
Tool-selection accuracy96.67%
Invalid-tool rate0%
Schema-valid rate100%

This is a Jev-mediated evaluation over Arbitype's advertised MCP tool catalog. It is not a Codex, Claude, or Cursor host benchmark and is not a general model-performance guarantee.

Details and reproducible assets:

Security Boundaries

Arbitype is a local MCP adapter and typed decision layer. It is not:

  • a sandbox for untrusted code;
  • an authorization or identity system;
  • a prompt-injection firewall;
  • a security approval boundary; or
  • an official TypeSafe AI product.

It does not execute actions suggested by route, edit files, run shell commands, or treat model probabilities as proof. Read SECURITY.md before using live credentials.

Documentation

Development

The test suite uses local fakes and does not need an API key:

bash
python3 -m unittest discover -s tests -vpython3 -m compileall -q .make checkmake release-check

The official MCP Python SDK interoperability smoke test is in scripts/official_sdk_smoke.py. A live Jev check is opt-in and paid:

bash
TYPESAFE_API_KEY="your-key" arbitype doctor --live

Normal CI does not call the provider or run paid benchmarks.

来源:README.md,提交 e0c3bc3

工具

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

版本历史

1
  1. v0.5.2最新Sep 21, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Safe-Mcp 集成