Typed noul / choice / score judgments from a local Laya model, with token-budget preflight.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
MCP server for Laya typed decisions —
noul (yes/no), choice, score — wrapped so it survives contact with a server.
English · 简体中文 · Español · Português · हिन्दी
Registered as io.github.PerryLink/laya-mcp in the official MCP Registry.
This npm package is a launcher, not an implementation. Laya is a PyTorch model, so the server itself is Python. Installing this package gets you the Node entry point and nothing else; you also need the Python side:
npx laya-mcpfinds that interpreter, hands stdio to it, and passes the MCP stream through untouched. It does not install anything for you — fetching torch (~2 GB) and a checkpoint (~650 MB) as a side effect of running a command is not something a launcher should do.
On Windows, python on PATH is often the Microsoft Store execution alias, which
is a stub: it cannot import anything, and it sits ahead of your real interpreter.
The launcher therefore reports what it tried rather than claiming the package is
missing. Point it at the right interpreter either way:
LAYACORE_PYTHONis still read. 0.1.0 and 0.1.1 printed that name in the error message, and a launcher that stopped honouring the variable its own previous version told you to set would be worse than one carrying the alias.
Status: 0.1.5, work in progress. The Python core is implemented and covered by CI. The launcher itself is covered by ten checks over interpreter discovery, which is where it has been wrong before. Interfaces may move before 1.0.
Laya truncates things silently and reports none of it:
confidence is not accuracy. It is a normalised entropy, low whenever
probability is spread out even when the top option is right, and high on a
confident wrong answer.This package adds a preflight that reports what would be cut, structured errors that name the offending question, an honest confidence contract, and a health surface that admits a demotion.
install handles the fact that there is no portable way to register an MCP
server: Claude Code (mcpServers), Codex ([mcp_servers.<name>]), opencode
(mcp, with an array command), OpenClaw (mcp.servers) and Hermes
(mcp_servers) each get the right shape written to the right file, merged and
backed up rather than overwritten. pi has no native MCP support and is reported
as unsupported.
Prefer serve plus --sidecar over hosting the model in each stdio process: a
harness spawns one server per session, and loading a 650 MB checkpoint per
session is the main reason a Python-backed MCP server feels slow.
Upstream's own numbers, repeated because an integration that implies otherwise is
lying to you: the base checkpoints are near chance zero-shot on typed
decisions (0.362 against a 0.461 majority-class baseline); score is the weakest
primitive (35% vs 70% in independent measurement); raw calibration error is 0.466
before temperature fitting; and one fixture run answered "A" on 46 of 50
multiple-choice items.
Calibration makes a probability honest; it cannot make a model right.
Apache-2.0. Laya is Apache-2.0 by Convai Innovations. This is an independent integration, not affiliated with or endorsed by that project.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/laya-typed-decisions)<a href="https://allmcps.com/mcp/laya-typed-decisions"><img src="https://allmcps.com/api/badge/laya-typed-decisions?style=directory" alt="Laya Typed Decisions on AllMCPs" /></a>