{"id":26528578,"url":"https://github.com/NakaokaRei/swift-mcp-gui","last_synced_at":"2025-03-21T16:02:38.003Z","repository":{"id":283441163,"uuid":"951772990","full_name":"NakaokaRei/swift-mcp-gui","owner":"NakaokaRei","description":"MCP Sever for manipulating macOS","archived":false,"fork":false,"pushed_at":"2025-03-20T08:41:09.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T09:27:50.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NakaokaRei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-20T08:12:45.000Z","updated_at":"2025-03-20T08:41:13.000Z","dependencies_parsed_at":"2025-03-20T09:28:12.064Z","dependency_job_id":"763078c8-8fb2-4362-931e-ae5fc4235604","html_url":"https://github.com/NakaokaRei/swift-mcp-gui","commit_stats":null,"previous_names":["nakaokarei/swift-mcp-gui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakaokaRei%2Fswift-mcp-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakaokaRei%2Fswift-mcp-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakaokaRei%2Fswift-mcp-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakaokaRei%2Fswift-mcp-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NakaokaRei","download_url":"https://codeload.github.com/NakaokaRei/swift-mcp-gui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825629,"owners_count":20516591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-21T16:01:36.477Z","updated_at":"2025-03-21T16:02:37.980Z","avatar_url":"https://github.com/NakaokaRei.png","language":"Swift","funding_links":[],"categories":["CLI Tools","サーバー実装"],"sub_categories":["Playwright","🛠️ \u003ca name=\"other-tools-and-integrations\"\u003e\u003c/a\u003eその他のツールと統合"],"readme":"# Swift MCP GUI Server\n\nA Model Context Protocol (MCP) server that allows controlling Mac OS X through [SwiftAutoGUI](https://github.com/NakaokaRei/SwiftAutoGUI). This server provides tools for programmatically controlling the mouse and keyboard through MCP clients.\n\n## Requirements\n\n- macOS 15.0 or later\n- Swift 6.0 or later\n- Xcode 16.0 or later\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/NakaokaRei/swift-mcp-gui.git\ncd swift-mcp-gui\n```\n\n2. Install\n```bash\nswift package experimental-install\n```\n\n3. Add command to your MCP client.\n```json\n{\n  \"mcpServers\" : {\n    \"swift-mcp-gui\" : {\n      \"command\" : \"/Users/USERNAME/.swiftpm/bin/swift-mcp-gui\"\n    }\n  }\n}\n\n```\n\n## Available Tools\n\nThe server provides the following tools for controlling macOS:\n\n### 1. Mouse Movement\n- Tool name: `moveMouse`\n- Input:\n  - `x`: double (x-coordinate)\n  - `y`: double (y-coordinate)\n- Moves the mouse cursor to the specified coordinates\n\n### 2. Mouse Clicks\n- Tool name: `mouseClick`\n- Input:\n  - `button`: String (\"left\" or \"right\")\n- Performs a mouse click at the current cursor position\n\n### 3. Keyboard Input\n- Tool name: `sendKeys`\n- Input:\n  - `keys`: Array of strings (key names)\n- Sends keyboard shortcuts or key combinations\n- Example keys: \"command\", \"control\", \"option\", \"shift\", \"return\", \"space\", \"a\", \"1\", etc.\n\n### 4. Scrolling\n- Tool name: `scroll`\n- Input:\n  - `direction`: String (\"up\", \"down\", \"left\", \"right\")\n  - `clicks`: Integer (number of scroll clicks)\n- Performs scrolling in the specified direction\n\n## Security Considerations\n\nThis server has full control over your mouse and keyboard. Be careful when running it and only connect trusted MCP clients.\n\n## License\n\nMIT License \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNakaokaRei%2Fswift-mcp-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNakaokaRei%2Fswift-mcp-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNakaokaRei%2Fswift-mcp-gui/lists"}