Open Review Assistant

Open Review Assistant

Provides a privacy-first adaptive review engine with local SQLite storage, enabling item creation, due review retrieval, grading, and statistics via MCP tools.

Category
访问服务器

README

Open Review Assistant

A privacy-first adaptive review engine for learners and coding agents. It keeps prompts, answers, schedules, and review history in a local SQLite database and exposes the same small workflow through a command-line interface and an MCP server.

This repository is a clean public core extracted from a larger personal study system. It contains no real learner records, exam questions, private notes, or production databases. The demo content is synthetic.

Why this project exists

Many review tools combine content, scheduling, and user data in a hosted service. Open Review Assistant keeps the durable state on your machine, uses a deterministic scheduling policy, and makes every schedule transition auditable. An agent can select a due item, present it without exposing the stored answer, then record a score after the learner responds.

Features

  • Local SQLite storage with foreign keys and integrity checks.
  • Deterministic due-item selection and spaced-review scheduling.
  • Answer-safe retrieval: next omits the stored answer by default.
  • Immutable review events recording previous and next intervals.
  • JSON output for scripts and agents.
  • Dependency-free Python core.
  • MCP tools over standard input/output.
  • Synthetic demo data and unit tests.

Quick start

Python 3.10 or newer is required.

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -e .

open-review --database review.sqlite3 init
open-review --database review.sqlite3 seed-demo
open-review --database review.sqlite3 next

After answering the returned prompt, grade the item from 0 to 5:

open-review --database review.sqlite3 grade ITEM_ID 4
open-review --database review.sqlite3 stats

All commands support --json. The database path is explicit so a test database cannot silently replace a real one.

CLI

open-review init
open-review add --title TITLE --prompt PROMPT --answer ANSWER [--tags TAG ...]
open-review next [--tag TAG] [--show-answer]
open-review grade ITEM_ID SCORE
open-review stats
open-review seed-demo

Scores follow a compact, transparent scale:

Score Meaning Scheduling effect
0 No recall Restart tomorrow
1 Incorrect Restart tomorrow
2 Hard Shorten the current interval
3 Correct with effort Grow the interval conservatively
4 Correct Grow using the current ease factor
5 Easy Grow faster and raise the ease factor

MCP server

Run the stdio server with:

open-review-mcp --database /absolute/path/to/review.sqlite3

It exposes four tools:

  • review_add_item
  • review_next
  • review_grade
  • review_stats

Example Codex configuration:

[mcp_servers.open_review]
command = "open-review-mcp"
args = ["--database", "/absolute/path/to/review.sqlite3"]

The server implements the MCP initialization, tool-listing, and tool-call subset needed for this workflow. Transport is newline-delimited JSON-RPC over stdio, and logs are never written to stdout.

Privacy model

  • No network calls, telemetry, accounts, or cloud synchronization.
  • Database files and journals are ignored by Git.
  • Answers are not returned by next unless explicitly requested.
  • The public repository uses only synthetic examples.

Local-first is not the same as encrypted. Protect the device and database file according to the sensitivity of your material. See SECURITY.md.

Roadmap

This public core is extracted from a larger system that is used and improved continuously. Planned public milestones include:

  • Provider-agnostic AI generation of question variants that test the same knowledge from different angles without copying private source material.
  • Source-linked web and semantic review to check generated items for factual correctness, knowledge coverage, ambiguity, and unintended answer leakage.
  • Reproducible evaluation fixtures for variant quality, prompt injection, and answer-safety regressions.
  • Expanded MCP tools for orchestrating generation, verification, review, and weak-point analysis while keeping durable learner data local.

These capabilities will be added behind explicit interfaces so the scheduling core remains inspectable, offline-capable, and independent of any single model provider.

Development

PYTHONPATH=src python3 -m unittest discover -s tests -v

Contributions are welcome. Please read CONTRIBUTING.md.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选