Skip to content
VS Code

X Ads for VS Code

com.getmcpads/x-ads

X Ads MCP server: 25 read tools, 19 opt-in preview-first writes.

client:VS Code transport:stdio runtime:npm

Install X Ads in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "x-ads-access-token",
      "description": "X_ADS_ACCESS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "x-ads-account-ids",
      "description": "X_ADS_ACCOUNT_IDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "x-ads-scopes",
      "description": "X_ADS_SCOPES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "x-ads-enable-writes",
      "description": "X_ADS_ENABLE_WRITES",
      "password": true
    }
  ],
  "servers": {
    "x-ads": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@getmcpads/x-ads-mcp-server"
      ],
      "env": {
        "X_ADS_ACCESS_TOKEN": "${input:x-ads-access-token}",
        "X_ADS_ACCOUNT_IDS": "${input:x-ads-account-ids}",
        "X_ADS_SCOPES": "${input:x-ads-scopes}",
        "X_ADS_ENABLE_WRITES": "${input:x-ads-enable-writes}"
      }
    }
  }
}

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

X Ads in other clients