Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
CognOS trust scoring (C=p·(1-Ue-Ua)) and session trace storage as MCP tools.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
COGNOS_TRACE_DB你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"cognos-session-memory": {
"command": "uvx",
"args": [
"cognos-session-memory-mcp"
],
"env": {
"COGNOS_TRACE_DB": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add cognos-session-memory --env COGNOS_TRACE_DB=your-value -- uvx cognos-session-memory-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"cognos-session-memory": {
"command": "uvx",
"args": [
"cognos-session-memory-mcp"
],
"env": {
"COGNOS_TRACE_DB": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"cognos-session-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"cognos-session-memory-mcp"
],
"env": {
"COGNOS_TRACE_DB": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
COGNOS_TRACE_DB env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 base76-research-lab 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
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.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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