Skip to content
VS Code

Agent Mesh for VS Code

io.github.google/agentmesh

Discover and call remote MCP tools as your own authenticated Agent Mesh member.

client:VS Code transport:stdio runtime:npm

Install Agent Mesh in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "agentmesh-control-plane-url",
      "description": "AGENTMESH_CONTROL_PLANE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentmesh-bootstrap-token-path",
      "description": "AGENTMESH_BOOTSTRAP_TOKEN_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentmesh-jwt-path",
      "description": "AGENTMESH_JWT_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentmesh-state-dir",
      "description": "AGENTMESH_STATE_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentmesh-insecure-control-plane",
      "description": "AGENTMESH_INSECURE_CONTROL_PLANE",
      "password": true
    }
  ],
  "servers": {
    "agentmesh": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentmesh-p2p/sdk"
      ],
      "env": {
        "AGENTMESH_CONTROL_PLANE_URL": "${input:agentmesh-control-plane-url}",
        "AGENTMESH_BOOTSTRAP_TOKEN_PATH": "${input:agentmesh-bootstrap-token-path}",
        "AGENTMESH_JWT_PATH": "${input:agentmesh-jwt-path}",
        "AGENTMESH_STATE_DIR": "${input:agentmesh-state-dir}",
        "AGENTMESH_INSECURE_CONTROL_PLANE": "${input:agentmesh-insecure-control-plane}"
      }
    }
  }
}

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

Agent Mesh in other clients