Skip to content
VS Code

PKV Sync for VS Code

io.github.cyberkurry/pkv-sync

Self-hosted, Git-native Obsidian vault sync with a built-in MCP server, search, and wiki lint.

client:VS Code transport:stdio runtime:oci

Install PKV Sync in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pkv-token",
      "description": "PKV_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pkv-vault-id",
      "description": "PKV_VAULT_ID",
      "password": true
    }
  ],
  "servers": {
    "pkv-sync": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cyberkurry/pkv-sync:1.10.2"
      ],
      "env": {
        "PKV_TOKEN": "${input:pkv-token}",
        "PKV_VAULT_ID": "${input:pkv-vault-id}"
      }
    }
  }
}

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

PKV Sync in other clients