Skip to content
VS Code

xusbcan for VS Code

io.github.archaofan/xusbcan

Bench CAN for AI agents via CLI/MCP on python-can. Local stdio; user-supplied drivers.

client:VS Code transport:stdio runtime:pypi

Install xusbcan in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "xusbcan-config",
      "description": "XUSBCAN_CONFIG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "zlg-sdk-dir",
      "description": "ZLG_SDK_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "chuangxin-sdk-dir",
      "description": "CHUANGXIN_SDK_DIR",
      "password": true
    }
  ],
  "servers": {
    "xusbcan": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "xusbcan-cli"
      ],
      "env": {
        "XUSBCAN_CONFIG": "${input:xusbcan-config}",
        "ZLG_SDK_DIR": "${input:zlg-sdk-dir}",
        "CHUANGXIN_SDK_DIR": "${input:chuangxin-sdk-dir}"
      }
    }
  }
}

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

xusbcan in other clients