mcp-laya

v0.1.5
io.github.dockndevai/mcp-laya Checked 4 days ago Published 12 days ago

Safe-by-default MCP for Laya: fast, local, typed decisions (classify/score/yes-no), 100+ langs.

Values you need

VariableWhat it is
LAYA_DEFAULT_MODELoptional Checkpoint to use: auto (Router picks) | english | multilingual | typed-decisions.
LAYA_MODELSoptional Comma-separated allowlist of checkpoints that may load. Empty = all.
LAYA_ALLOW_DOWNLOADoptional Allow the one-time Hugging Face checkpoint download. Off by default (offline).
LAYA_MIN_CONFIDENCEoptional Flag answers below this calibrated confidence (0 = never flag).
LAYA_DEVICEoptional Inference device: auto | cpu | cuda.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add mcp-laya -- uvx mcp-laya==0.1.5
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-laya": {
      "args": [
        "mcp-laya==0.1.5"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-laya": {
      "args": [
        "mcp-laya==0.1.5"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-laya": {
      "args": [
        "mcp-laya==0.1.5"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-laya]
command = "uvx"
args = ["mcp-laya==0.1.5"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: decide, classify, score, check, triage, detect_language, explain_routing, list_models.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json