Skip to content

Conversation

@tobecrazy
Copy link
Owner

I've implemented a Python client for the Weather MCP server, allowing you to programmatically interact with its resources.

Key changes:

  • Added WeatherMCPClient in weather_mcp/mcp_client/weather_mcp_client.py using httpx for asynchronous requests.
  • Client methods cover health_check, get_404_page, get_weather, and fetching the health resource.
  • Included test_client.py to demonstrate and verify client functionality.
  • Updated weather_mcp/requirements.txt to include httpx.
  • Added comprehensive documentation for the client in weather_mcp/README.md.
  • Updated the main README.md to link to the client documentation.

The client connects to the server's SSE endpoint (e.g., http://localhost:3399/sse) and provides a convenient way for you to integrate weather data into other Python applications.

I've implemented a Python client for the Weather MCP server, allowing you to programmatically interact with its resources.

Key changes:
- Added `WeatherMCPClient` in `weather_mcp/mcp_client/weather_mcp_client.py` using `httpx` for asynchronous requests.
- Client methods cover `health_check`, `get_404_page`, `get_weather`, and fetching the health resource.
- Included `test_client.py` to demonstrate and verify client functionality.
- Updated `weather_mcp/requirements.txt` to include `httpx`.
- Added comprehensive documentation for the client in `weather_mcp/README.md`.
- Updated the main `README.md` to link to the client documentation.

The client connects to the server's SSE endpoint (e.g., `http://localhost:3399/sse`) and provides a convenient way for you to integrate weather data into other Python applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants