Skip to content

Commit 544fd40

Browse files
GopalGBclaude
andcommitted
fix(examples/simple-chatbot): align declared deps with actual usage
The simple-chatbot example imports `httpx` in main.py but the declared dependency lists were stale: - `requirements.txt` listed `requests>=2.31.0` (unused; main.py uses httpx). PR #1959 removed `requests` from pyproject.toml in 2026-01 but never cleaned up requirements.txt. - `pyproject.toml` did not declare `httpx` despite main.py importing it, so a fresh `pip install .` would fail at import time. - README.MD still listed `requests` and showed Python 3.10 instead of 3.10+ (which is what pyproject.toml requires). Replaces `requests` with `httpx` in both dependency files and the README, and clarifies the Python version constraint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3d7b311 commit 544fd40

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

examples/clients/simple-chatbot/README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This example demonstrates how to integrate the Model Context Protocol (MCP) into
44

55
## Requirements
66

7-
- Python 3.10
7+
- Python 3.10+
88
- `python-dotenv`
9-
- `requests`
9+
- `httpx`
1010
- `mcp`
1111
- `uvicorn`
1212

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
python-dotenv>=1.0.0
2-
requests>=2.31.0
2+
httpx>=0.27.0
33
mcp>=1.0.0
44
uvicorn>=0.32.1

examples/clients/simple-chatbot/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ classifiers = [
1616
]
1717
dependencies = [
1818
"python-dotenv>=1.0.0",
19+
"httpx>=0.27.0",
1920
"mcp",
2021
"uvicorn>=0.32.1",
2122
]

0 commit comments

Comments
 (0)