split-screen-mac-test


Namesplit-screen-mac-test JSON
Version 1.4.0 PyPI version JSON
download
home_pageNone
SummaryMCP Server for macOS Split Screen Window Management via Native APIs
upload_time2025-08-22 04:00:03
maintainerNone
docs_urlNone
authorBeta
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Beta Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords appkit macos mcp pyobjc quartz split-screen tiling window-management
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Split Screen Mac Test MCP Server

MCP server that exposes macOS split-screen tools via native PyObjC/Quartz APIs for maximum performance and reliability.

## Features

- **Native macOS implementation**: Uses PyObjC, Quartz, and AppKit for direct system access
- **Split-screen layouts**: Halves, quadrants, thirds, and two-thirds variations
- **Window controls**: Maximize, minimize, and fullscreen
- **MCP integration**: Full Model Context Protocol server support
- **No startup issues**: Screen detection only happens when tools are called

## MCP Client Configuration

Use this exact configuration in your MCP client:

```json
{
  "mcpServers": {
    "split-screen-mac-test": {
      "command": "uvx",
      "args": ["split-screen-mac-test-mcp"],
      "env": {}
    }
  }
}
```

## Setup for uvx (Required)

For the above configuration to work, you need to install PyObjC first:

```bash
# Install PyObjC in your current Python environment
pip install pyobjc-framework-cocoa

# Then your MCP client can use uvx to run the server
```

## Alternative Installation Methods

### Option 1: Install from PyPI (Most Reliable)
```bash
pip install split-screen-mac-test
```

Then use this MCP configuration:
```json
{
  "mcpServers": {
    "split-screen-mac-test": {
      "command": "split-screen-mac-test-mcp",
      "args": [],
      "env": {}
    }
  }
}
```

### Option 2: Clone and run locally
```bash
git clone <your-repo>
cd split-screen-mac-test
uvx --from . split-screen-mac-test-mcp
```

## Available Tools

- `left-half-screen` - Snap current window to left half
- `right-half-screen` - Snap current window to right half
- `top-half-screen` - Snap current window to top half
- `bottom-half-screen` - Snap current window to bottom half
- `top-left-screen` - Top-left quadrant
- `top-right-screen` - Top-right quadrant
- `bottom-left-screen` - Bottom-left quadrant
- `bottom-right-screen` - Bottom-right quadrant
- `left-one-third-screen` - Left third (1/3)
- `middle-one-third-screen` - Middle third (1/3)
- `right-one-third-screen` - Right third (1/3)
- `left-two-thirds-screen` - Left two-thirds (2/3)
- `right-two-thirds-screen` - Right two-thirds (2/3)
- `maximize-screen` - OS maximize (bordered)
- `fullscreen-screen` - Fullscreen (no borders)
- `minimize-screen` - Minimize window

## Technical Details

- **Platform**: macOS only (uses native PyObjC APIs)
- **Dependencies**: 
  - `mcp>=0.1.0`
  - `pyobjc-framework-cocoa>=9.0` (required for uvx)
- **Architecture**: Direct system calls via Quartz/AppKit for maximum performance
- **Startup**: Safe MCP initialization with lazy screen detection

## Troubleshooting

### ModuleNotFoundError: No module named 'AppKit'
This error occurs when PyObjC is not available. Solutions:

1. **For uvx users**: Install PyObjC first: `pip install pyobjc-framework-cocoa`
2. **Use pip installation**: `pip install split-screen-mac-test` (more reliable)
3. **Check Python version**: Ensure you're using Python 3.9+ with PyObjC support

### uvx Import Issues
If you're using `uvx` and getting import errors:

1. **Install PyObjC first**: `pip install pyobjc-framework-cocoa`
2. **Use pip instead**: `pip install split-screen-mac-test` (more reliable)
3. **Check Python version**: Ensure you're using Python 3.9+ with PyObjC support

## Why uvx Needs PyObjC First

- **uvx creates isolated environments**: Each run creates a temporary virtual environment
- **PyObjC is system-specific**: It's not a standard PyPI package that uv can easily install
- **macOS integration**: PyObjC requires system-level access that isolated environments don't have
- **Solution**: Install PyObjC in your main Python environment before using uvx

## Advantages over AppleScript-based solutions

