Skip to main content
Glama

chaos-core-mcp

MCP-сервер, где ИИ — это ядро принятия решений, а не инструмент, который он предоставляет наружу. Вызывающий клиент (Claude, ChatGPT, Codex — неважно) не перебирает низкоуровневые конечные точки: он передаёт Chaos Core цель и позволяет когнитивному ядру проанализировать её, обнаружить доступные возможности, спланировать, проверить детерминированную политику, выполнить план, оценить результат и запомнить.

Начиная с v0.2 когнитивное ядро не зависит от транспортного протокола. Одно и то же ядро, те же инструменты, политики, память и реестр возможностей доступны двумя способами: через stdio для локальных MCP-клиентов и через Streamable HTTP на /mcp для удалённых MCP-клиентов, таких как пользовательские коннекторы Claude.

                     CHAOS CORE
                         │
                  Cognitive Core
                         │
        ┌────────────────┴────────────────┐
        │                                 │
     stdio                         Streamable HTTP
        │                                 │
        ▼                                 ▼
 Local MCP clients                Remote MCP clients
                                     /mcp

HTTP-варианта когнитивных функций не существует. src/transport/stdio.ts и src/transport/http.ts обе вызывают единую фабрику сервера createChaosCoreServer() — транспорт невидим для когнитивного слоя, и дублирующих реализаций http_reason / remote_plan нет.

Цикл когнитивного ядра

objective
   ↓
context
   ↓
AI planning
   ↓
policy
   ↓
capability execution
   ↓
evaluation
   ↓
result

В V1 каждый этап представлен собственным MCP-инструментом, поэтому каждый шаг остаётся контролируемым, а управляющий клиент сохраняет контроль между этапами:

Инструмент

Назначение

chaoscore_reason

Проанализировать цель + контекст до появления какого-либо плана (Intent Analyzer)

chaoscore_plan

Преобразовать цель в упорядоченный план, опирающийся на доступные возможности

chaoscore_execute

Выполнить план: проверка политики → выбор возможности → исполнение → оценка

chaoscore_inspect

Интроспекция только для чтения: возможности, политика, провайдеры, память, журнал аудита, сессия

chaoscore_remember

Сохранить факт в долговременную семантическую память

chaoscore_recall

Извлечь данные из семантической памяти

Оба транспорта предоставляют именно этот список — это обеспечивается тестом, который получает список инструментов через реальный MCP-клиент на каждом транспорте и сравнивает определения.

core/brain.ts также реализует полный цикл как единую композируемую функцию (runCognitiveCore) — от цели сразу к результату, с автоматическим перепланированием при сбое шага и немедленной остановкой на REQUIRE_APPROVAL. Эта функция не зарегистрирована как MCP-инструмент в V1 (см. границы V1), но полностью подключена и готова обеспечить работу будущего инструмента chaoscore_achieve без переписывания.

Related MCP server: genpark-personal-agent-unified-autonomous-copilot-skill

Архитектура

src/
  index.ts                    transport dispatcher (stdio by default)
  config.ts                   the only file that reads process.env

  server/                     ← composition root; transport-independent
    create-server.ts          createRuntime() + createChaosCoreServer()
    register-tools.ts         the single definition of the V1 tool surface
    types.ts                  RuntimeServices / ChaosCoreDependencies
    schemas.ts                shared Zod schemas
    tools/                    reason plan execute inspect remember recall

  transport/                  ← the ONLY transport-aware code
    stdio.ts                  local subprocess transport (stdout reserved for JSON-RPC)
    http.ts                   Streamable HTTP at /mcp (stateful sessions)

  core/                       brain intent planner evaluator context types
  capabilities/               registry executor types + built-in/
  memory/                     store (factory) sqlite (impl) types (MemoryStore interface)
  policy/                     engine permissions approvals types
  providers/                  ai-provider (AIProvider interface) openai index
  state/                      session (Working Memory) execution (trace assembly)
  observability/              logger events audit
  util/                       to-structured

