Skip to content
VS Code

COTI Private Messaging for VS Code

io.github.coti-io/coti-private-messaging

Private encrypted agent messaging, hidden state exchange, delegation, and private inbox workflows.

client:VS Code transport:stdio runtime:npm

Install COTI Private Messaging in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "private-key",
      "description": "PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "aes-key",
      "description": "AES_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "coti-network",
      "description": "COTI_NETWORK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "starter-grant-ref",
      "description": "STARTER_GRANT_REF",
      "password": true
    }
  ],
  "servers": {
    "coti-private-messaging": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@coti-io/coti-sdk-private-messaging"
      ],
      "env": {
        "PRIVATE_KEY": "${input:private-key}",
        "AES_KEY": "${input:aes-key}",
        "COTI_NETWORK": "${input:coti-network}",
        "STARTER_GRANT_REF": "${input:starter-grant-ref}"
      }
    }
  }
}

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

COTI Private Messaging in other clients