58
/ 100
5 days ago
glama

compaction-mcp

Brings Claude Code's context compaction to any MCP host, enabling agents to gauge context pressure, summarize history, re-hydrate files, and persist rules across session boundaries.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
⚠️
Known vulnerabilities in dependencies: 3 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
🔐
You'll be asked for 2 credentials: COMPACTION_EMBED_API_KEY, COMPACTION_LLM_API_KEY
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
configCOMPACTION_ALLOWED_ROOTScwd colon-separated roots for file re-hydration
configCOMPACTION_AUTOfalse auto-compact on ingest when pressure ≥ nowPct (store mode only)
🔐 secretCOMPACTION_EMBED_API_KEY
configCOMPACTION_EMBED_BASE_URLLLM base URL OpenAI-compatible /embeddings endpoint
configCOMPACTION_EMBED_MODELembeddings model for semantic recall (e.g. nomic-embed-text); enables embed
configCOMPACTION_HOOKSpath to hooks JSON (see examples/hooks.example.json)
configCOMPACTION_HOOKS_ENABLEDtrue set false to disable all hook execution
🔐 secretCOMPACTION_LLM_API_KEYoptional bearer token
configCOMPACTION_LLM_BASE_URL"": "http://localhost:11434/v1",
configCOMPACTION_LLM_HEADERSJSON of extra request headers (Azure api-key, gateway/tenant headers); overrides Bearer
configCOMPACTION_LLM_MODELqwen2.5-coder:14b summarizer model
configCOMPACTION_MODEpassthrough passthrough (host owns history) \ store (server holds it)
configCOMPACTION_RECALL_MODEauto auto \ embed \ lexical — recall ranking strategy
configCOMPACTION_STATE_DIR~/.compaction-mcp/sessions session + ledger persistence
configCOMPACTION_SUMMARIZERdirect direct \ sampling \ auto (§6 of spec)
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 6 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/ink01101011-compaction-mcp-eydv9c)](https://m8ven.ai/mcp/ink01101011-compaction-mcp-eydv9c)
commit: 0a15cff65c5c847af07b43de3b67d726433a4ca3
code hash: 6c682db07ebb47e1838b8f1afb980897eb8821bcfc3fbd5d005cad34370a3651
verified: 6/17/2026, 11:28:36 AM
view raw JSON →