Context Manager MCP Server

by docherty
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used for package management and running scripts for development, building, and production deployment of the MCP server

  • Client session tracking, capability negotiation, and state persistence between interactions

  • Socket-based transport implementation for reliable network communication with connection and event management

コンテキストマネージャーMCPサーバー

開発コンテキストとワークフローを管理するためのモデル コンテキスト プロトコル (MCP) サーバー実装。

特徴

  • 信頼性の高いメッセージフレーミングを備えたソケットベースのトランスポート
  • JSON-RPC 2.0プロトコルの完全サポート
  • 機能ネゴシエーションによるセッション管理
  • 拡張可能なツールレジストリシステム
  • プロジェクト、作業パッケージ、タスク管理
  • チェックポイントと復元機能
  • QAレビューワークフローのサポート

初期設定

# Install dependencies npm install # First-time build npm run build

使用法

サーバーの起動

# Development mode (no build required, uses tsx for on-the-fly compilation) npm run dev # Production mode (requires build) npm start # Start with debug logging DEBUG=1 npm run dev # Start on specific port MCP_PORT=44558 npm run dev

開発モード

# Run with hot reloading (preferred during development) npm run dev # Watch mode for TypeScript compilation (if you prefer running the compiled version) npm run watch # In a separate terminal when using watch mode npm start

クリーンスタート

問題が発生した場合は、クリーン ビルドを試すことができます。

# Remove build artifacts rm -rf dist/ # Reinstall dependencies npm ci # Rebuild the project npm run build # Start in development mode npm run dev

建築

コアコンポーネント

  1. メッセージフレーミング
    • コンテンツ長ベースのプロトコル
    • 信頼性の高いメッセージ境界処理
    • バッファ管理
  2. トランスポート層
    • TCPソケットベースの通信
    • 接続管理
    • イベント駆動型アーキテクチャ
  3. セッション管理
    • クライアントセッションの追跡
    • 能力交渉
    • 状態の永続性
  4. ツールレジストリ
    • 動的ツール登録
    • 入力検証
    • 結果のフォーマット

ツール

  1. プロジェクト管理
    • プロジェクトの作成/取得
    • プロジェクトチェックポイント
    • 国家の回復
  2. 作業パッケージ管理
    • 作業パッケージの作成/取得
    • 進捗状況の追跡
    • ステータスの更新
  3. タスク管理
    • タスクの作成/更新
    • ファイル変更追跡
    • タスクのチェックポイント
  4. QAツール
    • レビューワークフロー
    • 修正リクエスト
    • 作業パッケージの承認

構成

環境変数:

  • DEBUG : デバッグログを有効にする (0/1)
  • MCP_PORT : サーバーポート (デフォルト: 44557)

プロトコル

サーバーは JSON-RPC 2.0 を使用してモデル コンテキスト プロトコルを実装します。

interface MCPMessage { jsonrpc: "2.0"; id: number; method?: string; // for requests params?: any; // for requests result?: any; // for responses error?: { // for error responses code: number; message: string; data?: any; }; }

メッセージフロー

  1. クライアントはTCP経由で接続します
  2. クライアントが初期化要求を送信する
  3. サーバーは機能で応答します
  4. 通常のメッセージ交換が始まる
  5. クライアントはシャットダウン/終了できます

発達

上記の初期設定開発モードのセクションを参照してください。

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. プルリクエストを作成する

ライセンス

ISCライセンス

-
security - not tested
A
license - permissive license
-
quality - not tested

プロジェクト管理、タスク追跡、QA レビュー サポートなどの機能を使用して開発ワークフローを管理するためのモデル コンテキスト プロトコル (MCP) のサーバー実装。

  1. Features
    1. Initial Setup
      1. Usage
        1. Starting the Server
        2. Development Mode
        3. Clean Start
      2. Architecture
        1. Core Components
        2. Tools
      3. Configuration
        1. Protocol
          1. Message Flow
        2. Development
          1. Contributing
            1. License
              ID: u90kc4so68