Skip to content
VS Code

mcp laya for VS Code

io.github.dockndevai/mcp-laya

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

client:VS Code transport:stdio runtime:pypi

Install mcp laya in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "laya-default-model",
      "description": "LAYA_DEFAULT_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "laya-models",
      "description": "LAYA_MODELS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "laya-allow-download",
      "description": "LAYA_ALLOW_DOWNLOAD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "laya-min-confidence",
      "description": "LAYA_MIN_CONFIDENCE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "laya-device",
      "description": "LAYA_DEVICE",
      "password": true
    }
  ],
  "servers": {
    "mcp-laya": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-laya"
      ],
      "env": {
        "LAYA_DEFAULT_MODEL": "${input:laya-default-model}",
        "LAYA_MODELS": "${input:laya-models}",
        "LAYA_ALLOW_DOWNLOAD": "${input:laya-allow-download}",
        "LAYA_MIN_CONFIDENCE": "${input:laya-min-confidence}",
        "LAYA_DEVICE": "${input:laya-device}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp laya in other clients