
上下文续写
STDIOAI开发会话上下文管理器,避免令牌限制中断
AI开发会话上下文管理器,避免令牌限制中断
An MCP (Model Context Protocol) server that provides intelligent context management for AI development sessions. Never lose context when hitting token limits again!
npm install -g context-continue-mcp
{ "mcpServers": { "context-continue": { "command": "context-mcp", "args": ["--project", "/path/to/your/project"] } } }
Restart Claude Desktop
Start using context tools in your conversations:
context_start_session
- Begin tracking a new sessioncontext_track_message
- Track important messagescontext_get_status
- Check token usagecontext_restore_session
- Generate restoration promptcontext_start_session
- Start tracking a new context sessioncontext_end_session
- End current session with summarycontext_get_status
- Get current session and token usage infocontext_track_message
- Add message to session trackingcontext_track_progress
- Update project progresscontext_add_milestone
- Add project milestonecontext_restore_session
- Generate context restoration promptcontext_get_project_summary
- Get full project overviewThe server creates a .context
directory in your project:
your-project/
├── .context/
│ ├── config.json
│ ├── project_summary.md
│ ├── sessions/
│ │ ├── session_001_2025-05-31.md
│ │ └── session_002_2025-06-01.md
│ ├── progress/
│ │ ├── milestones.md
│ │ └── decisions.md
│ └── artifacts/
└── your-code/
This project maintains high code quality through:
# Run all tests npm test # Run tests with coverage npm run test:coverage # Run specific test suites npm test token-counter npm test session-tracker npm test context-manager # Watch mode for development npm run test:watch
git clone https://github.com/core3-coder/context-continue-mcp cd context-continue-mcp npm install npm run build npm start
MIT - see LICENSE file for details