modelscope·@huegli/capture-win-mcp
暂无描述。
MCP (Model Context Protocol) server for capturing macOS windows and tracking Spaces. This server provides tools for AI assistants to interact with macOS windows through yabai and the built-in screencapture utility.
** Quick Start Guide** | ** Distribution Guide** | ** Developer Docs**
brew install koekeishiya/formulae/yabai
yabai --start-service
Using uv:
uv pip install git+https://github.com/huegli/capture-win-mcp.git
Using pip:
pip install git+https://github.com/huegli/capture-win-mcp.git
Once published to PyPI:
# Using uv
uv pip install capture-win-mcp
# Using pip
pip install capture-win-mcp
# Clone the repository
git clone https://github.com/huegli/capture-win-mcp.git
cd capture-win-mcp
# Create virtual environment
uv venv # or: python3 -m venv venv
source .venv/bin/activate
# Install in editable mode
uv pip install -e . # or: pip install -e .
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
If installed via pip/uv (recommended):
{
"mcpServers": {
"capture-win": {
"command": "capture-win-mcp"
}
}
}
If running from source directory:
{
"mcpServers": {
"capture-win": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/capture-win-mcp",
"run",
"capture-win-mcp"
]
}
}
}
If using a specific Python environment:
{
"mcpServers": {
"capture-win": {
"command": "/path/to/venv/bin/capture-win-mcp"
}
}
}
After adding the configuration, restart Claude Desktop for the changes to take effect.
list_windowsLists all windows organized by macOS Space.
Parameters:
format (optional): Output format - "json" (default) or "summary"Example:
{
"format": "summary"
}
Returns: Window and Space information including:
capture_windowCaptures a screenshot of a specific window.
Parameters:
window_id (required): The window ID to capture (get this from list_windows)include_shadow (optional): Include window shadow in capture (default: true)Example:
{
"window_id": 12345,
"include_shadow": false
}
Returns: Base64-encoded PNG image of the window
You can also use the original window tracking functionality:
# Show windows by space
python main.py
# Show spaces summary
python main.py --spaces
# Export to JSON
python main.py --export output.json
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install in development mode
pip install -e .
# Run the MCP server
python -m capture_win_mcp.server
capture_win_mcp/tracker.py: EnhancedSpaceTracker class that interfaces with yabaicapture_win_mcp/server.py: MCP server implementation with toolsmain.py: Standalone CLI tool for window trackingMake sure yabai is installed and running:
brew install koekeishiya/formulae/yabai
yabai --start-service
list_windows first)MIT
一座通过串行通信将物理硬件设备与人工智能大语言模型连接起来的桥梁,允许用户使用自然语言命令控制硬件。
用于运行代码片段并显示结果的MCP服务器。
一个通过ADB实现对Android设备程序化控制的服务器,提供截图捕获、UI布局分析和包管理等功能,这些功能可以被像Claude Desktop这样的MCP客户端使用。
Claude Code作为模型上下文协议(MCP)服务器的一种实现,通过标准的MCP接口启用Claude的软件工程能力(代码生成、编辑、评审和文件操作)。
用于Cursor IDE的模型上下文协议(MCP)服务器,可简化其他MCP服务器的安装和配置。
一个MCP服务器,允许通过自然语言管理Docker容器,使用户能够在不自行运行命令的情况下组合、检查和调试容器。