mcp_weather_server.py
)get_weather_forecast
- Raw forecast dataget_weather_summary
- Client-friendly formatted summaryshared/mcp_weather_client.py
)shared/assistant_tools_weather.py
)v_get_weather_forecast
- Detailed forecast JSONv_get_weather_summary_for_client
- Client presentation formatv_check_weather_suitable_for_yacht_tour
- Suitability assessmentv_get_contoso_islands_weather
- All tour locations at oncecontrollers/ask_veta.py
):
assistant_configurations/veta.json
):
assistant_configurations/veta.txt
):
requirements.txt
):
mcp == 1.3.0
- Model Context Protocolhttpx == 0.28.1
- HTTP client for weather APICustomer: "I'd like to book yacht #200 for tomorrow"
Veta: "Let me check availability and weather conditions..."
[Checks yacht availability - existing functionality]
[Uses MCP weather tools for tour location]
Veta: "๐ Weather Information for Your Yacht Tour Location ๐
๐ Coordinates: 25.7617, -80.1918
=== Weather Forecast ===
Today:
Temperature: 78ยฐF
Conditions: Partly Cloudy
Details: Partly cloudy with light winds
Tonight:
Temperature: 72ยฐF
Conditions: Clear
The weather looks great for your yacht tour! Are you comfortable proceeding with these conditions?"
Customer: "Yes, that sounds perfect!"
Veta: "Excellent! I'll create your reservation..."
Azure Functions (Veta Assistant)
โ calls weather tools
Weather Tools (assistant_tools_weather.py)
โ uses MCP client
MCP Weather Client (mcp_weather_client.py)
โ JSON-RPC over stdio
MCP Weather Server (mcp_weather_server.py)
โ HTTP requests
National Weather Service API (api.weather.gov)
โ All tests passing:
The MCP weather integration is fully implemented and ready for use:
โ
MCP Server Built - Complete weather MCP server with National Weather Service API
โ
Tool Integration - Veta can call weather tools using MCP protocol
โ
Existing Use Cases Maintained - All current assistant functionality preserved
โ
Weather Before Reservations - Mandatory weather checking implemented
โ
Azure/Azure OpenAI Based - No Claude Desktop dependencies
โ
Minimal Changes - Only necessary modifications made
โ
Proper MCP Client-Server Architecture - Standard MCP implementation
The implementation delivers all requested functionality with a proper MCP architecture that provides standardized tool discovery, protocol-based communication, server capability introspection, and easier tool integration compared to direct API integration.
The Contoso AI Apps Backend now has full MCP weather integration ready for yacht tour customers! ๐ขโ