context-rot-detection

context-rot-detection

от milos-product-maker
MCP инструмент, дающий AI-агентам самосознание: измеряет деградацию когнитивного здоровья при заполнении контекста. Разработчики применяют его для выявления context rot и получения рекомендаций.

Context Rot Detection

MCP service that gives AI agents self-awareness about their cognitive state.

Every long-running AI agent suffers from context rot — measurable performance degradation as the context window fills up. Research from Chroma, Stanford ("lost-in-the-middle"), and Redis confirms this is the #1 practical failure mode in production agent systems.

An agent experiencing context rot doesn't know it's degrading — it just starts making worse decisions. This tool gives agents real-time visibility into their own cognitive health.

Features

  • Health score (0–100) based on token utilization, retrieval accuracy, and session fatigue
  • Model-specific degradation curves for 15+ curated models (Claude, GPT, Gemini, o-series)
  • Auto-resolves any HuggingFace model — pass a repo ID like meta-llama/Llama-3.1-70B and the context window is detected automatically, with results cached in SQLite
  • Lost-in-the-middle risk scoring based on Stanford research
  • Tool-call burden and session fatigue analysis
  • Actionable recovery recommendations — compact context, offload to memory, checkpoint, break into subtasks
  • Per-agent health history tracking (SQLite)
  • Service-wide utilization statistics

Часто задаваемые вопросы

У этого сервера пока нет списка инструментов.
0.1.3основная
0.1.2
0.1.1
0.1.0

Выберите клиент, чтобы установить context-rot-detection:

Любой клиент

Конфиг добавления MCP сервера стандартный, обычно он не меняется вообще, поэтому подходит практически к любому ИИ клиенту, поддерживающему MCP.

{
  "mcpServers": {
    "context-rot-detection-rkbvxxki2i": {
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      }
    }
  }
}
CursorCursor

Перейдите по ссылке и сервер автоматически будет добавлен в Cursor. Либо откройте/создайте файл ~/.cursor/mcp.json(%USERPROFILE%\.cursor\mcp.json на Windows) и добавьте конфиг сервера:

{
  "mcpServers": {
    "context-rot-detection-rkbvxxki2i": {
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      }
    }
  }
}
VS Code

Создайте .vscode/mcp.json в проекте (ключ верхнего уровня — servers):

{
  "servers": {
    "context-rot-detection-rkbvxxki2i": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      }
    }
  }
}

Либо добавьте сервер через терминал:

code --add-mcp "{\"name\":\"context-rot-detection-rkbvxxki2i\",\"type\":\"stdio\",\"command\":\"npx\",\"args\":[\"-y\",\"context-rot-detection\"],\"env\":{\"HEALTH_HISTORY_DB\":\"./health.db\"}}"
ClaudeClaude Desktop

Откройте Settings → Developer → Edit Config — это откроет файл claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Впишите сервер и полностью перезапустите Claude Desktop:

{
  "mcpServers": {
    "context-rot-detection-rkbvxxki2i": {
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      }
    }
  }
}
Claude CodeClaude Code

Добавьте сервер одной командой в терминале:

claude mcp add context-rot-detection-rkbvxxki2i --env HEALTH_HISTORY_DB=./health.db -- npx -y context-rot-detection

Либо через JSON-конфиг:

claude mcp add-json context-rot-detection-rkbvxxki2i "{\"command\":\"npx\",\"args\":[\"-y\",\"context-rot-detection\"],\"env\":{\"HEALTH_HISTORY_DB\":\"./health.db\"}}"
CodexCodex

Добавьте сервер командой в терминале:

codex mcp add context-rot-detection-rkbvxxki2i --env HEALTH_HISTORY_DB=./health.db -- npx -y context-rot-detection

Либо вручную в ~/.codex/config.toml(%USERPROFILE%\.codex\config.toml на Windows):

[mcp_servers.context-rot-detection-rkbvxxki2i]
command = "npx"
args = ["-y", "context-rot-detection"]

[mcp_servers.context-rot-detection-rkbvxxki2i.env]
HEALTH_HISTORY_DB = "./health.db"
PerplexityPerplexity

