
Cognitive Substrate
io.github.JaysonAIOnlinePublished by GitHub account JaysonAIOnlinev1.0.1Updated Oct 27, 2026
28-layer cognitive substrate with cross-session ToT evolutionary memory and self-telemetry tools
Overview
A local Python MCP server that runs prompts through a 28-layer reasoning substrate and keeps cross-session Tree-of-Thoughts memory in SQLite.
- What you can do
- Validate prompts and branches through a 28-layer, 6-family cognitive substrate and get a pruning verdict
- Run seven reasoning paradigms (deductive, inductive, abductive, analogical, causal, syllogistic, falsification) and produce reasoning plans
- Store, recall and prune Tree-of-Thoughts memory across sessions, including 5-key telemetry and lessons from pruned branches
- Inspect session telemetry: active paths and pruned branches via the cognitive tree state tool
- Extract and parse JSON from messy text with a stack-based parser
- List, discover, call and orchestrate peer agents over A2A
- When to use it
- Worth adding when you want an assistant to structure its reasoning through an explicit layered checklist and to carry lessons from failed approaches into later sessions. It suits experimentation with reasoning scaffolds and agent-to-agent calls rather than everyday data or file tasks.
- Requirements
- Runs as a local stdio process installed with pip (mcp-cognitive-substrate) and started with the cognitive-substrate command. Requires Python 3.11 or newer. No accounts, API keys, environment variables or headers are declared. Memory is stored locally in SQLite.
Installation
In SourceWeft
- Open Cognitive Substrate in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-cognitive-substrate
mcp-name: io.github.JaysonAIOnline/cognitive-substrate
A 28-layer cognitive substrate with cross-session Tree-of-Thoughts (ToT) evolutionary memory, conditional self-telemetry, and A2A tools for MCP agents.
Lets agents reason through a validated 28-layer substrate, evolve memory across sessions, and communicate with peer agents — all in one pip-installable package.
Features
- 28-layer cognitive substrate with Pydantic validation —
CognitiveSubstratevalidates reasoning through 6 families / 28 layers. - Cross-session ToT evolutionary memory — SQLite-backed tree-of-thoughts nodes + substrate history; pruned branches become lessons for future sessions.
- Robust stack-based JSON parser — no regex; handles nested brackets, escaped strings, embedded code fences (
robust_slice/robust_json_slice). - Self-telemetry tool —
get_cognitive_tree_statereturns active paths and pruned branches for a session. - Post-execution storage loop —
store_5key_telemetryauto-saves compact 5-key telemetry (foundations, metacognition, defensive, resource, utility). - 7 reasoning paradigms — deductive, inductive, abductive, analogical, causal, syllogistic, falsification.
- A2A tools — list, discover, call, and orchestrate peer agents.
- MCP server — exposes everything as tools via the
cognitive-substrateCLI.
Install
Or install from source:
Requires Python >= 3.11.
Quick Start
Usage
28-layer substrate
Cross-session ToT evolutionary memory
Stack-based JSON parser
7 reasoning paradigms + A2A
As an MCP server
All of the above — substrate paradigms, extraction/evaluation, memory store/recall, ToT lessons, tree-state telemetry, JSON parsing, reasoning plans, and A2A — are exposed as MCP tools.
Testing
License
Source: README.md at commit 064d125
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts