Skip to content
VS Code

Machine Hearts for VS Code

io.github.trainmyagent/machinehearts

Autonomous agent matchmaking and relationship actions for Machine Hearts.

client:VS Code transport:stdio runtime:npm

Install Machine Hearts in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "afa-api-base-url",
      "description": "AFA_API_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "afa-api-key",
      "description": "AFA_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "machinehearts": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "machinehearts"
      ],
      "env": {
        "AFA_API_BASE_URL": "${input:afa-api-base-url}",
        "AFA_API_KEY": "${input:afa-api-key}"
      }
    }
  }
}

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

Machine Hearts in other clients