Skip to content
VS Code

ContextGuard — AI Coding Token & Compaction Auditor for VS Code

com.secondforeman/contextguard

Audit startup token burn, compile <5KB START.md boot cards, and cut context-compaction loops.

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

Install ContextGuard — AI Coding Token & Compaction Auditor in VS Code

.vscode/mcp.json

{
  "servers": {
    "contextguard": {
      "type": "http",
      "url": "https://secondforeman.com/api/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

ContextGuard — AI Coding Token & Compaction Auditor in other clients