Внедрение зависимостей и жизненный цикл компонентов

createRuntime() создаёт сервисы уровня процесса один раз: конфигурацию, реестр возможностей, движок политики, хранилище памяти, реестр провайдеров, журнал аудита, логгер. createChaosCoreServer() создаёт поверх этого runtime один McpServer на каждую MCP-сессию, добавляет индивидуальный для сессии SessionState и регистрирует инструменты с внедрённым контейнером.

Компонент

Жизненный цикл

Следствие

память, политика, возможности, провайдеры, аудит

на процесс

Удалённый HTTP-клиент и локальный stdio-клиент, работающие с одним и тем же процессом, видят одно и то же состояние

SessionState (рабочая память: последний план/рассуждение/трассировка)

на MCP-сессию

plan_id одного клиента не может быть выполнен другим

Ни один модуль ядра не импортирует контейнер зависимостей. core/intent.ts, core/planner.ts и capabilities/executor.ts объявляют по узкому структурному интерфейсу (IntentDeps, PlannerDeps, ExecutorDeps), которому контейнер соответствует — поэтому ядро тестируется изолированно и действительно ничего не знает о серверном и транспортном слоях.

Политика находится за пределами ИИ

AI proposes action
      ↓
deterministic policy engine
      ↓
ALLOW / DENY / REQUIRE_APPROVAL

Модель может предложить любую возможность; policy/engine.ts принимает решение как чистая функция от имени возможности и управляемого оператором файла политики. Модель не привлекается. Это разбито на:

  • policy/permissions.ts — списки разрешения и запрета (allowedCapabilities, deniedCapabilities)

  • policy/approvals.ts — какие из разрешённых возможностей ещё нужно подтверждать человеку (requireConfirmationFor)

  • policy/engine.ts — объединяет их, плюс ресурсные ограничения (httpAllowedDomains)

Файл data/policy.json автоматически создаётся с безопасными defaults при первом запуске:

{
  "allowedCapabilities": [],
  "deniedCapabilities": [],
  "requireConfirmationFor": ["http.request"],
  "httpAllowedDomains": []
}

Транспорт не может обойти политику. capabilities/executor.ts — единственный путь от шага плана к обработчику возможности; он первым делом вызывает policy.check() и не содержит ветвей, зависящих от транспорта. Шаги, которые завершаются значением REQUIRE_APPROVAL, пропускаются, если вызывающий не передал confirmed: true; шаги, которые завершаются значением DENY, не выполняются вообще. Каждое решение пишется в журнал аудита вместе с идентификатором сессии.

Модель заменяема — намеренно

// src/providers/ai-provider.ts
interface AIProvider {
  id: string;
  displayName: string;
  generateText(instructions, input, options?): Promise<{ text, model, providerId }>;
  generateJson(instructions, input, jsonShapeDescription, options?): Promise<{ raw, model, providerId }>;
  isConfigured(): boolean;
}

Ничто за пределами src/providers/openai.ts не импортирует SDK вендора ИИ. Всё проходит через один интерфейс:

Когнитивные этапы соотносятся с ним так: рассуждение → generateJson, планирование → generateJson, а оценка → детерминированный код в core/evaluator.ts. Оценка специально не является вызовом провайдера, поэтому модель не может засчитать собственное неудачное выполнение как успешный результат.

Чтобы добавить модель/вендора: напишите файл src/providers/<name>.ts, реализующий AIProvider, зарегистрируйте его в providers/index.ts, задайте CHAOS_CORE_PROVIDER=<name>. Само имя модели настраивается один раз через OPENAI_MODEL — оно не встречается ни в одном другом файле.

Реестр возможностей — точка расширения

Объекты Capability имеют вид { name, description, risk, inputSchema (Zod), annotations, handler }. В V1 входят два:

  • cognition.generate_text — универсальная генерация текста через активного провайдера

  • http.request — только GET, ограничен policy.httpAllowedDomains

