Yunite MCP服务器
基于HTTP/SSE的MCP服务器,用于Yunite平台,在端口7000上运行。
快速开始
1.安装依赖项
pip install -r requirements.txt2.配置环境
复制 .env.example 到 .env 并更新您的凭据:
cp .env.example .env
# Edit .env and add your ADMIN_USERNAME and ADMIN_PASSWORD3.启动服务器
选项A:直接运行
python3 server.py选项B:使用Docker运行
# Build and start
docker-compose up -d
# View logs
docker-compose logs -f
# Stop
docker-compose down服务器将于启动 http://localhost:7000
可用工具
查看/列出工具
list_departments-列出所有部门list_programs-列出学术课程list_cohorts-列出队列(批次)list_sections-列出章节/类别get_user_profile-获取当前用户配置文件list_posts-列出社区帖子get_user_groups-获取用户组
创建工具(学术管理员)
create_department-创建新部门create_program-创建学术课程create_cohort-创建队列(批次/年份组)create_section-创建节/类create_student-创建新的学生用户create_staff-创建新的员工/教员用户create_post-创建新帖子
更新工具
update_user_profile-更新用户配置文件信息
从克劳德桌面连接
直接运行
添加到您的 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"yunite": {
"url": "http://localhost:7000/sse"
}
}
}对于Docker运行
使用相同的配置(参见 claude_config_docker.json):
{
"mcpServers": {
"yunite-docker": {
"url": "http://localhost:7000/sse",
"transport": "sse"
}
}
}测试
测试服务器是否正在运行:
curl http://localhost:7000/sse