Skip to main content
Glama
krusch-sequential-mcp

krusch-sequential-mcp

by kruschdev

⚡ Почему Krusch Sequential MCP?

Стандартный MCP-инструмент sequential-thinking отлично подходит для пошагового рассуждения, но страдает от проблемы «испорченного телефона» в многоагентных средах, где агенты могут уверенно галлюцинировать необоснованные мысли, отравляющие контекстное окно.

krusch-sequential-mcp решает эту проблему, внедряя семантический контроль правдоподобия (Semantic Plausibility Gating) наряду с высоконадежным уровнем сохранения данных в DBOS PostgreSQL.

Ключевые особенности

  • 🧠 Семантический контроль правдоподобия: Автономно отклоняет отклонившиеся или галлюцинированные мысли с помощью пограничной модели-оценщика.

  • 💾 Сохранение в DBOS PostgreSQL: Синхронно сохраняет каждую мысль, ветку и редакцию в таблицу dbos_thoughts, создавая проверяемый направленный ациклический граф (DAG) рассуждений.

  • 🛑 Детерминированная надежность состояния: Останавливает выполнение «отравленных» мыслей, заставляя агентов переоценивать свой путь рассуждений.

  • 🔌 Прямая замена: Полностью совместим со стандартным интерфейсом sequential-thinking и поддерживает новый параметр groundingContext.

  • 📦 Отсутствие внешних зависимостей: Оценщик правдоподобия полностью автономен — не требуется никаких внешних инструментов.


Related MCP server: Tyra Advanced Memory MCP Server

🧠 Архитектура: Шлюз семантического правдоподобия

Когда агент предлагает мысль, внутренний оценщик проверяет её на соответствие предоставленному groundingContext.

graph TD;
    A[Agent Thought Proposed] --> B{Grounding Context Provided?};
    B -- No --> C[Accept & Persist to DBOS];
    B -- Yes --> D[Edge Model Evaluator];
    D -- Plausible --> C;
    D -- Hallucinated/Drifted --> E[Reject Thought];
    E --> F[Return Soft Error to Agent];
    F --> G[Agent Re-evaluates];

📦 Установка

npm install -g krusch-sequential-mcp

Или настройте его в файле конфигурации MCP (например, claude_desktop_config.json или .cursor/mcp.json):

{
  "mcpServers": {
    "krusch-sequential-mcp": {
      "command": "npx",
      "args": ["-y", "krusch-sequential-mcp"]
    }
  }
}

🚀 Руководство по быстрому старту

Агенты могут вызывать инструмент sequentialthinking со стандартными параметрами (thought, thoughtNumber, totalThoughts, nextThoughtNeeded и т. д.).

Чтобы задействовать шлюз правдоподобия, включите параметр groundingContext в вызов инструмента:

{
  "thought": "Since the user is asking about the database schema, I will assume it uses MongoDB and write a query for it.",
  "thoughtNumber": 1,
  "totalThoughts": 3,
  "nextThoughtNeeded": true,
  "groundingContext": "The current codebase exclusively uses DBOS PostgreSQL for persistence. No NoSQL databases are present."
}

Поскольку мысль противоречит groundingContext, оценщик автономно отклонит её, вернув агенту ошибку с требованием переосмыслить подход.


⚙️ Переменные окружения

Переменная

Обязательно

По умолчанию

Описание

DATABASE_URL

Нет

(нет — сохранение отключено)

Строка подключения к PostgreSQL (например, postgres://user:pass@localhost:5432/mydb). Если не задана, сервер работает только в оперативной памяти.

OLLAMA_URL

Нет

http://localhost:11434

Базовый URL сервиса Ollama для проверок на правдоподобие.

PLAUSIBILITY_MODEL

Нет

qwen2.5-coder:1.5b

Модель Ollama, используемая для проверки правдоподобия. Рекомендуется использовать небольшую и быструю модель.

Скопируйте .env.example для быстрого старта:

cp .env.example .env

🤝 Участие в разработке

Мы приветствуем вклад в проект! Пожалуйста, убедитесь, что ваши тесты проходят успешно и соответствуют стандартам форматирования проекта. Запускайте тесты через npm run build и npm start (или node build/index.js).

📄 Лицензия

Лицензия MIT © 2026 kruschdev

Available Tools

1 tool
sequentialthinkingC

A detailed tool for dynamic and reflective problem-solving through thoughts. Augmented with Semantic Plausibility Gating.

Inputs: thought (required), thoughtNumber (required), totalThoughts (required), nextThoughtNeeded (required), +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion or overlap. The tool's purpose is singular and clear.

    Naming Consistency5/5

    With a single tool, naming consistency is trivially satisfied. The name 'sequentialthinking' is descriptive and matches the server's focus.

    Tool Count3/5

    The server has exactly one tool, which feels minimal. While it is appropriate for a focused sequential thinking utility, the count is on the borderline of being too thin.

    Completeness4/5

    The tool appears to provide a comprehensive capability for sequential thinking and problem-solving. However, being the only tool, there may be missing auxiliary operations like reset or history, though no obvious gaps are evident.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server implementing the Chain-of-Recursive-Thoughts (CoRT) methodology that makes AI think harder by making it argue with itself repeatedly through multiple rounds of alternative generation and evaluation.
      5
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      A sophisticated MCP server providing advanced memory capabilities with RAG, hallucination detection, and enterprise-grade AI infrastructure for intelligent agent ecosystems.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides persistent semantic memory backed by PostgreSQL and pgvector for storing and searching thoughts via vector embeddings. It enables dimensional organization, conflict detection, and historical tracking of facts, decisions, and observations.
      ISC