Laya MCP — Development skill for Claude Code
A single forward pass answers a set of "typed questions," returning calibrated probabilities alongside a decision contract ready for direct branching execution—enabling any MCP-compatible agent (such.
How to install Laya MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open WayneCommand/laya-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Laya MCP does
A single forward pass answers a set of "typed questions," returning calibrated probabilities alongside a decision contract ready for direct branching execution—enabling any MCP-compatible agent (such as Claude Code, Codex, Cursor, or custom-built agents) to make automated decisions within milliseconds.
Alternatives in Development
- Om Meeting — Prep for any meeting by topic — subject-forward briefing with open tasks, blockers, and brainstormed considera 4.6k ★
- Y Router — A Simple Proxy enabling Claude Code to work with OpenRouter 378 ★
- Media — Understand an audio / video / image file — Antigravity (agy/Gemini) transcribes and analyzes it, returning a t 284 ★
README
laya-mcp
**把 Laya System-1 决策模型封装成一个工程化的 MCP Server(FastAPI 宿主)**
一次前向传播回答一组「带类型的问题」,返回**校准概率** + **可直接分支执行的决策契约**, 让任意支持 MCP 的 Agent(Claude Code / Codex / Cursor / 自研 Agent)都能在**毫秒级**完成自动决策。
[](https://www.python.org/) [](https://fastapi.tiangolo.com/) [](https://modelcontextprotocol.io/) [](https://huggingface.co/convaiinnovations/laya)
目录
- 这是什么
- 核心概念:决策契约(Contract)
- 为什么值得用
- 架构
- 快速开始
- 接入 MCP Agent
- MCP 工具参考
- Resources 与 Prompts
- 内置问题集(Preset)
- 问题(Question)Schema
- REST API
- 命令行 CLI
- 配置项(环境变量)
- Docker 部署
- 开发与测试
- 常见问题 FAQ
- 许可证
这是什么
`laya-mcp` 把 [Laya](https://huggingface.co/convaiinnovations/laya)(一个 **System-1** 决策模型族) 包装成一个**常驻服务**,同时对外暴露两种接口:
| 接口 | 地址 | 面向谁 |
|---|---|---|
| MCP Streamable HTTP | http://127.0.0.1:8077/mcp |
任意 MCP 客户端 / Agent |
| REST API | http://127.0.0.1:8077/v1/... |
脚本、看板、健康检查、非 MCP 调用方 |
| OpenAPI 文档 | http://127.0.0.1:8077/docs |
人 |
它不是「又一个 LLM 接口」。Laya 是**非生成式**的:一次 forward pass 回答**一组结构化问题**, 输出的是**校准过的概率分布**,而不是一段文本。这使得它可以在 10~50ms 内做出「该走哪条路」的判断, 成本约为调用一次完整 LLM 的千分之一。
与传统做法对比
`laya-test.py`(见 [`examples/quickstart_router.py`](examples/quickstart_router.py))演示了最小用法: 加载 Router → 构造问题 → `router.predict()` → 用阈值手写 `if`。
这个工程把它**产品化**了:
| 关注点 | laya-test.py |
laya-mcp |
|---|---|---|
| 模型驻留 | 每次进程启动重新加载 | 常驻单例 + 启动预热(warmup) |
| 阈值策略 | 每个调用方自己写 if conf >= 0.8 |
决策契约,由服务统一输出 grade |
| 并发 | 单线程阻塞 | 线程池 + 事件循环不阻塞 |
Related Skills
Cursor2api
Use your Cursor subscription as an OpenAI-compatible API. Direct agent.v1 protocol — real tool_calls, streamin
Agentrouter
Unofficial SDK for AgentRouter (agentrouter.org) — Claude, DeepSeek, and GLM via OpenAI-compatible proxy. Zero
Hermes Studio Bridge
Versioned Hermes ↔ Pocket Agent bridge (FastAPI, OpenAI-compatible) — stable app/v1 contract: sync, approvals,
Sequential Thinking Skill
Claude Code skill replicating the Sequential Thinking MCP server — structured reasoning with branching, revisi
Hatch3r Board Pickup
Pick up epics/issues from the project board: dependency-aware selection, collision detection, branching, batch
Laya
Check laya local judge status with a live smoke judgment.
Related Agents
Jill Decider
Answers typed decision questions (choice, score, noul) about a given STATE with calibrated confidence. Used by
Context Driven Development
Guide for implementing and maintaining context as a managed artifact alongside code, enabling consis... - wsho
Targets
Targets pipeline reviewer. Use when verifying target dependencies are correct, dynamic branching is sound, for