Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Safe-by-default MCP for Laya: fast, local, typed decisions (classify/score/yes-no), 100+ langs.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
LAYA_DEFAULT_MODEL, LAYA_MODELS, LAYA_ALLOW_DOWNLOAD, LAYA_MIN_CONFIDENCE, LAYA_DEVICE你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"laya": {
"command": "uvx",
"args": [
"mcp-laya"
],
"env": {
"LAYA_DEFAULT_MODEL": "your-value",
"LAYA_MODELS": "your-value",
"LAYA_ALLOW_DOWNLOAD": "your-value",
"LAYA_MIN_CONFIDENCE": "your-value",
"LAYA_DEVICE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add laya --env LAYA_DEFAULT_MODEL=your-value --env LAYA_MODELS=your-value --env LAYA_ALLOW_DOWNLOAD=your-value --env LAYA_MIN_CONFIDENCE=your-value --env LAYA_DEVICE=your-value -- uvx mcp-laya运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"laya": {
"command": "uvx",
"args": [
"mcp-laya"
],
"env": {
"LAYA_DEFAULT_MODEL": "your-value",
"LAYA_MODELS": "your-value",
"LAYA_ALLOW_DOWNLOAD": "your-value",
"LAYA_MIN_CONFIDENCE": "your-value",
"LAYA_DEVICE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"laya": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-laya"
],
"env": {
"LAYA_DEFAULT_MODEL": "your-value",
"LAYA_MODELS": "your-value",
"LAYA_ALLOW_DOWNLOAD": "your-value",
"LAYA_MIN_CONFIDENCE": "your-value",
"LAYA_DEVICE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
LAYA_DEFAULT_MODEL envLAYA_MODELS envLAYA_ALLOW_DOWNLOAD envLAYA_MIN_CONFIDENCE envLAYA_DEVICE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 dockndevai 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于43天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, LexPact UK Contracts
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Generate UK-law contracts: NDA, service, freelance, recruiter terms of business, IR35.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A safe-by-default Model Context Protocol server for Laya — a fast, non-autoregressive System-1 decision engine. It gives an agent a *thinking* primitive: typed decisions — classify, score, yes/no — over any state (text, an email, a ticket, a JSON object), in a single local forward pass (~33 ms), across 100+ languages, with no text generation — nothing to parse and nothing to hallucinate, and a calibrated confidence on every answer.
Instead of burning a slow, costly LLM round-trip on "which team should handle this? is it urgent? is this a refund request?", the agent calls a typed tool that answers locally, in milliseconds, offline. It's the safest server in the suite — laya only *reads* a state and returns a decision; it changes nothing.
Part of the dockndevai MCP server suite — one governance model across all of them. (This is the first Python server in the suite; the rest are Node/TS.)
| Tool | For |
|---|---|
decide | answer several typed questions (choice/score/noul) in one pass — the full engine |
classify | assign the single best category (one choice) |
score | rate on an ordinal scale, e.g. urgency (one score) |
check | a yes/no/unknown gate for control flow (one noul) |
triage | a ready-made decision set via a laya preset (triage / email / moderation / guard) |
detect_language | script + language of a text (sub-ms, no model) |
explain_routing | which checkpoint would answer, without running inference |
list_models | the checkpoints available, default, device, offline status |
Three checkpoints, auto-routed per request: english (ModernBERT-large), multilingual (mmBERT, 100+ languages), typed-decisions.
pipx install mcp-laya # or: pip install mcp-laya
Python 3.10+. laya pulls in torch; the model checkpoints download once from Hugging Face (see below), after which it runs fully offline.
Downloads are off by default (nothing leaves your machine at runtime). Pre-fetch the checkpoints one time with network access:
LAYA_ALLOW_DOWNLOAD=true python -c "import laya; laya.Router(preload=True)"
Then run the server offline.
{
"mcpServers": { "laya": { "command": "mcp-laya", "env": { "LAYA_DEFAULT_MODEL": "auto" } } } }
See docs/CLIENTS.md for Claude Code / Cursor / Codex / VS Code / Windsurf, and .env.example for every variable.
Ask your agent to *"use laya to classify this ticket's department and whether it's a churn risk"*:
// classify(state, criteria={billing, technical, sales, other})
{ "choice": "billing", "confidence": 0.95, "probabilities": { "billing": 0.95, ... } } // check(state, "Does the user threaten to cancel?") { "answer": "yes", "probability_yes": 0.91, "confidence": 0.91 }
laya is read-only inference, so the guardrails (in src/mcp_laya/security.py) are about privacy and resource control, not write-gating:
LAYA_ALLOW_DOWNLOAD=true.LAYA_MODELS pins which checkpoints may load.LAYA_MAX_INPUT_CHARS / LAYA_MAX_QUESTIONS bound each request.LAYA_MIN_CONFIDENCE flags (never silently trusts) low-confidence answers; every answer already carries a calibrated confidence.LAYA_REDACT_STATE keeps the input text out of the JSON audit log by default.There's a bundled skill, laya-decisions, teaching an agent when to offload a decision to laya and how to phrase typed questions. See also SECURITY.md.
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" ruff check src tests && mypy src && pytest # the policy tests need no model python -m mcp_laya # run the server (stdio)
Built on [laya](https://github.com/NandhaKishorM/laya) by Convai Innovations (Apache-2.0). This server wraps that library; all model work is theirs. See NOTICE.
MIT