# Compaction-loss audit

> Compaction-loss audit is an MCP server. Compaction witness for agents: pin invariants, name dropped spans, re-inject verbatim or HALT. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Website:** https://textforagents.com/products/compaction-loss-audit/
- **MCP Registry name:** com.textforagents/compaction-loss-audit
- **Listing updated:** 2026-11-13

## About

Compaction witness for agents: pin invariants, name dropped spans, re-inject verbatim or HALT.

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http compaction-loss-audit https://textforagents.com/products/compaction-loss-audit/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://textforagents.com/products/compaction-loss-audit/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "compaction-loss-audit": {
      "url": "https://textforagents.com/products/compaction-loss-audit/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "compaction-loss-audit": {
      "type": "http",
      "url": "https://textforagents.com/products/compaction-loss-audit/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "compaction-loss-audit": {
      "serverUrl": "https://textforagents.com/products/compaction-loss-audit/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "compaction-loss-audit": {
      "type": "http",
      "url": "https://textforagents.com/products/compaction-loss-audit/mcp"
    }
  }
}
```

## FAQ

### How do I add Compaction-loss audit to Claude Code?

Run this command in your terminal: claude mcp add --transport http compaction-loss-audit https://textforagents.com/products/compaction-loss-audit/mcp

---
Source: https://ai-powered.com/mcp/compaction-loss-audit
