Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Claude Context ContinuityRestore session 'auth-debug' and tell me the last error we fixed."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Claude Context Continuity
An MCP (Model Context Protocol) server that maintains conversation context for Claude CLI across multiple invocations.
Features
🔄 Conversation Continuity: Leverages Claude CLI's
--resumefeature to maintain conversation context across multiple calls📝 Session Management: Save, restore, and branch conversations
🖥️ Cross-platform: Supports Windows (via WSL), Linux, and macOS
⚡ Simple Implementation: All functionality in a single Python file
Requirements
Python 3.8+
Claude CLI (must be installed in WSL for all platforms)
FastMCP (
pip install fastmcp)WSL2 for Windows environments
Windows: Python must be installed on Windows (not in WSL)
Installation
Option 1: Using npm (Recommended)
After installation, the server will be available as a global command.
Option 2: Manual Installation
Clone the repository:
Install dependencies:
Configuration
Gemini CLI (Recommended)
Add the following to your Gemini configuration file:
Using npm global install (Simplest)
All platforms (~/.gemini/settings.json or %USERPROFILE%\.gemini\settings.json):
Manual installation
Windows (%USERPROFILE%\.gemini\settings.json):
WSL/Linux/macOS (~/.gemini/settings.json):
Claude Desktop
Add similar configuration to your Claude Desktop settings file.
Usage
Basic Usage
Simple conversation:
Continue conversation:
Session Management
Save current session:
Start new session:
Restore saved session:
Available Tools
Tool | Description |
| Execute Claude CLI with conversation continuity |
| Execute with file context |
| Get execution history |
| Get current session ID |
| Set session ID |
| Reset session |
| Clear history |
| Test functionality |
How Session Management Works
Using Claude CLI's --resume feature, you can return to any point in a conversation using session IDs:
Troubleshooting
Claude CLI Not Found
Set the CLAUDE_PATH environment variable:
Windows Environment Notes
WSL2 is required
Install Claude CLI inside WSL
Use WSL format paths (
/mnt/c/...)
License
MIT License
MCP Claude Context Continuity
Claude CLIの会話コンテキストを保持するMCP(Model Context Protocol)サーバーです。
特徴
🔄 会話の継続性: Claude CLIの
--resume機能を活用し、複数の呼び出し間で会話コンテキストを保持📝 セッション管理: 会話の保存、復元、分岐が可能
🖥️ クロスプラットフォーム: Windows(WSL経由)、Linux、macOS対応
⚡ シンプルな実装: 単一のPythonファイルで全機能を提供
必要条件
Python 3.8以上
Claude CLI(WSL内にインストール必須)
FastMCP(
pip install fastmcp)Windows環境の場合はWSL2
Windows: PythonはWindows側にインストール(WSL内ではなく)
インストール
方法1: npmを使用(推奨)
インストール後、グローバルコマンドとして利用可能になります。
方法2: 手動インストール
リポジトリをクローン:
依存関係をインストール:
設定
Gemini CLI(推奨)
Geminiの設定ファイルに以下を追加:
npmグローバルインストールを使用(最も簡単)
全環境共通 (~/.gemini/settings.json または %USERPROFILE%\.gemini\settings.json):
手動インストールの場合
Windows環境 (%USERPROFILE%\.gemini\settings.json):
WSL/Linux/macOS (~/.gemini/settings.json):
Claude Desktop
Claude Desktopの設定ファイルに同様の設定を追加します。
使用方法
基本的な使い方
通常の会話:
会話の継続:
セッション管理
現在のセッションを保存:
新しいセッションを開始:
保存したセッションに戻る:
利用可能なツール
ツール | 説明 |
| Claude CLIを実行(会話継続) |
| ファイルコンテキスト付きで実行 |
| 実行履歴を取得 |
| 現在のセッションIDを取得 |
| セッションIDを設定 |
| セッションをリセット |
| 履歴をクリア |
| 動作確認 |
セッション管理の仕組み
Claude CLIの--resume機能を活用し、セッションIDによって会話の任意の時点に戻ることができます:
トラブルシューティング
Claude CLIが見つからない場合
環境変数CLAUDE_PATHを設定:
Windows環境での注意点
WSL2が必要です
Claude CLIはWSL内にインストールしてください
ファイルパスはWSL形式(
/mnt/c/...)で指定
ライセンス
MIT License