Skip to content
VS Code

Token Diet for VS Code

com.clawhard/tokendiet

Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.

client:VS Code transport:streamable-http tools:1

Install Token Diet in VS Code

.vscode/mcp.json

{
  "servers": {
    "tokendiet": {
      "type": "http",
      "url": "https://tokendiet.clawhard.com/mcp"
    }
  }
}

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

What VS Code can do once it is connected

Token Diet in other clients