windows-control-center-mcp 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of windows-control-center-mcp might be problematic. Click here for more details.

Files changed (26) hide show
  1. windows_control_center_mcp-1.0.0/LICENSE +21 -0
  2. windows_control_center_mcp-1.0.0/PKG-INFO +272 -0
  3. windows_control_center_mcp-1.0.0/README.md +240 -0
  4. windows_control_center_mcp-1.0.0/pyproject.toml +68 -0
  5. windows_control_center_mcp-1.0.0/setup.cfg +4 -0
  6. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/sandbox.py +271 -0
  7. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/security.py +1535 -0
  8. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/server.py +607 -0
  9. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/tools/__init__.py +1 -0
  10. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/tools/command_tools.py +426 -0
  11. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/tools/desktop_tools.py +250 -0
  12. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/tools/filesystem_tools.py +424 -0
  13. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/tools/system_tools.py +181 -0
  14. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/windows_control_center_mcp.egg-info/PKG-INFO +272 -0
  15. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/windows_control_center_mcp.egg-info/SOURCES.txt +30 -0
  16. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/windows_control_center_mcp.egg-info/dependency_links.txt +1 -0
  17. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/windows_control_center_mcp.egg-info/entry_points.txt +2 -0
  18. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/windows_control_center_mcp.egg-info/requires.txt +8 -0
  19. windows_control_center_mcp-1.0.0/src/windows-control-center-mcp/windows_control_center_mcp.egg-info/top_level.txt +4 -0
  20. windows_control_center_mcp-1.0.0/tests/test_command_tools.py +133 -0
  21. windows_control_center_mcp-1.0.0/tests/test_desktop_tools.py +112 -0
  22. windows_control_center_mcp-1.0.0/tests/test_filesystem_tools.py +267 -0
  23. windows_control_center_mcp-1.0.0/tests/test_sandbox.py +151 -0
  24. windows_control_center_mcp-1.0.0/tests/test_security.py +813 -0
  25. windows_control_center_mcp-1.0.0/tests/test_server.py +176 -0
  26. windows_control_center_mcp-1.0.0/tests/test_system_tools.py +97 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Windows Control Center MCP Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,272 @@
