EduChain MCP服务器集成
📚 项目概述
该项目演示了如何集成 educhain 将库转换为MCP(模块化命令协议)服务器,以动态生成教育内容。MCP服务器被配置为向外部客户端公开工具和资源,例如 克劳德桌面.
______________________________________________________________________
🛠️ 特性
- ✅ 使用EduChain引擎生成多项选择题(MCQ)
- ✅ 为任何给定的教育主题制定教案
- ✅ 使用MCP兼容的服务器集成
mcp软件开发工具包 - ✅ 与Claude Desktop兼容(通过
claude_desktop_config.json) - ✅ 响应格式为JSON,便于使用
______________________________________________________________________
🎥 演示视频
存储库中包含显示MCP服务器运行的演示视频:
______________________________________________________________________
🗂️ 项目结构
mcp-server-demo/
│
├── .env # Environment variables (optional)
├── .gitignore # Git ignore rules
├── .python-version # Python version for pyenv (if used)
├── claude_desktop_config.json # Configuration file for Claude Desktop
├── educhain_engine.py # Custom EduChain wrapper functions
├── main.py # (Optional) Entry script
├── server.py # MCP server implementation
├── requirements.txt # Python dependencies
├── pyproject.toml # MCP project metadata
├── uv.lock # Dependency lockfile (uv)
└── README.md # This documentation______________________________________________________________________
⚙️ 设置和安装
克隆存储库:
git clone [your-github-repository-url]
cd MCP_Server_Educhain安装紫外线:
# On most systems:
pip install uv安装依赖关系:
uv add -r requirements.txt设置API密钥:
- 创建一个
.env根目录中的文件 - 添加您的Google API密钥:
GOOGLE_API_KEY="your-api-key-goes-here"______________________________________________________________________
▶️ 如何跑步
从终端启动MCP服务器:
uv run mcp install server.py服务器将通过MCP公开生成MCQ、课程计划和抽认卡的工具。
______________________________________________________________________
