Skip to content
VS Code

alaya mcp for VS Code

io.github.securityronin/alaya-mcp

Local memory engine for AI agents with knowledge graphs, forgetting, and semantic recall

client:VS Code transport:stdio runtime:npm

Install alaya mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "alaya-llm-api-key",
      "description": "ALAYA_LLM_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "alaya-llm-api-url",
      "description": "ALAYA_LLM_API_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "alaya-llm-model",
      "description": "ALAYA_LLM_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "alaya-db",
      "description": "ALAYA_DB",
      "password": true
    }
  ],
  "servers": {
    "alaya-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "alaya-mcp"
      ],
      "env": {
        "ALAYA_LLM_API_KEY": "${input:alaya-llm-api-key}",
        "ALAYA_LLM_API_URL": "${input:alaya-llm-api-url}",
        "ALAYA_LLM_MODEL": "${input:alaya-llm-model}",
        "ALAYA_DB": "${input:alaya-db}"
      }
    }
  }
}

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

alaya mcp in other clients