From 544fd407ab13c1bd1821c73b3bdf5344676809e7 Mon Sep 17 00:00:00 2001 From: Gopal Bagaswar Date: Thu, 30 Apr 2026 07:41:12 +0530 Subject: [PATCH 1/2] 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) --- examples/clients/simple-chatbot/README.MD | 4 ++-- .../simple-chatbot/mcp_simple_chatbot/requirements.txt | 2 +- examples/clients/simple-chatbot/pyproject.toml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/clients/simple-chatbot/README.MD b/examples/clients/simple-chatbot/README.MD index 482109f97..223f9ef20 100644 --- a/examples/clients/simple-chatbot/README.MD +++ b/examples/clients/simple-chatbot/README.MD @@ -4,9 +4,9 @@ This example demonstrates how to integrate the Model Context Protocol (MCP) into ## Requirements -- Python 3.10 +- Python 3.10+ - `python-dotenv` -- `requests` +- `httpx` - `mcp` - `uvicorn` diff --git a/examples/clients/simple-chatbot/mcp_simple_chatbot/requirements.txt b/examples/clients/simple-chatbot/mcp_simple_chatbot/requirements.txt index 2292072ff..d3ef12e96 100644 --- a/examples/clients/simple-chatbot/mcp_simple_chatbot/requirements.txt +++ b/examples/clients/simple-chatbot/mcp_simple_chatbot/requirements.txt @@ -1,4 +1,4 @@ python-dotenv>=1.0.0 -requests>=2.31.0 +httpx>=0.27.0 mcp>=1.0.0 uvicorn>=0.32.1 diff --git a/examples/clients/simple-chatbot/pyproject.toml b/examples/clients/simple-chatbot/pyproject.toml index 2d7205735..4092cee04 100644 --- a/examples/clients/simple-chatbot/pyproject.toml +++ b/examples/clients/simple-chatbot/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ ] dependencies = [ "python-dotenv>=1.0.0", + "httpx>=0.27.0", "mcp", "uvicorn>=0.32.1", ] From ddc93adb83a918840f238729a147f2f5cb9703b8 Mon Sep 17 00:00:00 2001 From: Gopal Bagaswar Date: Thu, 30 Apr 2026 07:52:23 +0530 Subject: [PATCH 2/2] chore: regenerate uv.lock to reflect httpx addition Adds httpx to mcp-simple-chatbot's lock entry so the uv-lock-check pre-commit hook passes. Co-Authored-By: Claude Opus 4.7 (1M context) --- uv.lock | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uv.lock b/uv.lock index 705d014aa..817c04dbd 100644 --- a/uv.lock +++ b/uv.lock @@ -1056,6 +1056,7 @@ name = "mcp-simple-chatbot" version = "0.1.0" source = { editable = "examples/clients/simple-chatbot" } dependencies = [ + { name = "httpx" }, { name = "mcp" }, { name = "python-dotenv" }, { name = "uvicorn" }, @@ -1070,6 +1071,7 @@ dev = [ [package.metadata] requires-dist = [ + { name = "httpx", specifier = ">=0.27.0" }, { name = "mcp", editable = "." }, { name = "python-dotenv", specifier = ">=1.0.0" }, { name = "uvicorn", specifier = ">=0.32.1" },