Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
CognOS trust scoring (C=p·(1-Ue-Ua)) and session trace storage as MCP tools.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
COGNOS_TRACE_DBYou need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"cognos-session-memory": {
"command": "uvx",
"args": [
"cognos-session-memory-mcp"
],
"env": {
"COGNOS_TRACE_DB": "your-value"
}
}
}
}Run this in your terminal
claude mcp add cognos-session-memory --env COGNOS_TRACE_DB=your-value -- uvx cognos-session-memory-mcpFill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"cognos-session-memory": {
"command": "uvx",
"args": [
"cognos-session-memory-mcp"
],
"env": {
"COGNOS_TRACE_DB": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"cognos-session-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"cognos-session-memory-mcp"
],
"env": {
"COGNOS_TRACE_DB": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
COGNOS_TRACE_DB envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
The registry name was verified with the GitHub account base76-research-lab, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.1.0) reached the registry 8 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
mcp-name: io.github.base76-research-lab/cognos-session-memory
Verified context injection via epistemic trust scoring for LLMs.
Solves session fragmentation by maintaining verified, high-confidence session context between conversations.
Large language models suffer from session fragmentation: each new conversation starts without verified context of previous work. This forces repeated explanations, loses decision history, and breaks long-running workflows.
Existing solutions (persistent memory systems, vector retrieval) either:
A plan-mode gateway that:
C = p · (1 − Ue − Ua)C > thresholdC < thresholdrecent_traces (n=5)
↓ extract_context() → ContextField + coverage ↓ compute_trust_score(p, ue, ua) → C, R, decision ↓ if C > threshold: system_prompt ← inject else: flagged_reason ← manual review
C = p · (1 − Ue − Ua)
R = 1 − C
where: p = prediction confidence (coverage of required fields) Ue = epistemic uncertainty (divergence between traces) Ua = aleatoric uncertainty (mean risk in traces)
R < 0.25 → PASS (inject without review)
0.25 ≤ R < 0.60 → REFINE (inject with caution) R ≥ 0.60 → ESCALATE (flag for manual review)
Extract and score context.
Request:
{
"n": 5, "trust_threshold": 0.75, "mode": "auto" }
Response (if injected):
{
"status": "injected", "trust_score": 0.82, "confidence": 0.82, "risk": 0.18, "decision": "PASS", "context": { "active_project": "CognOS mHC research", "last_decision": "Verify P1 hypothesis", "open_questions": ["How does routing entropy scale?"], "current_output": "exp_008 complete", "recent_models": ["gpt-4", "claude-3", "mistral"] }, "system_prompt": "## CognOS Context...", "trace_ids": ["uuid-1", "uuid-2", ...] }
Response (if flagged):
{
"status": "flagged", "trust_score": 0.45, "decision": "REFINE", "flagged_reason": "Trust score 0.45 below threshold 0.75. Manual review recommended.", "trace_ids": [...] }
trust_score ≥ threshold, else flag# In any Claude Code session:
/save
Claude writes a structured summary, trust-scores it, and persists it to SQLite. Next session: automatically injected as SESSION_CONTEXT before your first prompt.
See docs/COMPACT_ALTERNATIVE.md for a full comparison.
Add to ~/.claude/settings.json:
{
"mcpServers": { "cognos-session-memory": { "command": "python3", "args": ["/path/to/cognos-session-memory/mcp_server.py"] } } }
Tools exposed:
| Tool | Description |
|---|---|
save_session(summary, project?) | Trust-score and persist a session summary |
load_session(threshold?) | Retrieve last verified context (default threshold: 0.45) |
git clone https://github.com/base76-research-lab/cognos-session-memory
cd cognos-session-memory pip install -e .
python3 -m uvicorn --app-dir src main:app --port 8788
curl -X POST http://127.0.0.1:8788/v1/plan \
-H 'Content-Type: application/json' \ -d '{"n": 5, "mode": "dry_run"}'
curl -X POST http://127.0.0.1:8788/v1/plan \
-H 'Content-Type: application/json' \ -d '{"n": 5, "trust_threshold": 0.75, "mode": "auto"}'
save_session, load_session)pytest tests/ -v --cov=src
/compactSee docs/PAPER.md — "Verified Context Injection: Epistemically Scored Session Memory for Large Language Models"
Status: Independent research — Base76 Research Lab, 2026 Authors: Björn André Wikström (Base76)
@software{wikstrom2026cognos,
author = {Wikström, Björn André}, title = {{CognOS Session Memory}: Verified Context Injection via Epistemic Trust Scoring}, year = {2026}, url = {https://github.com/base76-research-lab/cognos-session-memory} }
MIT