Sponsored by Deepsite.site

Context Continuation MCP Server

Created By
core3-coder7 months ago
MCP server code for context-mcp
Content

Context Continuation MCP Server

CI codecov npm version Node.js License: MIT GitHub issues GitHub stars

An MCP (Model Context Protocol) server that provides intelligent context management for AI development sessions. Never lose context when hitting token limits again!

Features

  • Automatic Context Tracking: Monitor token usage and conversation flow
  • Intelligent Session Breaks: Get notified before hitting context limits
  • Seamless Restoration: Generate context restoration prompts for new sessions
  • Project Management: Track milestones, decisions, and progress across sessions
  • File-Based Storage: Human-readable markdown files that work with git

Quick Start

Installation

npm install -g context-continue-mcp

Usage with Claude Desktop

  1. Add to your Claude Desktop configuration:
{
  "mcpServers": {
    "context-continue": {
      "command": "context-mcp",
      "args": ["--project", "/path/to/your/project"]
    }
  }
}
  1. Restart Claude Desktop

  2. Start using context tools in your conversations:

    • context_start_session - Begin tracking a new session
    • context_track_message - Track important messages
    • context_get_status - Check token usage
    • context_restore_session - Generate restoration prompt

Tools Available

Session Management

  • context_start_session - Start tracking a new context session
  • context_end_session - End current session with summary
  • context_get_status - Get current session and token usage info

Context Tracking

  • context_track_message - Add message to session tracking
  • context_track_progress - Update project progress
  • context_add_milestone - Add project milestone

Restoration

  • context_restore_session - Generate context restoration prompt
  • context_get_project_summary - Get full project overview

How It Works

  1. Start a Session: Initialize context tracking for your project
  2. Track Progress: Important messages and decisions are automatically logged
  3. Monitor Usage: Get warnings when approaching token limits
  4. Seamless Continuation: Generate restoration prompts for new sessions

File Structure

The 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/

Quality Assurance

This project maintains high code quality through:

  • 🧪 Comprehensive Testing: 43+ unit tests with 95%+ coverage
  • 🔄 Continuous Integration: Automated testing on Node.js 18.x, 20.x, 21.x
  • 🌍 Cross-Platform: Tested on Ubuntu, Windows, and macOS
  • 📊 Code Coverage: Real-time coverage tracking with Codecov
  • 🏗️ Build Verification: Automated build and CLI functionality testing
  • 📦 Package Validation: Pre-publish testing and compatibility checks

Running Tests

# 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

Development

git clone https://github.com/core3-coder/context-continue-mcp
cd context-continue-mcp
npm install
npm run build
npm start

License

MIT - see LICENSE file for details

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
Tavily Mcp
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps高德地图官方 MCP Server