Covate
io.github.SunflowersLwtech由 GitHub 账号 SunflowersLwtech 发布v1.2.0更新于 Oct 29, 2026
Learning sidebar for AI coding assistants: quizzes on your changes, debug memory, term explanations
概览
面向 AI 编程助手的本地学习侧车:针对代码改动出测验、保存项目调试记忆、查询编程术语。
- 可以做什么
- 针对最近的代码改动发起交互式测验,可选逻辑、安全、性能等侧重点,并等待用户完成
- 在项目调试历史中检索以往对某个错误的解决方案
- 把调试经验(原因、解决方案、标签)记录到项目知识库
- 按领域获取编程术语与概念,并记录已展示的术语以免重复
- 在本地维护间隔复习账本,离线为测验答案计分
- 适用场景
- 适合希望真正理解 AI 生成的代码改动、而不只是直接接受的人;也适合助手反复解决同一类错误、需要项目级调试记忆的场景。主要面向使用支持 MCP 的编程 IDE 的开发者。
- 运行要求
- 以 stdio 在本地运行;README 列出 Python 3.11+ 或 uv,也可用 Docker。MCP 服务器本身无需账号或 API 密钥。可选的托管学习账本需用 GitHub 登录,并设置 COVATE_SYNC_URL 与 COVATE_SYNC_TOKEN。可选变量 MCP_DEBUG、MCP_TIMEOUT、MAX_MCP_OUTPUT_TOKENS 用于调整日志与限制。
安装
在 SourceWeft 中
- 打开 控制台中的 Covate,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[图片] Covate
A context-aware Model Context Protocol (MCP) server that acts as a learning sidecar for AI coding assistants. It helps developers learn from AI-generated code changes through interactive quizzes and provides agents with a persistent project-specific debugging memory.
[License: MIT] [Python 3.11+] [MCP Standard] [Docker] [Glama MCP] [DeepWiki]
🌐 Resources
🚀 Why Use This?
☁️ Covate learning ledger (free)
The MCP server in this repo is free and open-source (MIT) — run it locally, no account required.
The optional hosted learning ledger is free too: sign in with
GitHub, then run COVATE_SYNC_URL=https://covate.org COVATE_SYNC_TOKEN=<your token> python -m covate.platform_sync from a project to push your local sessions up and review them in a browser:
- ☁️ Sync your learning sessions from any machine
- 📖 Every synced session, newest first, with its score
- 📊 Totals — sessions, questions, correct answers, running accuracy
- 🎯 The topics you answer worst, ranked
- 🔑 Your sync token — reveal or rotate it whenever you want
Not built yet, so not promised: progress-over-time charts, spaced-repetition study plans, team accounts. There is no paid tier and nothing to buy — the MCP works fully without the ledger, and the ledger costs nothing.
🔁 Spaced review (local, offline)
covate review keeps a small local ledger of concepts and when to ask about them again. It
never talks to the network or to a model; your own agent writes the questions and publishes
the page (for example with the FoldRender command line).
Only the first pick on each question counts, so changing an answer after seeing the
explanation cannot raise the score. (FoldRender shows the explanation during its few-second
undo window, so an answer you take back inside that window does not count; one you leave
alone does.) A new concept comes back after 1 day, then 7, then 30
days; a wrong answer sends it back to the 1-day step; passing all three means mastered.
The ledger lives in the global Covate storage (override with COVATE_REVIEW_LEDGER).
questions.json is {"title": ..., "questions": [{"concept", "question", "options": [...], "correct": <0-based index>, "explanation"?}]}.
In Claude Code, install the plugin to get the MCP server plus /covate:review and
/covate:review-record, which walk your agent through the steps above (no hooks, nothing runs
unless you call it):
📦 Available Tools
Tool Details
🎓 learning_session - Interactive Learning Card
Trigger: User explicitly requests (e.g., "Quiz me", "Test my understanding")
Parameters:
Returns: {"status": "completed", "action": "HALT_GENERATION"}
🔍 debug_search - Search Debug History
Trigger: Auto-called when encountering errors (silent, no UI)
Parameters:
Returns: {"results": [...], "count": N}
📝 debug_record - Record Debug Experience
Trigger: Auto-called after fixing bugs (silent, background)
Parameters:
Returns: {"ok": true, "id": "..."}
📚 term_get - Get Programming Terms
Available Domains: programming_basics, data_structures, algorithms, software_design, web_development, version_control, testing, security, databases, devops
Parameters:
Returns: {"terms": [...], "count": N, "remaining": N}
🛠️ Installation
One-Line Install (Recommended)
The installer will:
- Auto-detect your Python environment (uv → conda → venv)
- Clone the repository to
~/covate - Create virtual environment and install dependencies
- Print the exact command to configure your IDE
Manual Installation
Click to expand manual installation steps
Prerequisites: Python 3.11+ or uv
Docker Installation
Click to expand Docker installation steps
Prerequisites: Docker installed on your system
For detailed Docker usage, persistent storage, and Claude Desktop integration, see DOCKER.md.
⚙️ IDE Configuration
Claude Code (CLI) — One Command Setup
After installation, configure your AI coding IDE to use this MCP server.
Claude Code
Option 1: CLI (Recommended)
Option 2: Config File
Add to ~/.claude.json:
For Windows:
Example paths:
- Unix (uv):
~/covate/covate/bin/covate - Windows (uv):
C:\\Users\\YourName\\covate\\covate\\Scripts\\covate.exe - Windows (conda):
C:\\Users\\YourName\\anaconda3\\envs\\covate\\Scripts\\covate.exe
Path breakdown (Unix example):
~/covate→ repository directorycovate→ virtual environment directory created by uv/venvbin/covate→ executable
Cursor
Add to Cursor MCP settings (Settings → MCP → Add Server):
For Windows:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Docker Configuration
To use Docker with any MCP-compatible IDE:
See DOCKER.md for detailed Docker configuration examples for Claude Desktop, Cursor, and other IDEs.
Other IDEs
For any MCP-compatible IDE, use these settings:
- Command:
<install-path>/covate/bin/covate(orcovate\Scripts\covate.exeon Windows) - Transport: stdio
After configuration, restart your IDE.
Usage
Available Tools
For Users: Learning Session
Say to your AI assistant:
- "Quiz me on this change"
- "Test my understanding"
- "Help me learn about what you did"
The agent will create an interactive learning card and wait until you complete it.
Note: Quiz scores are saved locally for your self-tracking but are NOT returned to the agent - this keeps the context clean.
For Agents: Debug Tools
The debug tools work silently in the background:
- Search first: When encountering errors, agent searches past solutions
- Record after: When fixing errors, agent records the solution
- Progressive disclosure: Returns compact summaries, not full records
- Fast lookups: Uses inverted index for keyword-based searches
Updating
One-Line Update (Recommended)
The remote update script automatically detects your installation and works with any path format (including Chinese/non-ASCII paths):
The update script will:
- Auto-detect your installation location (supports multiple installations)
- Pull the latest changes from the repository
- Force-reinstall dependencies to ensure version synchronization
- Verify installation integrity and report any issues
- Detect if MCP server is in use and provide clear instructions
Why remote update?
- ✅ Works with Chinese/non-ASCII paths without
cdnavigation- ✅ Always uses the latest update logic from the repository
- ✅ Auto-detects installation location even if you forgot where it is
- ✅ Handles multiple installations gracefully
Local Update (Alternative)
macOS / Linux:
Windows (PowerShell):
Manual Update
Click to expand manual update steps
🖼️ Screenshots
Learning Session WebUI
🔒 Security & Privacy
🔮 Roadmap
We're building toward a Personalized Learning Center that grows with you. Here's what's coming:
🔍 Advanced Search & Indexing (v1.3)
📱 Mobile App (v2.0)
🎯 Personalized Learning Center (v2.5)
🤖 AI Enhancements (v3.0)
Want to influence the roadmap? Open an issue or join the discussion!
🔧 Environment Variables
🤝 Contributing
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Install dev dependencies:
uv pip install -e '.[dev]' - Make changes and run tests:
pytest - Submit a Pull Request
See CONTRIBUTING.md for detailed guidelines.
📬 Contact
📄 License
This project is licensed under the MIT License.
Built with FastMCP • MCP Standard • Glama MCP
来源:README.md,提交 5203713
工具
0版本历史
1- v1.2.0最新Oct 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