Чтобы добавить новую — внешний API, базу данных, другой MCP-сервер или одно из ваших приложений: создайте файл в src/capabilities/built-in/, экспортирующий Capability, и зарегистрируйте его в src/capabilities/index.ts. Ничего в core/, policy/, server/ или transport/ менять не нужно, и возможность становится видимой одновременно для локальных и удалённых клиентов. ИИ рассуждает по описаниям реестра, чтобы понять, какая возможность решает шаг плана — вы никогда не хардкодите if (task === "email") ....

Направление развития: реестр — это путь роста: пакеты возможностей (зарегистрированные группы), политика для каждой возможности, привязанная к risk, а не к именам по одному, возможность-адаптер, оборачивающая удалённый MCP-клиент, чтобы Chaos Core мог объединять другие MCP-серверы, и долговременная процедурная память, которая учится на том, какие последовательности возможностей успешны для повторяющихся целей.

Память

V1 реализует слой долговременной семантической памяти за интерфейсом MemoryStore (src/memory/types.ts) с реализацией на SQLite (src/memory/sqlite.ts), которую выбирает фабрика (src/memory/store.ts). Хранилище работает на node:sqlite — встроенном в Node 22.5+ — без нативных зависимостей: ключ/значение с тегами, TTL, поиск по подстроке, пагинация.

Замена SQLite на Postgres или векчитый storplace означает добавление одного файла рядом с sqlite.ts и изменение фабрики. MCP-инструменты, планировщик, когнативное ядро и движок политики не меняются, потому что ни один из них не ссылается на SQLite.

База данных используется независимо от способа доставления запроса: факт, записанный через stdio, можно извлечь через HTTP, и он переживает перезапуск.

Рабочая память (контекст текущей сессии) — это src/state/session.ts. Эпизодическая память (что происходило в прошлых задачах) и процедурная память (выученные успешные последовательности шагов) названы архитектуре, но в V1 не реализованы.

Настройка

npm install
cp .env.example .env    # then fill in OPENAI_API_KEY
npm run build

Запуск через stdio (локальные клиенты, разработка)

npm start

npm run start:stdio — это явный эквивалент; npm start по-прежнему запускает stdio, чтобы существующие локальные настройки не ломались.

В режиме stdio stdout принадлежит протоколу MCP. Все диагностические сообщения в коде проходят через observability/logger.ts, и stdio-транспорт принудительно отправляет этот логгер в stderr, даже если установлено значение CHAOS_CORE_LOG_STREAM=stdout.

Запуск через Streamable HTTP (удалённые клиенты)

npm run start:http

Сервер слушает HOST:PORT (по умолчанию 127.0.0.1:3000) и предоставляет:

Метод

Путь

Назначение

POST

/mscp

клиент → сервер JSON-RPC (initialize, tools/list, tools/call, …)

GET

/mscp

поток SSE-уведомлений сервера → клиента для существующей сессии

DELETE

/mscp

явное завершение сессии

GET

/health

проверка живости + количество активных сессий (не входит в MCP)

Локальный endpoint: http://localhost:3000/mcp

HTTP-транспорт с сохраняемым состоянием: каждый вызов initialize создаёт Mcp-Session-Id, и дальнейшиезапросы должны его передавать. Именно поэтому chaoscore_plan может отдавать plan_id в chaoscore_execute без утечки планов между удалёнными клиентами. Запрос с неизвестным идентификатором сессии получает 404; запрос, не являющийся initialize, но без идентификатора сессии, получает 400.

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

Переменная

По умолчанию

Назначение

OPENAI_API_KEY

—

Обязателен для провайдера OpenAI. Считывается только становится, никогда не передаётся MCP-клиентам

OPENAI_MODEL

gpt-5.6

Модель по умолчанию. Единственное место, где задаётся имя модели

OPENAI_REASONING_EFFORT

medium

