Never lose context again! This MCP server automatically saves and restores project state when Claude threads hit token limits, ensuring seamless conversation continuity.
Version 1.1 introduces intelligent project validation to prevent the common issue of accidentally creating multiple similar projects:
❌ Project "Hebrew Speaking Evaluation MVP" blocked
✅ Similar project found: "Hebrew Evaluation MVP" (85% similar)
🎯 Recommendation: Update existing project or use force=true
# 1. Clone the repository git clone https://github.com/peless/claude-thread-continuity.git cd claude-thread-continuity # 2. Install dependencies pip install -r requirements.txt # 3. Test the enhanced server python3 test_server.py # 4. Add to Claude Desktop config # See setup instructions below1. Install the MCP Server
# Create permanent directory mkdir -p ~/.mcp-servers/claude-continuity cd ~/.mcp-servers/claude-continuity # Copy files (or clone repo to this location) # Place server.py and requirements.txt here2. Configure Claude Desktop
Edit your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\\Claude\\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add this configuration:
{ "mcpServers": { "claude-continuity": { "command": "python3", "args": ["~/.mcp-servers/claude-continuity/server.py"], "env": {} } } }3. Restart Claude Desktop
Close and reopen Claude Desktop. The continuity tools will now be available automatically.
The server automatically saves project state when:
Before saving, the system:
force: true
for edge casesWhen starting a new thread:
load_project_state: project_name="your-project"
save_project_state
Save current project state ✨ Now with validation load_project_state
Restore full project context list_active_projects
View all tracked projects get_project_summary
Get quick project overview validate_project_name
Check for similar project names ✨ NEW auto_save_checkpoint
Triggered automatically Starting a New Project (with Validation)
save_project_state: project_name="my-web-app", current_focus="Setting up React components", technical_decisions=["Using TypeScript", "Vite for bundling"], next_actions=["Create header component", "Set up routing"]
Checking Name Before Creating
validate_project_name: project_name="my-webapp", similarity_threshold=0.7
Force Override When Needed
save_project_state: project_name="my-web-app-v2", force=true, current_focus="Starting version 2"
Continuing After Token Limit
load_project_state: project_name="my-web-app"
Project states are stored locally at:
~/.claude_states/
├── project-name-1/
│ ├── current_state.json
│ └── backup_*.json
└── project-name-2/
├── current_state.json
└── backup_*.json
Each saved state includes:
{ "project_name": "my-project", "current_focus": "What you're working on now", "technical_decisions": ["Key choices made"], "files_modified": ["List of files created/changed"], "next_actions": ["Planned next steps"], "conversation_summary": "Brief context summary", "last_updated": "2025-06-15T10:30:00Z", "version": "1.1", "validation_bypassed": false }🛡️ Validation Configuration
force=true
)validate_project_name: project_name="test-project", similarity_threshold=0.8
Higher threshold = stricter matching (0.9 = 90% similar required) Lower threshold = looser matching (0.5 = 50% similar triggers warning)
python3 --version
cd ~/.mcp-servers/claude-continuity python3 test_server.py
The test suite now includes validation testing and will report:
Validation Too Strict: Lower the similarity threshold or use force=true
Permission Errors:
chmod +x ~/.mcp-servers/claude-continuity/server.py
Python Path Issues: Update the config to use full Python path:
{ "command": "/usr/bin/python3", "args": ["~/.mcp-servers/claude-continuity/server.py"] }
Enhanced test suite includes:
claude-thread-continuity/
├── server.py # Main MCP server (enhanced with validation)
├── requirements.txt # Python dependencies
├── test_server.py # Comprehensive test suite
├── README.md # This file
├── LICENSE # MIT License
└── examples/ # Usage examples
Contributions welcome! Please:
MIT License - see LICENSE file for details.
Before v1.1: 😫 Hit token limit → Lose all context → Re-explain everything → Lose momentum
Common Problem: 😤 Create "Hebrew MVP", then "Hebrew Evaluation MVP", then "Hebrew Speaking MVP" → Context scattered across multiple projects
After v1.1: 😎 Hit token limit → Start new thread → load_project_state
→ Continue seamlessly + Smart validation prevents fragmentation
Perfect for:
Built with ❤️ for the Claude community
Tired of fragmented projects? Version 1.1 keeps your context organized!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4