- **Faster execution**: Direct API calls vs. AppleScript interpretation
- **Better error handling**: Native exception handling and fallbacks
- **More reliable**: No AppleScript parsing or execution issues
- **Lower latency**: Direct system access without intermediate layers

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "split-screen-mac-test",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "appkit, macos, mcp, pyobjc, quartz, split-screen, tiling, window-management",
    "author": "Beta",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d6/c1/1f666a295365094167a9028d3b2c4aa9b2b07a97fb060ebb45b424245ee1/split_screen_mac_test-1.4.0.tar.gz",
    "platform": null,
    "description": "# Split Screen Mac Test MCP Server\n\nMCP server that exposes macOS split-screen tools via native PyObjC/Quartz APIs for maximum performance and reliability.\n\n## Features\n\n- **Native macOS implementation**: Uses PyObjC, Quartz, and AppKit for direct system access\n- **Split-screen layouts**: Halves, quadrants, thirds, and two-thirds variations\n- **Window controls**: Maximize, minimize, and fullscreen\n- **MCP integration**: Full Model Context Protocol server support\n- **No startup issues**: Screen detection only happens when tools are called\n\n## MCP Client Configuration\n\nUse this exact configuration in your MCP client:\n\n```json\n{\n  \"mcpServers\": {\n    \"split-screen-mac-test\": {\n      \"command\": \"uvx\",\n      \"args\": [\"split-screen-mac-test-mcp\"],\n      \"env\": {}\n    }\n  }\n}\n```\n\n## Setup for uvx (Required)\n\nFor the above configuration to work, you need to install PyObjC first:\n\n```bash\n# Install PyObjC in your current Python environment\npip install pyobjc-framework-cocoa\n\n# Then your MCP client can use uvx to run the server\n```\n\n## Alternative Installation Methods\n\n### Option 1: Install from PyPI (Most Reliable)\n```bash\npip install split-screen-mac-test\n```\n\nThen use this MCP configuration:\n```json\n{\n  \"mcpServers\": {\n    \"split-screen-mac-test\": {\n      \"command\": \"split-screen-mac-test-mcp\",\n      \"args\": [],\n      \"env\": {}\n    }\n  }\n}\n```\n\n### Option 2: Clone and run locally\n```bash\ngit clone <your-repo>\ncd split-screen-mac-test\nuvx --from . split-screen-mac-test-mcp\n```\n\n## Available Tools\n\n- `left-half-screen` - Snap current window to left half\n- `right-half-screen` - Snap current window to right half\n- `top-half-screen` - Snap current window to top half\n- `bottom-half-screen` - Snap current window to bottom half\n- `top-left-screen` - Top-left quadrant\n- `top-right-screen` - Top-right quadrant\n- `bottom-left-screen` - Bottom-left quadrant\n- `bottom-right-screen` - Bottom-right quadrant\n- `left-one-third-screen` - Left third (1/3)\n- `middle-one-third-screen` - Middle third (1/3)\n- `right-one-third-screen` - Right third (1/3)\n- `left-two-thirds-screen` - Left two-thirds (2/3)\n- `right-two-thirds-screen` - Right two-thirds (2/3)\n- `maximize-screen` - OS maximize (bordered)\n- `fullscreen-screen` - Fullscreen (no borders)\n- `minimize-screen` - Minimize window\n\n## Technical Details\n\n- **Platform**: macOS only (uses native PyObjC APIs)\n- **Dependencies**: \n  - `mcp>=0.1.0`\n  - `pyobjc-framework-cocoa>=9.0` (required for uvx)\n- **Architecture**: Direct system calls via Quartz/AppKit for maximum performance\n- **Startup**: Safe MCP initialization with lazy screen detection\n\n## Troubleshooting\n\n### ModuleNotFoundError: No module named 'AppKit'\nThis error occurs when PyObjC is not available. Solutions:\n\n1. **For uvx users**: Install PyObjC first: `pip install pyobjc-framework-cocoa`\n2. **Use pip installation**: `pip install split-screen-mac-test` (more reliable)\n3. **Check Python version**: Ensure you're using Python 3.9+ with PyObjC support\n\n### uvx Import Issues\nIf you're using `uvx` and getting import errors:\n\n1. **Install PyObjC first**: `pip install pyobjc-framework-cocoa`\n2. **Use pip instead**: `pip install split-screen-mac-test` (more reliable)\n3. **Check Python version**: Ensure you're using Python 3.9+ with PyObjC support\n\n## Why uvx Needs PyObjC First\n\n- **uvx creates isolated environments**: Each run creates a temporary virtual environment\n- **PyObjC is system-specific**: It's not a standard PyPI package that uv can easily install\n- **macOS integration**: PyObjC requires system-level access that isolated environments don't have\n- **Solution**: Install PyObjC in your main Python environment before using uvx\n\n## Advantages over AppleScript-based solutions\n\n- **Faster execution**: Direct API calls vs. AppleScript interpretation\n- **Better error handling**: Native exception handling and fallbacks\n- **More reliable**: No AppleScript parsing or execution issues\n- **Lower latency**: Direct system access without intermediate layers\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2024 Beta\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "MCP Server for macOS Split Screen Window Management via Native APIs",
    "version": "1.4.0",
    "project_urls": null,
    "split_keywords": [
        "appkit",
        " macos",
        " mcp",
        " pyobjc",
        " quartz",
        " split-screen",
        " tiling",
        " window-management"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bef02b25cff3e4a27f1d279c36c4be642051954728f80d9a65adba63c500ecef",
                "md5": "a2eddcda7ac33d6ddcf23625084b2c7b",
                "sha256": "dd9511fcc265e0cedd998084364633af3867bc6bbbec6aada906e5d55655d1bc"
            },
            "downloads": -1,
            "filename": "split_screen_mac_test-1.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a2eddcda7ac33d6ddcf23625084b2c7b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9260,
            "upload_time": "2025-08-22T04:00:02",
            "upload_time_iso_8601": "2025-08-22T04:00:02.660006Z",
            "url": "https://files.pythonhosted.org/packages/be/f0/2b25cff3e4a27f1d279c36c4be642051954728f80d9a65adba63c500ecef/split_screen_mac_test-1.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d6c11f666a295365094167a9028d3b2c4aa9b2b07a97fb060ebb45b424245ee1",
                "md5": "2635015f8ebb4d7e8007cc6fbd06ba78",
                "sha256": "f95fa964cf260f285f65ad86bfdc873cac462e113c15a8e77981a3b5bccd6dd5"
            },
            "downloads": -1,
            "filename": "split_screen_mac_test-1.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2635015f8ebb4d7e8007cc6fbd06ba78",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 8717,
            "upload_time": "2025-08-22T04:00:03",
            "upload_time_iso_8601": "2025-08-22T04:00:03.908639Z",
            "url": "https://files.pythonhosted.org/packages/d6/c1/1f666a295365094167a9028d3b2c4aa9b2b07a97fb060ebb45b424245ee1/split_screen_mac_test-1.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-22 04:00:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "split-screen-mac-test"
}
        
Elapsed time: 1.86890s