none|low|medium|high|xhigh|max

CHAOS_CORE_PROVIDER

openai

Какой зарегистрированный AIProvider отвечает на вызовы reason/plan

PORT

3000

Порт HTTP-транспорта

HOST

127.0.0.1

Адрес привязки HTTP-транспорта

MCP_HTTP_PATH

/mcp

Путь, по которому монтируется MCP-эндпоинт

MCP_ALLOWED_HOSTS

—

Список через запятую; установка включает защиту от DNS-rebinding

MCP_ALLOWED_ORIGINS

—

Список через запятую; то же самое

MCP_HTTP_MAX_BODY

4mb

Максимальный размер JSON-запроса, принимаемый на /mcp

CHAOS_CORE_DB_PATH

./data/chaos-core.db

SQLite-файл для remembered/recall

CHAOS_CORE_POLICY_PATH

./data/policy.json

Конфигурационный файл политики

CHAOS_CORE_LOG_STREAM

stderr

stderr|stdout; в режиме stdio всегда используется stderr

CHAOS_CORE_RESPONSE_LIMIT

25000

Потолок символов в ответе каждого инструмента

MCP_TRANSPORT

stdio

stdio|http; переопределяется флагами --stdio/--http

Файл .env в рабочем каталоге будет вызван автоматически (встроенный загрузчик Node.js — без сторонних зависимостей). Файл .env.example содержит только заглушки; никогда не коммитьте реальные учётные данные.

Имена переменных COGNITION_* из версии до 0.2 по-прежнему работают как запасные варианты.

Подключение локального MCP-клиента

Claude Desktop / Claude Code / любой stdio-клиент:

{
  "mcpServers": {
    "chaos-core": {
      "command": "node",
      "args": ["F:/Chaos-Origins/chaos-core-mcp/dist/index.js", "--stdio"],
      "env": { "OPENAI_API_KEY": "sk-..." }
    }
  }
}

Или с помощью MCP Inspector:

npm run inspector:stdio

Подключение удалённого MCP-клиента

Запустите HTTP-транспорт, а затем укажите клиенту URL конечной точки:

http://localhost:3000/mcp

Для пользовательского коннектора Claude добавьте его как удалённый MCP-сервер с этим URL (публичное развёртывание требует публичного HTTPS-URL — см. предупреждение о безопасности ниже). Чтобы опробовать его вручную:

npm run inspector:http

затем выберите «Streamable HTTP» и введите URL.

⚠️ Предупреждение о безопасности при удалённом развёртывании

В V1 нет аутентификации. Это сделано намеренно, и это безопасно только потому, что HTTP-транспорт по умолчанию привязывается к 127.0.0.1. Слой устроен так, что middleware аутентификации подключается без лишних усилий (AuthMiddleware в src/transport/http.ts, применяется к маршруту MCP до любой обработки MCP) — но никакой имитации не предусмотрено: ни заглушки OAuth, ни захардкоженных секретов, ни bearer-токена, который лишь выглядит как защита.

Прежде чем открывать доступ за пределы localhost, вы обязаны добавить:

  • Аутентификацию на маршруте /mcp (ресурсный сервер OAuth 2.1 в соответствии со спецой MCP auth, или шлюз, на котором завершается идентификация)

  • TLS — сервер говорит по обычному HTTP; завершайте TLS на обратном прокси

  • Ограничение скорости и лимиты размера запросов — каждый вызов reason/plan тратит вашу квоту OpenAI

  • Защиту от DNS-ребдинга — установите MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINS

  • Проверенный policy.json — по умолчанию разрешены все зарегистрированные возможности, кроме тех, что требуют подтверждения

  • Долговечное хранилище аудита — журнал аудита V1 представляет собой кольцевой буфер в памяти

Если вы привяжетесь к не-loopback адресу без middleware, сервер при запуске выведет в журнал предупреждение, в котором сказано именно это. Полный контрольный список — в docs/remote-deployment.md.

