mathdoit
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mathdoit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0ae6f447284910e7e88bbb69c8f8d81edf0cb2951029ce8dc17f5eea0ebdeef3. Verify the upstream source and version against https://skillhub.cn/skills/user_9a4e6cf1/mathdoit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generate math animations and 3D interactive scenes via MathDoIt: used to create math lecture videos, animations, Manim animations, function plots, and visualized geometric proofs, supporting 2D Manim animation videos and 3D Three.js interactive scenes.
Introduction source: third_party · user_9a4e6cf1 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: mathdoit-client
version: 2.0
description: 通过 MathDoIt (www.mathdoit.cn) 服务生成数学动画视频和 3D 交互场景。当用户需要生成数学讲解视频、数学动画、Manim 动画、函数图像、几何证明推理过程可视化等任务时使用。支持 2D Manim 动画视频和 3D Three.js 交互场景。MathDoIt Client Skill v2.0
通过 MathDoIt 公网服务 (https://www.mathdoit.cn) 生成数学视频和 3D 场景。
⚠️ 重要注意事项
- 所有 HTTP 请求必须包含
User-Agent请求头,否则会被 Cloudflare 拦截返回 HTTP 403。- CLI 脚本和 MCP 服务器已内置处理(v2.0+),无需手动添加。
- 账号额度:非订阅用户有免费生成次数限制,用完需订阅。登录时会返回额度信息。
- 轮询间隔:建议 3 秒,避免频繁请求。
- 视频处理时间:通常 2-5 分钟,最长 10 分钟。
安装指南
前置需求
- Python 3.8+(CLI 和 MCP 服务器需要)
- 依赖安装:
pip install requests # CLI 工具需要(可选,v2.0 使用标准库 urllib) pip install "mcp[cli]" # MCP 服务器需要(可选,不装则自动用纯 stdio 模式) - MathDoIt 账号:在 www.mathdoit.cn 注册(需要邀请码)
文件位置
本技能包位于 ~/.qclaw/skills/mathdoit-client/ 目录下。配置 MCP 时需要填写脚本的绝对路径,例如:
# Windows
C:\Users\你的用户名\.qclaw\skills\mathdoit-client\scripts\mathdoit_mcp_server.py
# macOS / Linux
/home/你的用户名/.qclaw/skills/mathdoit-client/scripts/mathdoit_mcp_server.py
QClaw 配置步骤
- 打开 QClaw 电脑客户端 → 设置 → MCP 服务器
- 点击 添加服务器
- 填写:
- 服务器名称:
mathdoit - 命令:
python - 参数:
["你的绝对路径/mathdoit_mcp_server.py"] - 环境变量:
MATHDOIT_SERVER=https://www.mathdoit.cn MATHDOIT_USERNAME=你的邮箱或用户名 MATHDOIT_PASSWORD=你的密码
- 服务器名称:
- 点击 测试连接,成功后保存
WorkBuddy 配置步骤
- 打开 WorkBuddy → 侧边栏 插件 → 点击右上角 MCP 服务器
- 在配置编辑器中粘贴以下内容(替换路径和账号信息):
{ "mcpServers": { "mathdoit": { "command": "python", "args": ["你的绝对路径/mathdoit_mcp_server.py"], "env": { "MATHDOIT_SERVER": "https://www.mathdoit.cn", "MATHDOIT_USERNAME": "你的邮箱或用户名", "MATHDOIT_PASSWORD": "你的密码" } } } } - 保存后查看状态是否为 🟢 绿色
- 在对话中直接说:"帮我生成一个勾股定理的数学视频"
用户级配置(所有项目复用):~/.workbuddy/mcp.json
项目级配置(仅当前项目):<项目目录>/.workbuddy/mcp.json
Trae 配置步骤
- 在项目根目录创建或编辑
.trae/mcp.json - 粘贴上述 JSON 配置
- 重启 Trae,MCP 工具自动加载
Cursor 配置步骤
- 编辑
.cursor/mcp.json(项目根目录)或全局配置 - 粘贴上述 JSON 配置
- 重启 Cursor,MCP 工具自动加载
Claude Desktop 配置步骤
- 编辑
claude_desktop_config.json:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- 在
mcpServers中添加mathdoit配置 - 重启 Claude Desktop
验证 MCP 连接
配置完成后,在对应的 AI Agent 中发送以下消息验证:
"列出你当前可用的 MCP 工具"
如果配置成功,应该能看到 generate_math_video 和 check_video_status 两个工具。
直接使用 CLI 验证(无需 MCP 配置)
如果只需要用命令行测试,可以跳过 MCP 配置:
python ~/.qclaw/skills/mathdoit-client/scripts/mathdoit_client.py generate \
--username your@email.com \
--password your-password \
--problem "勾股定理证明" \
--type 2d
视频会自动下载到桌面。
使用流程
方法一:使用 CLI 脚本(推荐 QClaw Agent 使用)
Agent 直接调用 CLI 脚本执行完整流程(登录 → 提交 → 轮询 → 下载):
python ~/.qclaw/skills/mathdoit-client/scripts/mathdoit_client.py generate \
--username user@example.com \
--password 123456 \
--problem "勾股定理的证明" \
--type 2d
环境变量方式(避免在命令行暴露密码):
export MATHDOIT_USERNAME=user@example.com
export MATHDOIT_PASSWORD=123456
python ~/.qclaw/skills/mathdoit-client/scripts/mathdoit_client.py generate \
--problem "三角函数" --type 3d
上传手写题目图片:
python ~/.qclaw/skills/mathdoit-client/scripts/mathdoit_client.py generate \
--username user@example.com --password 123456 \
--problem "解这道题" --image photo.jpg --type 2d
分步操作:
# 1. 登录获取 token
python mathdoit_client.py login --username user@example.com --password 123456
# 2. 提交任务(使用返回的 token)
python mathdoit_client.py submit --token <TOKEN> --problem "勾股定理" --type 2d
# 3. 查询状态
python mathdoit_client.py status --task-id <TASK_ID>
# 4. 获取结果
python mathdoit_client.py results --task-id <TASK_ID>
# 5. 下载文件
python mathdoit_client.py download --task-id <TASK_ID>
方法二:使用 MCP 服务器(推荐外部 AI Agent 使用)
MCP 服务器通过标准协议暴露工具,WorkBuddy、QClaw、Trae、Cursor、Claude Desktop 等支持 MCP 的 AI Agent 均可使用。
配置方式(各 Agent 通用):
{
"mcpServers": {
"mathdoit": {
"command": "python",
"args": ["path/to/mathdoit_mcp_server.py"],
"env": {
"MATHDOIT_SERVER": "https://www.mathdoit.cn",
"MATHDOIT_USERNAME": "用户邮箱或用户名",
"MATHDOIT_PASSWORD": "用户密码"
}
}
}
}
暴露的工具:
| 工具名 | 功能 | 参数 |
|---|---|---|
generate_math_video |
生成数学视频/3D场景 | problem(必填), render_type(2d/3d), image_path(可选) |
check_video_status |
查询任务状态 | task_id(必填) |
工作流(Agent 执行指南)
当用户要求生成数学视频时,按以下步骤执行:
-
收集需求:
- 数学问题是什么?(如"勾股定理"、"函数图像"、"微积分")
- 想要 2D 动画视频还是 3D 交互场景?(默认 2D)
- 有无手写题目图片要上传?(可选)
- 提供 MathDoIt 账号的用户名/密码(或通过环境变量配置)
-
执行生成:调用 CLI 脚本或 MCP 工具执行
-
告知结果:告诉用户视频已下载到桌面,文件路径和答案
Agent 直接调用 CLI 的注意事项
当 Agent(如 QClaw)直接通过 exec 调用 CLI 脚本时:
- Python 输出缓冲:CLI 脚本中所有
print语句已添加flush=True,确保实时输出 - 超时设置:建议设置 600 秒超时(视频生成通常需要 2-5 分钟)
- 后台运行:使用
yieldMs=30000让命令后台运行,然后通过process工具轮询进度 - 输出无内容时:如果
exec返回(no output),可能是 Python 缓冲问题,写独立.py文件执行
环境变量
| 变量 | 用途 | 默认值 |
|---|---|---|
MATHDOIT_SERVER |
服务器地址 | https://www.mathdoit.cn |
MATHDOIT_USERNAME |
用户名/邮箱 | - |
MATHDOIT_PASSWORD |
密码 | - |
API 参考文档
版本历史
| 版本 | 更新内容 |
|---|---|
| v2.0 | 修复 Cloudflare 403 问题(添加 User-Agent);改进错误信息展示;支持环境变量配置账号;轮询间隔优化为 3 秒;MCP 服务器版本号更新 |
| v1.0 | 初始版本:CLI + MCP 服务器 |
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供数学动画视频和 3D 交互场景生成能力,满足数学教学和可视化需求
- 支持 2D Manim 动画和 3D Three.js 场景,功能较为全面
Highlights
- 触发描述清晰明确,覆盖多种数学可视化场景
- 边界定义清楚,不易与其他 Skill 混淆
Highlights
- 文档结构完整,包含安装、配置、使用流程等关键章节
- 提供了详细的 CLI 和 MCP 使用示例,便于用户快速上手
Highlights
- 工具来源明确,参数说明清晰
- 覆盖了主要异常情况和注意事项,如 Cloudflare 拦截、账号额度等
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 26, 27
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.mathdoit.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.