Skip to content
VS Code

Session Relay for VS Code

io.github.ryrahul/session-relay

Share coding-agent sessions with your team: /share in one agent, /pickup in another.

client:VS Code transport:stdio runtime:npm

Install Session Relay in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "relay-server",
      "description": "RELAY_SERVER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "relay-token",
      "description": "RELAY_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "session-relay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "session-relay"
      ],
      "env": {
        "RELAY_SERVER": "${input:relay-server}",
        "RELAY_TOKEN": "${input:relay-token}"
      }
    }
  }
}

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

Session Relay in other clients