Ключ OpenAI API считывается из окружения сервера внутри providers/openai.ts и никогда не возвращается в выводе инструментов, в данных инспектора, в записях аудита или в HTTP-ответах.

Возможности и границы V1

Что включено:

  • TypeScript/Node, на MCP SDK, OpenAI Responses API как провайдер по умолчанию (с возможностью замены)

  • Двойной транспорт: stdio + Streamable HTTP на /mcp, одно общее когнитивное ядро

  • Когнитивная поверхность из шести инструментов, идентичная на обоих транспортах

  • Реестр возможностей + детерминированный механизм политик + структурированные события аудита

  • SQLite Semantic Memory за сменяемым интерфейсом MemoryStore

  • Zod-валидация каждого входа инструмента и всех данных capability

Что сознательно не включено:

  • Нет UI

  • Нет роёв агентов / мультиагентной архитектуры

  • Нет автономного фонового выполнения — вкладка chaoscore_execute — идеально заданные шаги; полный цикл перепланирования в core/brain.ts существует, но не выставляется как инструмент

  • Нет реализации OAuth, нет мультиарендности, нет маркетплейса

  • Нет MCP-федерации (реестр мог бы разместить capability-адаптер, но его не поставляется)

Сборка и тестирование

npm run build
npm test

Тестовый набор выполняется против собранного вывода и покрывает: детерминированность политик и невозможность их обхода, сохранение памяти во время симуляционного перезапуска и живой MCP-клиент, подключающийся по обоим транспортам для проверки идентичных поверхностей инструментов, общей памяти и того, что отклонённая capability блокируется на каждом.

Available Tools

6 tools
chaoscore_executeExecute PlanA
Destructive

Run a plan (or inline steps) through the remaining stages of the Cognitive Core loop: policy check -> capability selection -> execution -> evaluation. This is the only tool in this server that can have side effects, and only insofar as the capabilities it invokes do.

Each step is policy-checked individually before it runs (ALLOW / DENY / REQUIRE_APPROVAL — see chaoscore_inspect target="policy"). Steps that are DENY, or REQUIRE_APPROVAL and not yet confirmed, are reported as failed/skipped rather than silently dropped — read each step's error field. Every policy decision and capability call is recorded to the audit trail (chaoscore_inspect target="audit"). This is identical over stdio and over remote HTTP: there is no transport that can reach a capability without passing the policy engine.

Args:

  • plan_id (string, optional): id from a prior chaoscore_plan call in this session

  • steps (array, optional): inline steps [{description, capability, input, rationale}], alternative to plan_id

  • confirmed (boolean): set true to also run steps that resolve to REQUIRE_APPROVAL (default: false)

  • dry_run (boolean): if true, validates policy + input schema per step without calling any handler (default: false)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "planId": string, "objective": string, "steps": [ { "stepId": string, "capability": string, "success": boolean, "output"?: any, "error"?: string, "policyDecision": { "decision": "allow"|"deny"|"require_approval", "allowed": boolean, "requiresConfirmation": boolean, "reason": string }, "durationMs": number } ], "evaluation": { "success": boolean, "summary": string, "notes": string[] }, "completedAt": string }

Examples:

  • Use when: You have a plan_id from chaoscore_plan and are ready to run it -> chaoscore_execute(plan_id="...")

  • Use when: A step came back REQUIRE_APPROVAL and you've now confirmed with the user -> re-run with confirmed=true

  • Don't use when: You just want to see what a plan would do without side effects -> use dry_run=true

Error Handling:

  • Returns "Error: plan_id not found in this session" if the plan wasn't created in the current MCP session

  • Individual step failures do NOT throw — they appear in the steps array with success=false

Inputs: steps, dry_run, plan_id, confirmed, +1 more.

chaoscore_inspectInspect Chaos Core StateA
Read-onlyIdempotent

