Repository navigation
Releases
Releases · light-cheng/Light-Decision-MCP
v0.1.0 — Light Decision MCP
Light Decision MCP v0.1.0
English | 简体中文更新说明
Initial public release of Light Decision MCP (light-decision-mcp) — a zero-dependency ESM multi-backend Decision MCP server (stdio) and Magpie plugin (tools + visual page) for fast, probability-calibrated System One decision models (noul / yes-no, choice, score).
Highlights
- 6 Core MCP Tools:
decide,choose,yes_no,score,decide_batch, and read-onlystatus(with live backend health, circuit breaker state, capabilities, and available models). - Multi-Backend & Magpie-Decoupled:
- Recommended Local Gateway: Magpie (native
/v1/decisions+/v1/systemone, zero stored keys, automaticgateway.jsondiscovery). - On-Device Local:
local-opendecider(http://127.0.0.1:8001) and Magpie-managed Ollama / MLX / oMLX. - Direct Cloud & Aggregators: Google Gemini Decisions (
gemini-decision-1), TypeSafe Jev (jev-latest), Perplexity Decisions (pplx-decider-v1.3with optionalweb_grounding), OpenAI Decisions (gpt-6-luna), OpenRouter (/api/alpha/decisions), self-hosted LiteLLM Proxy, and custom Decisions / System One gateways.
- Recommended Local Gateway: Magpie (native
- 3 Routing Modes + Per-Backend Circuit Breaker:
api_with_local_fallback(0 ms open-circuit skip & timeout split),api_only, andlocal_only(hard-lockson-device). Includes a multimodal safety gate that refuses silent image drop on text-only local fallback unless explicitly opted in. - Cross-Protocol Alignment: Normalizes
inputvs.state, array/map probabilities, Gemini expected-float vs. OpenDecider integer-indexscore, and transparently aliases non-ASCII/spaced question IDs on the wire ([A-Za-z0-9_-]{1,64}). - Visual Settings & Admin Console:
- Embedded Magpie visual plugin page (
page/index.html, zero daemon, theme & language matched). - Standalone loopback-only Web Admin UI (
light-decision-mcp ui,127.0.0.1:4395, CSRF-protected, bilingual zh/en, one-click preset picker,0600/ macOS Keychain secret manager with zero key echo, live playground, hardware advisor, and MCP client snippets including CC Switch).
- Embedded Magpie visual plugin page (
- Hardware-Aware Setup Wizard:
light-decision-mcp doctor,recommend,setup, andkey set|list|rm [--keychain].
Quick Install
# As a Magpie Plugin (recommended — zero stored keys)
magpie plugin add github:light-cheng/Light-Decision-MCP
# Standalone Web Admin Console (zero Magpie required)
npx light-decision-mcp ui简体中文更新说明
Light Decision MCP(light-decision-mcp)首个公开版本发布——一款零外部依赖的 ESM 多后端 System One 决策模型 MCP 服务(stdio)与 Magpie 插件(tools + 可视化 page),提供高速、带校准概率的 noul(是/否)、choice(多选)与 score(有序打分)能力。
核心亮点
- 6 个核心 MCP 工具:
decide、choose、yes_no、score、decide_batch以及只读status(实时后端健康状态、熔断器监控、多模态/联网能力与可用模型探测)。 - 多后端统一路由,完全与 Magpie 解耦:
- 推荐本地网关:Magpie(原生全协议支持
/v1/decisions与/v1/systemone,插件零存 Key,自动发现gateway.json)。 - 本机纯离线:
local-opendecider(127.0.0.1:8001)及 Magpie 托管的 Ollama / MLX / oMLX。 - 云端直连与聚合 / 自托管网关:Google Gemini Decisions(
gemini-decision-1)、TypeSafe Jev、Perplexity Decisions(支持web_grounding联网决策)、OpenAI Decisions(gpt-6-luna)、OpenRouter 云端聚合(/api/alpha/decisions)、开源自托管 LiteLLM Proxy 以及任意自定义 Decisions / System One 网关。
- 推荐本地网关:Magpie(原生全协议支持
- 3 种路由模式 + 单后端熔断器:
api_with_local_fallback(故障秒切本地、熔断窗口 0 ms 跳过主力、主备超时分段预算)、api_only、local_only(自动锁死仅本机不出网);含图片请求遇纯文本本地后端默认拒绝静默丢图降级。 - 跨协议精准对齐:统一对齐
input/state、数组/对象概率映射、Gemini 浮点期望分与 OpenDecider 整型档位,并自动在通信层对中文/带空格的问题 ID 做合规别名映射与还原。 - 双可视化配置界面:
- Magpie 内嵌插件页(
page/,零守护进程,自动跟随亮/暗主题与中英文)。 - 独立本地 Web 管理后台(
light-decision-mcp ui,仅绑定127.0.0.1,CSRF 防护,完整中英双语,内置 OpenRouter / LiteLLM / 局域网节点一键模板、0600与 macOS 钥匙串密钥管理且零明文回显、在线试跑、硬件实测推荐与含 CC Switch 在内的各客户端 MCP 接入配置)。
- Magpie 内嵌插件页(
- 硬件实测推荐与命令行向导:内置
doctor、recommend、setup与key set|list|rm [--keychain]。
快速安装
# 作为 Magpie 插件安装(推荐 · 零存 Key)
magpie plugin add github:light-cheng/Light-Decision-MCP
# 启动独立本地 Web 管理后台(零 Magpie 依赖)
npx light-decision-mcp ui