MCP доступен подписчикам Perplexity Pro / Max / Enterprise. Локальные серверы — только в приложении для macOS.

  1. Откройте Настройки аккаунта → Connectors.
  2. Установите вспомогательное приложение PerplexityXPC (один раз).
  3. Нажмите Add Connector → вкладка Simple.
  4. В поле Server Name укажите context-rot-detection, а в поле команды запуска — строку ниже:
npx -y context-rot-detection

Нажмите Save и дождитесь статуса Running.

WindsurfWindsurf

Откройте Windsurf Settings → Cascade → MCP Servers или отредактируйте файл ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "context-rot-detection-rkbvxxki2i": {
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      }
    }
  }
}
ClineCline

В панели Cline нажмите иконку MCP Servers → Configure → Configure MCP Servers (или отредактируйте ~/.cline/mcp.json) и добавьте сервер:

{
  "mcpServers": {
    "context-rot-detection-rkbvxxki2i": {
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
Continue

Создайте файл в .continue/mcpServers/ (например context-rot-detection-rkbvxxki2i.yaml) или добавьте блок в config.yaml. MCP работает только в режиме agent:

mcpServers:
  - name: context-rot-detection-rkbvxxki2i
    command: npx
    args:
      - "-y"
      - "context-rot-detection"
    env:
      HEALTH_HISTORY_DB: ./health.db
Zed

Выполните agent: add context server или откройте настройки (zed: open settings file) и добавьте сервер в объект context_servers:

{
  "context_servers": {
    "context-rot-detection-rkbvxxki2i": {
      "command": "npx",
      "args": [
        "-y",
        "context-rot-detection"
      ],
      "env": {
        "HEALTH_HISTORY_DB": "./health.db"
      }
    }
  }
}

Похожие MCP-сервера

mshegolev/jaeger-mcp

mshegolev/jaeger-mcp

от mshegolev

MCP-сервер для read-only доступа к Jaeger: поиск трейсов, анализ спанов, сравнение трасс, карта зависимостей сервисов и прогнозирование деградации — всё через Claude без покидания диалога.

Python⭐ 2
GeiserX/duplicacy-mcp

GeiserX/duplicacy-mcp

от geiserx

Duplicacy-MCP — это лёгкий мост, который читает метрики Duplicacy из Prometheus exporter и превращает их в MCP ресурсы и инструменты для LLM. Позволяет агентам мониторить статус, прогресс и здоровь...

Go⭐ 2
ofershap/cursor-usage

ofershap/cursor-usage

от ofershap

MCP-сервер для Cursor Enterprise, позволяющий AI-агенту отслеживать расходы команды, использование моделей и активность. Умеет отвечать на вопросы о тратах и давать рекомендации по оптимизации. Пол...

TypeScript⭐ 8
Oluwatunmise-olat/mcp-server-logs-sieve

Oluwatunmise-olat/mcp-server-logs-sieve

от oluwatunmise-olat

Logs Sieve - MCP-сервер для поиска логов на естественном языке в GCP, AWS и Azure. Даёт разработчикам и SRE контекст для отладки инцидентов через обобщение и трассировку.

TypeScript⭐ 4
edgedelta/edgedelta-mcp-server

edgedelta/edgedelta-mcp-server

от edgedelta

MCP сервер для интеграции с Edge Delta API: автоматизирует сбор и анализ observability данных, а также создание AI-инструментов на платформе. Полезен разработчикам для взаимодействия с данными мониторинга.

Go⭐ 10
smigolsmigol/llmkit

smigolsmigol/llmkit

от smigolsmigol

MCP-сервер для мониторинга затрат на AI-запросы в Claude Code, Cline, Cursor. 11 инструментов: прокси-аналитика, локальные расходы, прогноз бюджета. Помогает разработчикам AI-агентов контролировать...

TypeScript⭐ 16
© Каталог MCP, 2026. Все права защищены.
Проект не аффилирован с Anthropic и любыми упомянутыми продуктами.
Все названия и торговые марки принадлежат их владельцам.
Контакты для связи: hi@mcp-katalog.ru

Лука Никитин