Skip to content

Commit fb04e15

Browse files
authored
Merge branch 'main' into feature/streamable_http_extensions
2 parents 8e734c2 + 6c26d08 commit fb04e15

File tree

10 files changed

+21
-25
lines changed

10 files changed

+21
-25
lines changed

.github/workflows/publish-docs-manually.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: astral-sh/setup-uv@v3
2020
with:
2121
enable-cache: true
22-
version: 0.7.2
22+
version: 0.9.5
2323

2424
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2525
- uses: actions/cache@v4

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: astral-sh/setup-uv@v3
1717
with:
1818
enable-cache: true
19-
version: 0.7.2
19+
version: 0.9.5
2020

2121
- name: Set up Python 3.12
2222
run: uv python install 3.12
@@ -68,7 +68,7 @@ jobs:
6868
uses: astral-sh/setup-uv@v3
6969
with:
7070
enable-cache: true
71-
version: 0.7.2
71+
version: 0.9.5
7272

7373
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
7474
- uses: actions/cache@v4

examples/servers/simple-auth/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ build-backend = "hatchling.build"
2929
[tool.hatch.build.targets.wheel]
3030
packages = ["mcp_simple_auth"]
3131

32-
[tool.uv]
33-
dev-dependencies = ["pyright>=1.1.391", "pytest>=8.3.4", "ruff>=0.8.5"]
32+
[dependency-groups]
33+
dev = ["pyright>=1.1.391", "pytest>=8.3.4", "ruff>=0.8.5"]

examples/servers/simple-pagination/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ ignore = []
4343
line-length = 120
4444
target-version = "py310"
4545

46-
[tool.uv]
47-
dev-dependencies = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]
46+
[dependency-groups]
47+
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

examples/servers/simple-prompt/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ ignore = []
4343
line-length = 120
4444
target-version = "py310"
4545

46-
[tool.uv]
47-
dev-dependencies = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]
46+
[dependency-groups]
47+
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

examples/servers/simple-resource/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ ignore = []
4343
line-length = 120
4444
target-version = "py310"
4545

46-
[tool.uv]
47-
dev-dependencies = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]
46+
[dependency-groups]
47+
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

examples/servers/simple-streamablehttp-stateless/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ignore = []
3232
line-length = 120
3333
target-version = "py310"
3434

35-
[tool.uv]
36-
dev-dependencies = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]
35+
[dependency-groups]
36+
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

examples/servers/simple-streamablehttp/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ignore = []
3232
line-length = 120
3333
target-version = "py310"
3434

35-
[tool.uv]
36-
dev-dependencies = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]
35+
[dependency-groups]
36+
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

examples/servers/simple-tool/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ ignore = []
4343
line-length = 120
4444
target-version = "py310"
4545

46-
[tool.uv]
47-
dev-dependencies = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]
46+
[dependency-groups]
47+
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

tests/client/test_stdio.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import errno
12
import os
23
import shutil
34
import sys
@@ -90,17 +91,12 @@ async def test_stdio_client_nonexistent_command():
9091
)
9192

9293
# Should raise an error when trying to start the process
93-
with pytest.raises(Exception) as exc_info:
94+
with pytest.raises(OSError) as exc_info:
9495
async with stdio_client(server_params) as (_, _):
9596
pass
9697

97-
# The error should indicate the command was not found
98-
error_message = str(exc_info.value)
99-
assert (
100-
"nonexistent" in error_message
101-
or "not found" in error_message.lower()
102-
or "cannot find the file" in error_message.lower() # Windows error message
103-
)
98+
# The error should indicate the command was not found (ENOENT: No such file or directory)
99+
assert exc_info.value.errno == errno.ENOENT
104100

105101

106102
@pytest.mark.anyio

0 commit comments

Comments
 (0)