Skip to content
VS Code

Budgetary: estimate token spend for VS Code

io.github.thriftell/budgetary

Pre-flight token-spend estimate (range, scenario, confidence) for a coding task, or an abstention.

client:VS Code transport:stdio runtime:npm

Install Budgetary: estimate token spend in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "budgetary-api-key",
      "description": "BUDGETARY_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "budgetary-host",
      "description": "BUDGETARY_HOST",
      "password": true
    }
  ],
  "servers": {
    "budgetary": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@budgetary/mcp"
      ],
      "env": {
        "BUDGETARY_API_KEY": "${input:budgetary-api-key}",
        "BUDGETARY_HOST": "${input:budgetary-host}"
      }
    }
  }
}

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

Budgetary: estimate token spend in other clients