computer-control-mcp 0.3.6__tar.gz → 0.3.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-control-mcp
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: MCP server that provides computer control capabilities, like mouse, keyboard, OCR, etc. using PyAutoGUI, RapidOCR, ONNXRuntime. Similar to 'computer-use' by Anthropic. With Zero External Dependencies.
5
5
  Project-URL: Homepage, https://github.com/AB498/computer-control-mcp
6
6
  Project-URL: Issues, https://github.com/AB498/computer-control-mcp/issues
@@ -105,6 +105,7 @@ computer-control-mcp # instead of uvx computer-control-mcp, so you can use the l
105
105
  - `get_screen_size()`: Get current screen resolution
106
106
  - `list_windows()`: List all open windows
107
107
  - `activate_window(title_pattern: str, use_regex: bool = False, threshold: int = 60)`: Bring specified window to foreground
108
+ - `wait_milliseconds(milliseconds: int)`: Wait for a specified number of milliseconds
108
109
 
109
110
  ## Development
110
111
 
@@ -123,16 +124,16 @@ python -m computer_control_mcp.core
123
124
 
124
125
  # -- OR --
125
126
 
126
- # Build
127
+ # Build after `pip install hatch`
127
128
  hatch build
128
129
 
129
- # Non-windows
130
- pip install dist/*.whl --upgrade
131
-
132
130
  # Windows
133
131
  $latest = Get-ChildItem .\dist\*.whl | Sort-Object LastWriteTime -Descending | Select-Object -First 1
134
132
  pip install $latest.FullName --upgrade
135
133
 
134
+ # Non-windows
135
+ pip install dist/*.whl --upgrade
136
+
136
137
  # Run
137
138
  computer-control-mcp
138
139
  ```
@@ -73,6 +73,7 @@ computer-control-mcp # instead of uvx computer-control-mcp, so you can use the l
73
73
  - `get_screen_size()`: Get current screen resolution
74
74
  - `list_windows()`: List all open windows
75
75
  - `activate_window(title_pattern: str, use_regex: bool = False, threshold: int = 60)`: Bring specified window to foreground
76
+ - `wait_milliseconds(milliseconds: int)`: Wait for a specified number of milliseconds
76
77
 
77
78
  ## Development
78
79
 
@@ -91,16 +92,16 @@ python -m computer_control_mcp.core
91
92
 
92
93
  # -- OR --
93
94
 
94
- # Build
95
+ # Build after `pip install hatch`
95
96
  hatch build
96
97
 
97
- # Non-windows
98
- pip install dist/*.whl --upgrade
99
-
100
98
  # Windows
101
99
  $latest = Get-ChildItem .\dist\*.whl | Sort-Object LastWriteTime -Descending | Select-Object -First 1
102
100
  pip install $latest.FullName --upgrade
103
101
 
102
+ # Non-windows
103
+ pip install dist/*.whl --upgrade
104
+
104
105
  # Run
105
106
  computer-control-mcp
106
107
  ```
@@ -662,6 +662,26 @@ def list_windows() -> List[Dict[str, Any]]:
662
662
  return [{"error": str(e)}]
663
663
 
664
664
 
665
+ @mcp.tool()
666
+ def wait_milliseconds(milliseconds: int) -> str:
667
+ """
668
+ Wait for a specified number of milliseconds.
669
+
670
+ Args:
671
+ milliseconds: Number of milliseconds to wait
672
+
673
+ Returns:
674
+ Success message after waiting
675
+ """
676
+ try:
677
+ import time
678
+ seconds = milliseconds / 1000.0
679
+ time.sleep(seconds)
680
+ return f"Successfully waited for {milliseconds} milliseconds"
681
+ except Exception as e:
682
+ return f"Error waiting for {milliseconds} milliseconds: {str(e)}"
683
+
684
+
665
685
  @mcp.tool()
666
686
  def activate_window(
667
687
  title_pattern: str, use_regex: bool = False, threshold: int = 60
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "computer-control-mcp"
7
- version = "0.3.6"
7
+ version = "0.3.7"
8
8
  description = "MCP server that provides computer control capabilities, like mouse, keyboard, OCR, etc. using PyAutoGUI, RapidOCR, ONNXRuntime. Similar to 'computer-use' by Anthropic. With Zero External Dependencies."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"