Context Continuation MCP Server

Context Continuation MCP Server

Provides intelligent context management for AI development sessions, allowing users to track token usage, manage conversation context, and seamlessly restore context when reaching token limits.

Category
Visit Server

README

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured