flatten-mcp
Flatten Claude Code sessions: moves bulky tool output into a sidecar file and keeps every prompt and event verbatim, so the same conversation resumes at a lower token count instead of being compacted into a lossy summary. Reversible and…
- Connectors
- Dev tools
- 3
What it does and how to use it
A connector (MCP) that links Claude to an external dev tools tool or service, giving it access to real data and actions.
- Install the connector (command above).
- Add the service credentials/keys when asked.
- Claude can now read and act on that service directly.
Install (Claude Code)
mkdir -p .claude/mcps && curl -fsSL https://doutorai.pt/data/lib/mcps__flatten-mcp.md -o .claude/mcps/flatten-mcp.jsonPaste this command into the terminal, in your project folder, and the component installs automatically.
Content
{
"mcpServers": {
"flatten": {
"description": "Flatten Claude Code sessions: moves bulky tool output into a sidecar file and keeps every prompt and event verbatim, so the same conversation resumes at a lower token count instead of being compacted into a lossy summary. Reversible and crash-safe. Optional ANTHROPIC_API_KEY enables exact token counting.",
"command": "npx",
"args": ["-y", "flatten-mcp@latest"]
}
}
}
Need help with Claude Code?
Ask Dr AI - it explains things simply.
Need a tailor-made solution?
Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.
Save hours every week with AI, no hassle
Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.