Skip to content

Commit a346a19

Browse files
abrichrclaude
andcommitted
Add multiprocessing-utils dependency and update README
- Add multiprocessing-utils to OmniMCP dependencies - Restore original implementation of process_local storage - Add development command to README.md for resetting environment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 524787c commit a346a19

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

omnimcp/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ source .venv/bin/activate
4747
.venv\Scripts\activate.bat
4848
```
4949

50-
Then run OmniMCP:
50+
### Development
51+
52+
For development and testing, you can reset the environment with:
53+
54+
```bash
55+
# Reset the virtual environment and reinstall dependencies
56+
cd /path/to/OpenAdapt/omnimcp
57+
rm -rf .venv && chmod +x install.sh && ./install.sh
58+
```
59+
60+
### Running OmniMCP
5161

5262
```bash
5363
# Run CLI mode (direct command input)

omnimcp/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies = [
2424
"mss>=6.1.0", # Screen capture
2525
"jinja2>=3.0.0", # For templating
2626
"posthog>=2.0.0", # For analytics
27+
"multiprocessing-utils>=0.1.0", # For process-local storage
2728
]
2829

2930
[project.scripts]

openadapt/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from jinja2 import Environment, FileSystemLoader
2222
from PIL import Image, ImageEnhance
2323
from posthog import Posthog
24-
import multiprocessing_utils
24+
# import multiprocessing_utils - moved to functions that use it
2525

2626
from openadapt.build_utils import is_running_from_executable, redirect_stdout_stderr
2727
from openadapt.custom_logger import logger
@@ -63,6 +63,7 @@
6363
_start_perf_counter = None
6464

6565
# Process-local storage for MSS instances
66+
import multiprocessing_utils
6667
_process_local = multiprocessing_utils.local()
6768

6869

0 commit comments

Comments
 (0)