Skip to content

Commit b5c9d3a

Browse files
authored
chore: library bumps (#57)
A combination of an older mcp client version and newer desktop-commander (>=0.2.5) results in a hang in the client. This PR bumps min versions to avoid that issue for other unsuspecting devs, requiring more recent (as of writing) `mcp` library and `desktop-commander` versions (which is a good thing anyway). Also updates claude model references to the latest: `claude-sonnet-4-20250514`. #### Test instructions: Functionality: ``` # As usual, make sure you have your UNSTRUCTURED_API_KEY and ANTHROPIC_API_KEY set in your .env # Run the server: uv run python uns_mcp/server.py --host 127.0.0.1 --port 8080 # Run the client (in different terminal): uv run python minimal_client/client.py "http://127.0.0.1:8080/sse" "@wonderwhy-er/desktop-commander@^0.2.11" # make sure you can list workflows, or ask about files in your local system (what the desktop-commander mcp server provides) ``` convenience command `uv-lock-update` to update uv.lock (ignoring any private index env vars that could get in the way) ``` make uv-lock-update ```
1 parent ef58e67 commit b5c9d3a

6 files changed

Lines changed: 1045 additions & 603 deletions

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sse-client:
88

99
.PHONY: sse-client-terminal
1010
sse-client-terminal:
11-
uv run python minimal_client/client.py "http://127.0.0.1:8080/sse" "@wonderwhy-er/desktop-commander"
11+
uv run python minimal_client/client.py "http://127.0.0.1:8080/sse" "@wonderwhy-er/desktop-commander@^0.2.11"
1212

1313
.PHONY: sse-server
1414
sse-server:
@@ -21,3 +21,8 @@ test-firecrawl:
2121
.PHONY: install-pre-commit
2222
install-pre-commit:
2323
uv pip install ".[dev]"
24+
25+
.PHONY: uv-lock-update
26+
uv-lock-update:
27+
@rm -f uv.lock
28+
@env -u UV_INDEX_URL -u PIP_EXTRA_INDEX_URL uv lock --index-url https://pypi.org/simple/ --no-cache

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ npx @wonderwhy-er/desktop-commander setup
263263
Then start client with extra parameter:
264264

265265
```bash
266-
uv run python minimal_client/client.py "http://127.0.0.1:8080/sse" "@wonderwhy-er/desktop-commander"
266+
uv run python minimal_client/client.py "http://127.0.0.1:8080/sse" "@wonderwhy-er/desktop-commander@^0.2.11"
267267
# or
268268
make sse-client-terminal
269269
```

minimal_client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async def process_query(self, query: str, confirm_tool_use: bool = True) -> None
110110
self.history.append({"role": "user", "content": query})
111111

112112
response = self.anthropic.messages.create(
113-
model="claude-3-5-sonnet-20241022",
113+
model="claude-sonnet-4-20250514",
114114
max_tokens=1000,
115115
messages=self.history,
116116
tools=self.available_tools,
@@ -186,7 +186,7 @@ async def process_query(self, query: str, confirm_tool_use: bool = True) -> None
186186
)
187187

188188
response = self.anthropic.messages.create(
189-
model="claude-3-5-sonnet-20241022",
189+
model="claude-sonnet-4-20250514",
190190
max_tokens=1000,
191191
messages=self.history,
192192
tools=self.available_tools,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies = [
88
"anthropic>=0.49.0",
99
"boto3>=1.37.27",
1010
"firecrawl-py>=1.14.1",
11-
"mcp[cli]>=1.3.0",
11+
"mcp[cli]>=1.13.1",
1212
"python-dotenv>=1.0.1",
1313
"unstructured-client>=0.32.1",
1414
"pip",

uns_mcp/docstring_extras.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"subtype": "vlm",
3131
"settings": {
3232
"provider": "anthropic", (required)
33-
"model": "claude-3-5-sonnet-20241022", (required)
33+
"model": "claude-sonnet-4-20250514", (required)
3434
"output_format": "text/html",
3535
"user_prompt": null,
3636
"format_html": true,
@@ -42,7 +42,7 @@
4242
4343
- vlm strategy:
4444
Allowed values are provider and model. Below are examples:
45-
- "provider": "anthropic" "model": "claude-3-5-sonnet-20241022",
45+
- "provider": "anthropic" "model": "claude-sonnet-4-20250514",
4646
- "provider": "openai" "model": "gpt-4o"
4747
4848

0 commit comments

Comments
 (0)