Read-only introspection into Chaos Core's current state: registered capabilities, active policy, registered AI providers (and which one is answering reason/plan calls), the audit trail, memory store stats, and this session's most recent reasoning/plan/execution results. Never modifies anything, and never reveals credentials.

Capabilities, policy, memory, and audit are process-wide — a remote HTTP client and a local stdio client inspecting the same running server see the same values. The last_* targets and 'session' are scoped to your own MCP session.

Args:

  • target ('capabilities'|'policy'|'providers'|'memory'|'audit'|'session'|'last_reasoning'|'last_plan'|'last_execution'): what to inspect

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Varies by target. 'capabilities': list of {name, description, risk, inputSummary, readOnly, destructive}. 'policy': the active PolicyConfig. 'providers': list of {id, displayName, configured, active}. 'memory': {recordCount, backend}. 'audit': recent {type, ts, sessionId, planId, stepId, capability, ...}[] entries. 'session': {sessionId, startedAt}. For the last_* targets: the most recent ReasoningResult / Plan / ExecutionTrace produced in this session, or null if none yet.

Examples:

  • Use when: "What can this server actually do?" -> target="capabilities"

  • Use when: "Which model is actually answering my reason/plan calls right now?" -> target="providers"

  • Use when: "Why did that step get blocked?" -> target="policy" or target="audit"

Error Handling:

  • Never errors under normal use; unknown target values are rejected by schema validation before this tool runs

Inputs: target (required), response_format.

chaoscore_planPlan ObjectiveA
Read-only

Produce an ordered, executable plan for an objective, using ONLY capabilities currently in the capability registry (capability discovery). Uses the active AI provider to select capabilities and construct step inputs. This is the Planner stage of the Cognitive Core loop.

The returned plan.id must be passed to chaoscore_execute to run it, and is scoped to your MCP session. Planning does NOT execute anything and is NOT authorization to act — policy checks happen at execution time, per step.

Args:

  • objective (string): The goal to produce a plan for

  • context (array): Background info as [{source, content}, ...]. Include prior chaoscore_reason output here if you called it first.

  • reasoning_effort (optional): Override the active provider's default reasoning effort

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "id": string, // pass this to chaoscore_execute "objective": string, "steps": [ { "id": string, "description": string, "capability": string, "input": object, "rationale": string } ], "createdAt": string, "model": string, "providerId": string }

Examples:

  • Use when: "Draft a summary of these release notes" -> plan with a step using capability "cognition.generate_text"

  • Don't use when: You want to actually run the plan -> follow up with chaoscore_execute(plan_id=...)

