将 thesis-tutor 技能封装为 MCP 服务器,供其他 AI Agent 通过 MCP 协议调用。
AI Agent (MCP Client)
↓ MCP Protocol
thesis-tutor-mcp/server.py (FastMCP)
↓
7 Tools (Python Logic)
↓
references/*.md (静态文献库)
| Tool | 用途 | 典型场景 |
|---|---|---|
| ------ | ------ | ---------- |
get_topic_suggestions | 选题推荐 | "帮我推荐几个论文题目" |
generate_outline | 大纲生成 | "帮我搭一个论文大纲" |
review_chapter | 内容批注 | "帮我看看这段写得怎么样" |
interpret_feedback | 解读导师反馈 | "导师说论证不充分" |
run_checklist | 交稿前检查 | "帮我过一遍自检清单" |
simulate_defense | 答辩模拟 | "帮我模拟答辩" |
list_references | 参考文献索引 | 查询可用文献 |
get_reference | 读取参考文献 | 获取某专项的详细内容 |
get_skill_info | 技能元信息 | 查看版本、作者等 |
pip install fastmcp
开发调试模式:
cd D:\Skill Encyclopedia\thesis-tutor-mcp
fastmcp dev server.py
生产模式:
fastmcp run server.py
在 OpenClaw 配置中添加:
{
"mcpServers": {
"thesis-tutor": {
"command": "fastmcp",
"args": ["run", "D:/Skill Encyclopedia/thesis-tutor-mcp/server.py"]
}
}
}
MCP 调用:
{
"tool": "get_topic_suggestions",
"args": {
"major": "市场营销",
"grade": "本科",
"interests": "直播带货",
"require_data": false
}
}
返回:
{
"status": "success",
"suggestions": [
{"rank": 1, "title": "消费者在直播间的购买意愿影响因素研究——以XXX为例", "difficulty": "中", "data_needed": "可选"},
...
],
"next_step": "选题后,进入阶段2或阶段3"
}
MCP 调用:
{
"tool": "run_checklist",
"args": {
"stage": "full"
}
}
返回:
{
"status": "success",
"message": "请按以下顺序检查:格式 → 内容 → 查重 → 答辩 → 提交",
"checklist": {
"format": {"title": "📐 格式检查", "items": [...]},
"content": {"title": "📝 内容完整性", "items": [...]},
...
}
}
MCP 调用:
{
"tool": "interpret_feedback",
"args": {
"feedback": "论证不够充分",
"chapter": "第4章 实证分析"
}
}
返回:
{
"status": "success",
"interpretations": [{
"matched_keyword": "论证不够充分",
"meaning": "论点和论据之间缺乏逻辑连接",
"actions": ["补充更多支撑数据", "增加过渡句", "增加对比论证"],
"example": "原:直播带货效果好。改:据艾瑞咨询数据,2024年直播电商规模达2.8万亿..."
}],
"quick_win": "最快速的改进方式:补充更多支撑数据"
}
| ID | 文件 | 简介 |
|---|---|---|
| ---- | ------ | ------ |
| checklist | checklist.md | 论文自检四维清单 |
| literature_review | literature-review.md | 文献综述写作 |
| plagiarism_guide | plagiarism-guide.md | 查重与AI检测 |
| toolchain_guide | toolchain-guide.md | 工具链与时间规划 |
| topic_selection | topic-selection.md | 选题诊断指南 |
| quantitative_research | quantitative-research.md | 量化研究全程 |
| qualitative_research | qualitative-research.md | 质性研究专项 |
| outline_templates | outline-templates.md | 多学科大纲模板 |
共 1 个版本