Skip to content
VS Code

bsc dex spread for VS Code

io.github.donnywin85/bsc-dex-spread

Cross-DEX price & spread for PancakeSwap v2+v3 on BSC via x402. Tool get_dex_spread(pair, fee?).

client:VS Code transport:stdio runtime:npm

Install bsc dex spread in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "evm-private-key",
      "description": "EVM_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gateway-url",
      "description": "GATEWAY_URL",
      "password": true
    }
  ],
  "servers": {
    "bsc-dex-spread": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "bsc-dex-spread-mcp"
      ],
      "env": {
        "EVM_PRIVATE_KEY": "${input:evm-private-key}",
        "GATEWAY_URL": "${input:gateway-url}"
      }
    }
  }
}

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

bsc dex spread in other clients