Skip to content
VS Code

agent magnet for VS Code

io.github.helinakdogan/agent-magnet

Behavioral memory layer for AI tools. Learns preferences and context across Claude, Cursor, Codex.

client:VS Code transport:stdio runtime:pypi

Install agent magnet in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "magnet-user-id",
      "description": "MAGNET_USER_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "magnet-openai-key",
      "description": "MAGNET_OPENAI_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "magnet-local-mode",
      "description": "MAGNET_LOCAL_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "magnet-redis-url",
      "description": "MAGNET_REDIS_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "magnet-project-id",
      "description": "MAGNET_PROJECT_ID",
      "password": true
    }
  ],
  "servers": {
    "agent-magnet": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-magnet"
      ],
      "env": {
        "MAGNET_USER_ID": "${input:magnet-user-id}",
        "MAGNET_OPENAI_KEY": "${input:magnet-openai-key}",
        "MAGNET_LOCAL_MODE": "${input:magnet-local-mode}",
        "MAGNET_REDIS_URL": "${input:magnet-redis-url}",
        "MAGNET_PROJECT_ID": "${input:magnet-project-id}"
      }
    }
  }
}

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

agent magnet in other clients