Error Handling:

  • Returns "Error: OPENAI_API_KEY is not set" (or the active provider's equivalent) if the provider isn't configured

  • If the model references an unregistered capability name, chaoscore_execute reports that step as failed with an "Unknown capability" error — call chaoscore_inspect(target="capabilities") to see what's available

Inputs: objective (required), context, response_format, reasoning_effort.

chaoscore_reasonReason About ObjectiveA
Read-only

Analyze an objective and its context BEFORE committing to a plan (the Intent Analyzer stage of the Cognitive Core loop: objective -> context -> AI planning -> policy -> capability execution -> evaluation -> result). Uses whichever AI provider is currently active (see chaoscore_inspect target="providers") to produce structured analysis: key considerations, risks, and a recommended approach.

Does NOT produce an executable plan or take any action — call chaoscore_plan next for that.

Args:

  • objective (string): The goal or question to reason about

  • context (array): Background info as [{source, content}, ...]. Empty array if none.

  • reasoning_effort (optional): Override the active provider's default reasoning effort ('none'|'low'|'medium'|'high'|'xhigh'|'max')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "objective": string, "analysis": string, "keyConsiderations": string[], "risks": string[], "recommendedApproach": string, "model": string, "providerId": string }

Examples:

  • Use when: "Should I migrate memory storage before or after the staging cutover?" -> reason about tradeoffs first

  • Don't use when: You already know the approach and just need an executable plan -> use chaoscore_plan directly

Error Handling:

  • Returns "Error: OPENAI_API_KEY is not set" (or the active provider's equivalent) if the provider isn't configured

Inputs: objective (required), context, response_format, reasoning_effort.

chaoscore_recallRecallA
Read-onlyIdempotent

Search Semantic Memory records previously stored with chaoscore_remember. Supports exact key lookup, substring search over keys/values, and tag filtering. Expired records (past their ttl_seconds) are never returned. Reads the same durable store regardless of which transport you connected through.

Args:

  • key (string, optional): Exact key to fetch one record directly

  • query (string, optional): Substring to match against keys/values

  • tags (array of strings): Only return records with ALL of these tags (default: [])

  • limit (number, 1-100): Max results (default: 20)

  • offset (number): Pagination offset (default: 0)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format (key lookup): { "key": string, "value": string, "tags": string[], ... } or null if not found For JSON format (search): { "total": number, "count": number, "offset": number, "records": [...], "has_more": boolean, "next_offset"?: number }

Examples:

  • Use when: "What do we know about staging?" -> query="staging"

  • Use when: "Get the exact record for key X" -> key="staging.region"

  • Don't use when: You want to write/update a memory -> use chaoscore_remember instead

Error Handling:

  • Returns "No memory found for key ''" (not an error) if an exact key lookup misses

  • Returns empty records array (not an error) if a search finds nothing

Inputs: key, tags, limit, query, +2 more.

chaoscore_rememberRememberA
Idempotent

Persist a key/value record to Semantic Memory (durable, SQLite-backed), so it can be retrieved later with chaoscore_recall — in this session, in a future session, after a server restart, and from either transport. Writing to an existing key overwrites its value and updates its timestamp, making chaoscore_remember idempotent for a given key/value pair.

Memory is a property of the deployment, not of the connection: a record written over stdio is readable over HTTP and vice versa, provided both point at the same database file.

Args:

  • key (string, 1-200 chars): Unique identifier for this memory

  • value (string): The content to remember

  • tags (array of strings): Optional tags for filtering later (default: [])

  • ttl_seconds (number, optional): If set, the record is treated as expired (and excluded from chaoscore_recall) after this many seconds

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "key": string, "value": string, "tags": string[], "createdAt": string, "updatedAt": string, "expiresAt": string | null }

Examples:

  • Use when: "Remember that the staging DB uses the Melbourne region" -> key="staging.region", value="Melbourne (australiaeast)"

  • Don't use when: You need to search existing memories -> use chaoscore_recall instead

Error Handling:

  • Returns "Error: ..." with the underlying SQLite error message if the write fails (e.g. disk full, path unwritable)

Inputs: key (required), value (required), tags, ttl_seconds, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct role in the cognitive core loop: reason analyzes before planning, plan produces an executable plan, execute runs it, inspect provides read-only introspection, and remember/recall handle persistent memory. There is no overlap in purpose; even reason and plan, which share similar arguments, are explicitly differentiated by what they produce.

    Naming Consistency5/5

    All tools follow a consistent naming pattern: the 'chaoscore_' prefix followed by a lowercase verb (reason, plan, execute, inspect, remember, recall). No mixing of camelCase or inconsistent verb styles; the pattern is uniform and predictable.

    Tool Count5/5

    With 6 tools, the server is well-scoped. Each tool corresponds to a necessary stage of the cognitive core workflow (reason, plan, execute, inspect) plus persistent memory operations (remember/recall). There are no redundant or extraneous tools, and the count is well within the ideal 3-15 range.

    Completeness4/5

    The tool surface covers the full lifecycle: analyze (reason), plan (plan), execute (execute), observe (inspect), and persist/retrieve knowledge (remember/recall). Minor gaps exist, such as no explicit delete tool for memory (though overwrite covers updates) and no dedicated cancel/abort for plans, but these are not critical to the core loop. Overall, the domain is well-covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers