织机本地MCP服务器
MCP服务器,用于从织机视频或本地文件中提取关键帧进行调试分析。
快速开始
# Build and start the container
./scripts/setup.sh用法
Claude代码配置
增添 ~/.claude.json:
{
"mcpServers": {
"loom-agent": {
"command": "docker",
"args": ["exec", "-i", "loom-agent", "python", "-m", "loom_agent"]
}
}
}分析织机视频
在Claude Code中,只需提及一个Loom URL:
“我正在auth.py中调试此问题。这是显示错误的Loom:https://loom.com/share/abc123"
Claude将自动提取关键帧并对其进行分析。
本地视频文件
- 插入视频
~/loom-videos/ - 按文件名引用:
“查看此录音中的错误:bug demo.mp4”
刀具参数
| 参数 | 默认值 | 说明 |
|---|---|---|
source | 必需 | 织机URL或本地文件名 |
threshold | 0.3 | 场景切换灵敏度(0.0-1.0)。更低=更多帧 |
max_frames | 20 | 要提取的最大帧数 |
目录
~/loom-videos/-在此处删除本地视频~/loom-frames/-提取的帧显示在此处
发展
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run server locally (without Docker)
python -m loom_agent