- Install dependencies | 安装依赖:
uv sync- Set up environment variables | 设置环境变量:
export MCP_ENDPOINT=<your_mcp_endpoint>- Run the Anki MCP example | 运行Anki MCP示例:
uv run mcp_pipe.py anki.pymcp_pipe.py: Main communication pipe that handles WebSocket connections and process management | 处理WebSocket连接和进程管理的主通信管道anki.py: MCP tool implementation for communicating with AnkiConnect to control AnkiDesktop | 用于与AnkiConnect通信以控制AnkiDesktop的MCP工具实现pyproject.toml: Project configuration and dependencies | 项目配置和依赖uv.lock: Lock file for reproducible dependency resolution | 依赖解析锁定文件