Skip to content

Commit 0926613

Browse files
dsp-antKludex
andauthored
Update dependencies and fix type issues (#1268)
Co-authored-by: Marcelo Trylesinski <[email protected]>
1 parent a82c69b commit 0926613

File tree

16 files changed

+303
-286
lines changed

16 files changed

+303
-286
lines changed

.github/workflows/shared.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
strategy:
3737
matrix:
3838
python-version: ["3.10", "3.11", "3.12", "3.13"]
39+
dep-resolution: ["lowest-direct", "highest"]
3940
os: [ubuntu-latest, windows-latest]
4041

4142
steps:
@@ -48,18 +49,11 @@ jobs:
4849
version: 0.7.2
4950

5051
- name: Install the project
51-
run: uv sync --frozen --all-extras --python ${{ matrix.python-version }}
52+
run: uv sync --frozen --all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }}
5253

5354
- name: Run pytest
5455
run: uv run --frozen --no-sync pytest
5556

56-
# This must run last as it modifies the environment!
57-
- name: Run pytest with lowest versions
58-
run: |
59-
uv sync --all-extras --upgrade
60-
uv run --no-sync pytest
61-
env:
62-
UV_RESOLUTION: lowest-direct
6357
readme-snippets:
6458
runs-on: ubuntu-latest
6559
steps:

examples/clients/simple-auth-client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ classifiers = [
1515
"Programming Language :: Python :: 3.10",
1616
]
1717
dependencies = [
18-
"click>=8.0.0",
18+
"click>=8.2.0",
1919
"mcp>=1.0.0",
2020
]
2121

examples/servers/simple-auth/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [{ name = "Anthropic, PBC." }]
88
license = { text = "MIT" }
99
dependencies = [
1010
"anyio>=4.5",
11-
"click>=8.1.0",
11+
"click>=8.2.0",
1212
"httpx>=0.27",
1313
"mcp",
1414
"pydantic>=2.0",

examples/servers/simple-prompt/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3.10",
2020
]
21-
dependencies = ["anyio>=4.5", "click>=8.1.0", "httpx>=0.27", "mcp"]
21+
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp"]
2222

2323
[project.scripts]
2424
mcp-simple-prompt = "mcp_simple_prompt.server:main"

examples/servers/simple-resource/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3.10",
2020
]
21-
dependencies = ["anyio>=4.5", "click>=8.1.0", "httpx>=0.27", "mcp"]
21+
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp"]
2222

2323
[project.scripts]
2424
mcp-simple-resource = "mcp_simple_resource.server:main"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.10"
77
authors = [{ name = "Anthropic, PBC." }]
88
keywords = ["mcp", "llm", "automation", "web", "fetch", "http", "streamable", "stateless"]
99
license = { text = "MIT" }
10-
dependencies = ["anyio>=4.5", "click>=8.1.0", "httpx>=0.27", "mcp", "starlette", "uvicorn"]
10+
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp", "starlette", "uvicorn"]
1111

1212
[project.scripts]
1313
mcp-simple-streamablehttp-stateless = "mcp_simple_streamablehttp_stateless.server:main"

examples/servers/simple-streamablehttp/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.10"
77
authors = [{ name = "Anthropic, PBC." }]
88
keywords = ["mcp", "llm", "automation", "web", "fetch", "http", "streamable"]
99
license = { text = "MIT" }
10-
dependencies = ["anyio>=4.5", "click>=8.1.0", "httpx>=0.27", "mcp", "starlette", "uvicorn"]
10+
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp", "starlette", "uvicorn"]
1111

1212
[project.scripts]
1313
mcp-simple-streamablehttp = "mcp_simple_streamablehttp.server:main"

examples/servers/simple-tool/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3.10",
2020
]
21-
dependencies = ["anyio>=4.5", "click>=8.1.0", "httpx>=0.27", "mcp"]
21+
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp"]
2222

2323
[project.scripts]
2424
mcp-simple-tool = "mcp_simple_tool.server:main"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ classifiers = [
2323
]
2424
dependencies = [
2525
"anyio>=4.5",
26-
"httpx>=0.27",
26+
"httpx>=0.27.1",
2727
"httpx-sse>=0.4",
2828
"pydantic>=2.11.0,<3.0.0",
2929
"starlette>=0.27",
3030
"python-multipart>=0.0.9",
3131
"sse-starlette>=1.6.1",
3232
"pydantic-settings>=2.5.2",
33-
"uvicorn>=0.23.1; sys_platform != 'emscripten'",
33+
"uvicorn>=0.31.1; sys_platform != 'emscripten'",
3434
"jsonschema>=4.20.0",
3535
"pywin32>=310; sys_platform == 'win32'",
3636
]
@@ -49,7 +49,7 @@ required-version = ">=0.7.2"
4949

5050
[dependency-groups]
5151
dev = [
52-
"pyright>=1.1.391",
52+
"pyright>=1.1.400",
5353
"pytest>=8.3.4",
5454
"ruff>=0.8.5",
5555
"trio>=0.26.2",

tests/client/test_list_roots_callback.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from mcp.client.session import ClientSession
55
from mcp.server.fastmcp.server import Context
6+
from mcp.server.session import ServerSession
67
from mcp.shared.context import RequestContext
78
from mcp.shared.memory import (
89
create_connected_server_and_client_session as create_session,
@@ -35,7 +36,7 @@ async def list_roots_callback(
3536
return callback_return
3637

3738
@server.tool("test_list_roots")
38-
async def test_list_roots(context: Context, message: str): # type: ignore[reportUnknownMemberType]
39+
async def test_list_roots(context: Context[ServerSession, None], message: str):
3940
roots = await context.session.list_roots()
4041
assert roots == callback_return
4142
return True

0 commit comments

Comments
 (0)