Token Counter for VS Code
com.apished/token-counter
Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
client:VS Code
transport:streamable-http
tools:1
Install Token Counter in VS Code
.vscode/mcp.json
{
"servers": {
"token-counter": {
"type": "http",
"url": "https://apished.com/mcp/v1/tokens"
}
}
}
Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs