codex-laya-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codex-laya-mcpRun laya_decide on these options and give me scores and truth probabilities."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codex-laya-mcp
Local, read-only Laya typed decisions for Codex over Model Context Protocol.
This project is intentionally not a replacement model for Codex. It exposes bounded classification,
scoring, truth-probability, batch decision, and token-budget planning tools backed by laya-mlx on
Apple Silicon.
Included tools
laya_plan: exact prompt-budget preflight without inference.laya_decide: batched choice, score, and truth-probability decisions.laya_classify,laya_score, andlaya_check: focused convenience tools.
Every inference result includes the full distribution, uncertainty metrics, model metadata, and an advisory answer/review/abstain policy. Inputs that Laya would silently truncate are rejected.
Related MCP server: laya-mcp — on-device typed decisions in ~10ms
Development
uv sync --extra dev
uv run ruff check .
uv run pytest
uv run codex-laya-mcp --helpThe first real model call downloads the configured checkpoint unless it is already in the Hugging Face cache. Unit and MCP contract tests use a deterministic fake engine and do not download weights.
See CODEX_MCP_PROJECT_DESIGN.md for the complete design and docs/OPERATIONS.md for installation, Codex connection, and rollback.
This server cannot be deployed
Maintenance
Related MCP Connectors
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Deterministic decision layer for autonomous agents: reproducible PROCEED/REVIEW/SKIP verdicts.
Read-only, deterministic AI triage and readiness tools implementing Sophon's published rubrics.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides an MCP interface to the Laya decision model, enabling typed queries (yes/no, multiple choice, score) with preflight token-budget reporting, honest confidence calibration, and structured error handling.490 PyPI1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceLaya-MLX as an MCP server (and plain-HTTP API). It answers typed decisions — choose an option / score a rubric / is this true? — on your own machine (Apple Silicon / MLX), with no cloud and ~10ms after warm-up. Not a chatbot. No token-by-token text, no JSON that can break. One forward pass returns a structured answer you can branch on. Ideal for routing, triage, classification, lead scoring, and gMIT
- AlicenseAqualityBmaintenanceEnables local Laya-MLX typed decisions (classification, scoring, risk routing, and yes/no) for coding agents like Codex, Claude Code, DeepSeek Harness, and Pi via MCP, running entirely on Apple Silicon Macs.12MIT
- AlicenseAqualityCmaintenanceEnables typed decisions (choice/score/noul) from Laya-MLX over MCP on Apple Silicon, without text generation.3Apache 2.0