1
+ Metadata-Version: 2.4
2
+ Name: windows-control-center-mcp
3
+ Version: 1.0.0
4
+ Summary: A secure, strictly local Windows Control Center Model Context Protocol (MCP) server for Antigravity, AGY CLI, Claude Desktop, and AI agents.
5
+ License: MIT
6
+ Project-URL: Homepage, https://github.com/subhasishsaha/windows-control-center-mcp
7
+ Project-URL: Repository, https://github.com/subhasishsaha/windows-control-center-mcp
8
+ Project-URL: Issues, https://github.com/subhasishsaha/windows-control-center-mcp/issues
9
+ Project-URL: Documentation, https://github.com/subhasishsaha/windows-control-center-mcp#readme
10
+ Keywords: mcp,model-context-protocol,windows,fastmcp,ai-agent,powershell,security,automation
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: System :: Systems Administration
20
+ Classifier: Topic :: Security
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: fastmcp>=4.1.0
25
+ Requires-Dist: psutil>=7.0.0
26
+ Requires-Dist: pyperclip>=1.8.0
27
+ Requires-Dist: pillow>=10.0.0
28
+ Requires-Dist: pywin32>=306
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # πŸͺŸ Windows Control Center MCP Server
34
+
35
+ [![Python Version](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://www.python.org/)
36
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
37
+ [![Platform: Windows](https://img.shields.io/badge/platform-Windows%2010%20%2F%2011%20%2F%20Server-0078D6.svg)](https://www.microsoft.com/windows)
38
+ [![Protocol: Model Context Protocol](https://img.shields.io/badge/protocol-MCP%202024--11--05-purple.svg)](https://modelcontextprotocol.io/)
39
+ [![Built with FastMCP](https://img.shields.io/badge/built%20with-FastMCP%20v4-brightgreen.svg)](https://github.com/jlowin/fastmcp)
40
+ [![Tests: 100 Passing](https://img.shields.io/badge/tests-100%20passed-success.svg)](tests/)
41
+
42
+ A secure, high-performance, strictly local **Model Context Protocol (MCP)** server that connects AI assistants (**Google Antigravity, Claude Desktop, Cursor, Cline, Roo Code**) to your local Windows environment via native standard input/output (**stdio**).
43
+
44
+ Built on **FastMCP**, it operates with **zero network exposure** (no HTTP/TCP ports) and wraps system automation in defense-in-depth security: a hardcoded, non-bypassable host OS write lock and kernel-level Win32 Job Object process sandboxing.
45
+
46
+ ---
47
+
48
+ ## ⚑ What Does This Project Do?
49
+
50
+ Windows Control Center gives your AI agent authorized, monitored, and safe control over your Windows machine:
51
+
52
+ - **Command & Script Execution**: Run PowerShell, CMD, and isolated Python scripts with AST inspection and kernel sandboxing (CPU caps, memory limits, and fork-bomb quotas).
53
+ - **Filesystem Management**: Inspect, read (with pagination), write, search, move, and safely delete files and foldersβ€”with an unconditional write-block protecting Windows system directories.
54
+ - **Process Inspection & Safety**: List active processes with CPU and RAM metrics, and terminate runaway processes while protecting core Windows kernel services from BSODs.
55
+ - **Hardware & System Telemetry**: Stream real-time hardware status (CPU usage, RAM allocation, disk partition usage, battery health, uptime, and active network interfaces).
56
+ - **Desktop & GUI Automation**: Launch applications safely (without shell string concatenation), inspect and set the system clipboard, trigger Windows toast notifications, and capture multi-monitor screenshots.
57
+ - **Native Host Stdio IPC**: Spawned on demand as a child process by your AI client (Antigravity, Claude, Cursor, etc.), communicating strictly through standard I/O pipes and terminating cleanly when the session ends.
58
+
59
+ ---
60
+
61
+ ## πŸ“ Project Structure
62
+
63
+ ```
64
+ windows-mcp/
65
+ β”œβ”€β”€ .github/
66
+ β”‚ └── workflows/
67
+ β”‚ └── publish.yml # Manual workflow: test, build wheel & publish to PyPI
68
+ β”œβ”€β”€ src/
69
+ β”‚ └── windows-control-center-mcp/ # Tier 1: Core engine & server package
70
+ β”‚ β”œβ”€β”€ server.py # FastMCP stdio server entrypoint & schemas
71
+ β”‚ β”œβ”€β”€ security.py # Security engine, AST analyzer & host OS write lock
72
+ β”‚ β”œβ”€β”€ sandbox.py # Win32 Job Object kernel sandbox & process quotas
73
+ β”‚ └── tools/ # Modular tool implementations
74
+ β”‚ β”œβ”€β”€ command_tools.py # PowerShell, CMD, Python & process execution
75
+ β”‚ β”œβ”€β”€ desktop_tools.py # App launcher, clipboard, notifications & screenshots
76
+ β”‚ β”œβ”€β”€ filesystem_tools.py # Paginated file read, write, search, move & delete
77
+ β”‚ └── system_tools.py # Hardware telemetry, network status & environment
78
+ β”œβ”€β”€ tests/ # Tier 2: Automated test suite (100 unit & integration tests)
79
+ β”‚ β”œβ”€β”€ test_command_tools.py
80
+ β”‚ β”œβ”€β”€ test_desktop_tools.py
81
+ β”‚ β”œβ”€β”€ test_filesystem_tools.py
82
+ β”‚ β”œβ”€β”€ test_sandbox.py
83
+ β”‚ β”œβ”€β”€ test_security.py
84
+ β”‚ β”œβ”€β”€ test_server.py
85
+ β”‚ └── test_system_tools.py
86
+ β”œβ”€β”€ pyproject.toml # PEP 621 package manifest, scripts & pytest options
87
+ β”œβ”€β”€ requirements.txt # Pinned runtime dependencies
88
+ β”œβ”€β”€ CONTRIBUTING.md # Contribution guidelines & security policy
89
+ β”œβ”€β”€ DOCUMENTATION.md # In-depth technical architecture & security documentation
90
+ β”œβ”€β”€ LICENSE # MIT License
91
+ └── README.md # Project documentation
92
+ ```
93
+
94
+ ---
95
+
96
+ ## πŸš€ Installation & Client Setup (Windows)
97
+
98
+ ### Prerequisites
99
+
100
+ Install `uv` (the fast Python package manager) on Windows via PowerShell:
101
+ ```powershell
102
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
103
+ ```
104
+ *(Or via winget: `winget install astral-sh.uv`)*
105
+
106
+ ---
107
+
108
+ ### Client Configuration Files
109
+
110
+ Add the server to your preferred AI client configuration using `uvx` (zero-install):
111
+
112
+ #### 1. Google Antigravity / AGY CLI
113
+
114
+ File path: `%USERPROFILE%\.gemini\config\mcp_config.json`
115
+
116
+ ```json
117
+ {
118
+ "mcpServers": {
119
+ "windows-control": {
120
+ "command": "uvx",
121
+ "args": [
122
+ "windows-control-center-mcp",
123
+ "--transport",
124
+ "stdio"
125
+ ]
126
+ }
127
+ }
128
+ }
129
+ ```
130
+
131
+ ---
132
+
133
+ #### 2. Claude Desktop
134
+
135
+ File path: `%APPDATA%\Claude\claude_desktop_config.json`
136
+
137
+ ```json
138
+ {
139
+ "mcpServers": {
140
+ "windows-control": {
141
+ "command": "uvx",
142
+ "args": [
143
+ "windows-control-center-mcp",
144
+ "--transport",
145
+ "stdio"
146
+ ]
147
+ }
148
+ }
149
+ }
150
+ ```
151
+
152
+ ---
153
+
154
+ #### 3. Cursor
155
+
156
+ File path: In Cursor Settings > Features > MCP, or in `.cursor/mcp.json`:
157
+
158
+ ```json
159
+ {
160
+ "mcpServers": {
161
+ "windows-control": {
162
+ "command": "uvx",
163
+ "args": [
164
+ "windows-control-center-mcp",
165
+ "--transport",
166
+ "stdio"
167
+ ]
168
+ }
169
+ }
170
+ }
171
+ ```
172
+
173
+ ---
174
+
175
+ #### 4. Cline / Roo Code (VS Code Extension)
176
+
177
+ File path: `%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json`
178
+
179
+ ```json
180
+ {
181
+ "mcpServers": {
182
+ "windows-control": {
183
+ "command": "uvx",
184
+ "args": [
185
+ "windows-control-center-mcp",
186
+ "--transport",
187
+ "stdio"
188
+ ],
189
+ "env": {
190
+ "MCP_STRICT_MODE": "true",
191
+ "MCP_ALLOW_ELEVATION": "true"
192
+ },
193
+ "disabled": false,
194
+ "autoApprove": [
195
+ "get_system_info",
196
+ "get_network_info",
197
+ "list_processes",
198
+ "get_file_info",
199
+ "read_file",
200
+ "list_directory",
201
+ "search_files"
202
+ ]
203
+ }
204
+ }
205
+ }
206
+ ```
207
+
208
+ ---
209
+
210
+ ## 🧰 Available Tools (22 Tools)
211
+
212
+ ### 1. Command Execution & Process Management
213
+ | Tool | Description | Safety Hints |
214
+ |---|---|---|
215
+ | `execute_powershell` | Execute PowerShell commands inside Win32 Job Object sandbox. | `destructive: true` |
216
+ | `execute_cmd` | Execute legacy Command Prompt (CMD.EXE) commands in sandbox. | `destructive: true` |
217
+ | `execute_python` | Run Python code with AST validation & kernel sandbox quotas. | `destructive: true` |
218
+ | `execute_elevated_command` | Trigger UAC prompt (`RunAs`) for admin commands (if allowed). | `destructive: true` |
219
+ | `list_processes` | Inspect all running processes with PID, CPU %, and memory usage. | `read_only: true` |
220
+ | `kill_process` | Terminate a process by PID (blocks attempts on OS kernel processes). | `destructive: true` |
221
+
222
+ ### 2. Filesystem Operations
223
+ | Tool | Description | Safety Hints |
224
+ |---|---|---|
225
+ | `read_file` | Read file contents with line offset and limit pagination. | `read_only: true` |
226
+ | `write_file` | Create or overwrite files (blocked against host OS directories). | `destructive: false` |
227
+ | `list_directory` | Paginated listing of directories with file size and timestamps. | `read_only: true` |
228
+ | `search_files` | Search for files by pattern, extension, and optional recursion depth. | `read_only: true` |
229
+ | `get_file_info` | Get file metadata, size, timestamps, and attributes. | `read_only: true` |
230
+ | `delete_file_or_dir` | Safely delete a file or directory (blocked on drive roots/OS paths). | `destructive: true` |
231
+ | `copy_or_move` | Copy or move files/folders with destination overwrite checks. | `destructive: false` |
232
+
233
+ ### 3. System Telemetry & Network
234
+ | Tool | Description | Safety Hints |
235
+ |---|---|---|
236
+ | `get_system_info` | OS version, CPU usage, RAM allocations, disk space, and battery. | `read_only: true` |
237
+ | `get_network_info` | Active network adapters, IP addresses, MACs, and gateway status. | `read_only: true` |
238
+ | `get_environment` | Read environment variables (automatically redacts secrets and keys). | `read_only: true` |
239
+ | `get_security_status`| Current server policy, admin status, and audit log path. | `read_only: true` |
240
+
241
+ ### 4. Desktop Automation
242
+ | Tool | Description | Safety Hints |
243
+ |---|---|---|
244
+ | `launch_app` | Launch desktop applications safely without shell concatenation. | `destructive: false` |
245
+ | `get_clipboard` | Read text currently on the Windows system clipboard. | `read_only: true` |
246
+ | `set_clipboard` | Place text onto the Windows system clipboard. | `destructive: false` |
247
+ | `take_screenshot` | Capture multi-monitor screenshot and save to a local PNG. | `destructive: false` |
248
+ | `show_notification` | Display a native Windows toast notification popup. | `destructive: false` |
249
+
250
+ ### MCP Resources & Prompts
251
+ - **Resource `system://specs`**: Live JSON stream of CPU, memory, OS, and disk status.
252
+ - **Resource `system://network`**: Live JSON stream of active network interfaces.
253
+ - **Prompt `system_health_check`**: Diagnostic prompt template to evaluate system health.
254
+
255
+ ---
256
+
257
+ ## πŸ§ͺ Testing
258
+
259
+ Run the full automated test suite using `uv`:
260
+
261
+ ```powershell
262
+ uv run pytest -v
263
+ ```
264
+
265
+ All **100 automated unit and integration tests** verify tool registrations, security policies, AST inspection, sandbox isolation, and stdio cleanliness across both Windows 10 and Windows 11.
266
+
267
+ ---
268
+
269
+ ## πŸ“„ License & Contributing
270
+
271
+ - **License**: Released under the [MIT License](LICENSE).
272
+ - **Contributing**: Please review [CONTRIBUTING.md](CONTRIBUTING.md) for code conventions, security disclosure guidelines, and testing requirements.
@@ -0,0 +1,240 @@
1
+ # πŸͺŸ Windows Control Center MCP Server
2
+
3
+ [![Python Version](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://www.python.org/)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Platform: Windows](https://img.shields.io/badge/platform-Windows%2010%20%2F%2011%20%2F%20Server-0078D6.svg)](https://www.microsoft.com/windows)
6
+ [![Protocol: Model Context Protocol](https://img.shields.io/badge/protocol-MCP%202024--11--05-purple.svg)](https://modelcontextprotocol.io/)
7
+ [![Built with FastMCP](https://img.shields.io/badge/built%20with-FastMCP%20v4-brightgreen.svg)](https://github.com/jlowin/fastmcp)
8
+ [![Tests: 100 Passing](https://img.shields.io/badge/tests-100%20passed-success.svg)](tests/)
9
+
10
+ A secure, high-performance, strictly local **Model Context Protocol (MCP)** server that connects AI assistants (**Google Antigravity, Claude Desktop, Cursor, Cline, Roo Code**) to your local Windows environment via native standard input/output (**stdio**).
11
+
12
+ Built on **FastMCP**, it operates with **zero network exposure** (no HTTP/TCP ports) and wraps system automation in defense-in-depth security: a hardcoded, non-bypassable host OS write lock and kernel-level Win32 Job Object process sandboxing.
13
+
14
+ ---
15
+
16
+ ## ⚑ What Does This Project Do?
17
+
18
+ Windows Control Center gives your AI agent authorized, monitored, and safe control over your Windows machine:
19
+
20
+ - **Command & Script Execution**: Run PowerShell, CMD, and isolated Python scripts with AST inspection and kernel sandboxing (CPU caps, memory limits, and fork-bomb quotas).
21
+ - **Filesystem Management**: Inspect, read (with pagination), write, search, move, and safely delete files and foldersβ€”with an unconditional write-block protecting Windows system directories.
22
+ - **Process Inspection & Safety**: List active processes with CPU and RAM metrics, and terminate runaway processes while protecting core Windows kernel services from BSODs.
23
+ - **Hardware & System Telemetry**: Stream real-time hardware status (CPU usage, RAM allocation, disk partition usage, battery health, uptime, and active network interfaces).
24
+ - **Desktop & GUI Automation**: Launch applications safely (without shell string concatenation), inspect and set the system clipboard, trigger Windows toast notifications, and capture multi-monitor screenshots.
25
+ - **Native Host Stdio IPC**: Spawned on demand as a child process by your AI client (Antigravity, Claude, Cursor, etc.), communicating strictly through standard I/O pipes and terminating cleanly when the session ends.
26
+
27
+ ---
28
+
29
+ ## πŸ“ Project Structure
30
+
31
+ ```
32
+ windows-mcp/
33
+ β”œβ”€β”€ .github/
34
+ β”‚ └── workflows/
35
+ β”‚ └── publish.yml # Manual workflow: test, build wheel & publish to PyPI
36
+ β”œβ”€β”€ src/
37
+ β”‚ └── windows-control-center-mcp/ # Tier 1: Core engine & server package
38
+ β”‚ β”œβ”€β”€ server.py # FastMCP stdio server entrypoint & schemas
39
+ β”‚ β”œβ”€β”€ security.py # Security engine, AST analyzer & host OS write lock
40
+ β”‚ β”œβ”€β”€ sandbox.py # Win32 Job Object kernel sandbox & process quotas
41
+ β”‚ └── tools/ # Modular tool implementations
42
+ β”‚ β”œβ”€β”€ command_tools.py # PowerShell, CMD, Python & process execution
43
+ β”‚ β”œβ”€β”€ desktop_tools.py # App launcher, clipboard, notifications & screenshots
44
+ β”‚ β”œβ”€β”€ filesystem_tools.py # Paginated file read, write, search, move & delete
45
+ β”‚ └── system_tools.py # Hardware telemetry, network status & environment
46
+ β”œβ”€β”€ tests/ # Tier 2: Automated test suite (100 unit & integration tests)
47
+ β”‚ β”œβ”€β”€ test_command_tools.py
48
+ β”‚ β”œβ”€β”€ test_desktop_tools.py
49
+ β”‚ β”œβ”€β”€ test_filesystem_tools.py
50
+ β”‚ β”œβ”€β”€ test_sandbox.py
51
+ β”‚ β”œβ”€β”€ test_security.py
52
+ β”‚ β”œβ”€β”€ test_server.py
53
+ β”‚ └── test_system_tools.py
54
+ β”œβ”€β”€ pyproject.toml # PEP 621 package manifest, scripts & pytest options
55
+ β”œβ”€β”€ requirements.txt # Pinned runtime dependencies
56
+ β”œβ”€β”€ CONTRIBUTING.md # Contribution guidelines & security policy
57
+ β”œβ”€β”€ DOCUMENTATION.md # In-depth technical architecture & security documentation
58
+ β”œβ”€β”€ LICENSE # MIT License
59
+ └── README.md # Project documentation
60
+ ```
61
+
62
+ ---
63
+
64
+ ## πŸš€ Installation & Client Setup (Windows)
65
+
66
+ ### Prerequisites
67
+
68
+ Install `uv` (the fast Python package manager) on Windows via PowerShell:
69
+ ```powershell
70
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
71
+ ```
72
+ *(Or via winget: `winget install astral-sh.uv`)*
73
+
74
+ ---
75
+
76
+ ### Client Configuration Files
77
+
78
+ Add the server to your preferred AI client configuration using `uvx` (zero-install):
79
+
80
+ #### 1. Google Antigravity / AGY CLI
81
+
82
+ File path: `%USERPROFILE%\.gemini\config\mcp_config.json`
83
+
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "windows-control": {
88
+ "command": "uvx",
89
+ "args": [
90
+ "windows-control-center-mcp",
91
+ "--transport",
92
+ "stdio"
93
+ ]
94
+ }
95
+ }
96
+ }
97
+ ```
98
+
99
+ ---
100
+
101
+ #### 2. Claude Desktop
102
+
103
+ File path: `%APPDATA%\Claude\claude_desktop_config.json`
104
+
105
+ ```json
106
+ {
107
+ "mcpServers": {
108
+ "windows-control": {
109
+ "command": "uvx",
110
+ "args": [
111
+ "windows-control-center-mcp",
112
+ "--transport",
113
+ "stdio"
114
+ ]
115
+ }
116
+ }
117
+ }
118
+ ```
119
+
120
+ ---
121
+
122
+ #### 3. Cursor
123
+
124
+ File path: In Cursor Settings > Features > MCP, or in `.cursor/mcp.json`:
125
+
126
+ ```json
127
+ {
128
+ "mcpServers": {
129
+ "windows-control": {
130
+ "command": "uvx",
131
+ "args": [
132
+ "windows-control-center-mcp",
133
+ "--transport",
134
+ "stdio"
135
+ ]
136
+ }
137
+ }
138
+ }
139
+ ```
140
+
141
+ ---
142
+
143
+ #### 4. Cline / Roo Code (VS Code Extension)
144
+
145
+ File path: `%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json`
146
+
147
+ ```json
148
+ {
149
+ "mcpServers": {
150
+ "windows-control": {
151
+ "command": "uvx",
152
+ "args": [
153
+ "windows-control-center-mcp",
154
+ "--transport",
155
+ "stdio"
156
+ ],
157
+ "env": {
158
+ "MCP_STRICT_MODE": "true",
159
+ "MCP_ALLOW_ELEVATION": "true"
160
+ },
161
+ "disabled": false,
162
+ "autoApprove": [
163
+ "get_system_info",
164
+ "get_network_info",
165
+ "list_processes",
166
+ "get_file_info",
167
+ "read_file",
168
+ "list_directory",
169
+ "search_files"
170
+ ]
171
+ }
172
+ }
173
+ }
174
+ ```
175
+
176
+ ---
177
+
178
+ ## 🧰 Available Tools (22 Tools)
179
+
180
+ ### 1. Command Execution & Process Management
181
+ | Tool | Description | Safety Hints |
182
+ |---|---|---|
183
+ | `execute_powershell` | Execute PowerShell commands inside Win32 Job Object sandbox. | `destructive: true` |
184
+ | `execute_cmd` | Execute legacy Command Prompt (CMD.EXE) commands in sandbox. | `destructive: true` |
185
+ | `execute_python` | Run Python code with AST validation & kernel sandbox quotas. | `destructive: true` |
186
+ | `execute_elevated_command` | Trigger UAC prompt (`RunAs`) for admin commands (if allowed). | `destructive: true` |
187
+ | `list_processes` | Inspect all running processes with PID, CPU %, and memory usage. | `read_only: true` |
188
+ | `kill_process` | Terminate a process by PID (blocks attempts on OS kernel processes). | `destructive: true` |
189
+
190
+ ### 2. Filesystem Operations
191
+ | Tool | Description | Safety Hints |
192
+ |---|---|---|
193
+ | `read_file` | Read file contents with line offset and limit pagination. | `read_only: true` |
194
+ | `write_file` | Create or overwrite files (blocked against host OS directories). | `destructive: false` |
195
+ | `list_directory` | Paginated listing of directories with file size and timestamps. | `read_only: true` |
196
+ | `search_files` | Search for files by pattern, extension, and optional recursion depth. | `read_only: true` |
197
+ | `get_file_info` | Get file metadata, size, timestamps, and attributes. | `read_only: true` |
198
+ | `delete_file_or_dir` | Safely delete a file or directory (blocked on drive roots/OS paths). | `destructive: true` |
199
+ | `copy_or_move` | Copy or move files/folders with destination overwrite checks. | `destructive: false` |
200
+
201
+ ### 3. System Telemetry & Network
202
+ | Tool | Description | Safety Hints |
203
+ |---|---|---|
204
+ | `get_system_info` | OS version, CPU usage, RAM allocations, disk space, and battery. | `read_only: true` |
205
+ | `get_network_info` | Active network adapters, IP addresses, MACs, and gateway status. | `read_only: true` |
206
+ | `get_environment` | Read environment variables (automatically redacts secrets and keys). | `read_only: true` |
207
+ | `get_security_status`| Current server policy, admin status, and audit log path. | `read_only: true` |
208
+
209
+ ### 4. Desktop Automation
210
+ | Tool | Description | Safety Hints |
211
+ |---|---|---|
212
+ | `launch_app` | Launch desktop applications safely without shell concatenation. | `destructive: false` |
213
+ | `get_clipboard` | Read text currently on the Windows system clipboard. | `read_only: true` |
214
+ | `set_clipboard` | Place text onto the Windows system clipboard. | `destructive: false` |
215
+ | `take_screenshot` | Capture multi-monitor screenshot and save to a local PNG. | `destructive: false` |
216
+ | `show_notification` | Display a native Windows toast notification popup. | `destructive: false` |
217
+
218
+ ### MCP Resources & Prompts
219
+ - **Resource `system://specs`**: Live JSON stream of CPU, memory, OS, and disk status.
220
+ - **Resource `system://network`**: Live JSON stream of active network interfaces.
221
+ - **Prompt `system_health_check`**: Diagnostic prompt template to evaluate system health.
222
+
223
+ ---
224
+
225
+ ## πŸ§ͺ Testing
226
+
227
+ Run the full automated test suite using `uv`:
228
+
229
+ ```powershell
230
+ uv run pytest -v
231
+ ```
232
+
233
+ All **100 automated unit and integration tests** verify tool registrations, security policies, AST inspection, sandbox isolation, and stdio cleanliness across both Windows 10 and Windows 11.
234
+
235
+ ---
236
+
237
+ ## πŸ“„ License & Contributing
238
+
239
+ - **License**: Released under the [MIT License](LICENSE).
240
+ - **Contributing**: Please review [CONTRIBUTING.md](CONTRIBUTING.md) for code conventions, security disclosure guidelines, and testing requirements.
@@ -0,0 +1,68 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "windows-control-center-mcp"
7
+ version = "1.0.0"
8
+ description = "A secure, strictly local Windows Control Center Model Context Protocol (MCP) server for Antigravity, AGY CLI, Claude Desktop, and AI agents."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "MIT" }
12
+ keywords = [
13
+ "mcp",
14
+ "model-context-protocol",
15
+ "windows",
16
+ "fastmcp",
17
+ "ai-agent",
18
+ "powershell",
19
+ "security",
20
+ "automation",
21
+ ]
22
+ classifiers = [
23
+ "Development Status :: 5 - Production/Stable",
24
+ "Intended Audience :: Developers",
25
+ "License :: OSI Approved :: MIT License",
26
+ "Operating System :: Microsoft :: Windows",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.10",
29
+ "Programming Language :: Python :: 3.11",
30
+ "Programming Language :: Python :: 3.12",
31
+ "Topic :: System :: Systems Administration",
32
+ "Topic :: Security",
33
+ ]
34
+ dependencies = [
35
+ "fastmcp>=4.1.0",
36
+ "psutil>=7.0.0",
37
+ "pyperclip>=1.8.0",
38
+ "pillow>=10.0.0",
39
+ "pywin32>=306",
40
+ ]
41
+
42
+ [project.optional-dependencies]
43
+ dev = [
44
+ "pytest>=8.0.0",
45
+ ]
46
+
47
+ [project.urls]
48
+ Homepage = "https://github.com/subhasishsaha/windows-control-center-mcp"
49
+ Repository = "https://github.com/subhasishsaha/windows-control-center-mcp"
50
+ Issues = "https://github.com/subhasishsaha/windows-control-center-mcp/issues"
51
+ Documentation = "https://github.com/subhasishsaha/windows-control-center-mcp#readme"
52
+
53
+ [project.scripts]
54
+ windows-control-center-mcp = "server:main"
55
+
56
+ [tool.setuptools.package-dir]
57
+ "" = "src/windows-control-center-mcp"
58
+
59
+ [tool.setuptools]
60
+ py-modules = ["server", "security", "sandbox"]
61
+ packages = ["tools"]
62
+
63
+ [tool.pytest.ini_options]
64
+ testpaths = ["tests"]
65
+ python_files = ["test_*.py"]
66
+ python_classes = ["Test*"]
67
+ python_functions = ["test_*"]
68
+ pythonpath = ["src/windows-control-center-mcp"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+