Skip to main content
Glama

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, and laya_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: Jevbridge

Development

uv sync --extra dev
uv run ruff check .
uv run pytest
uv run codex-laya-mcp --help

The 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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables local-first codebase intelligence, allowing chat, search, and audit operations on any repository with file:line citations, and supports offline deterministic modes without an LLM.
    39 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides 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.
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Enables local bounded decision-making through MCP using a resident Core ML model, with tools for single decisions, batched decisions, and conservative context filtering.
    4
    2
    Apache 2.0