# Testing Weather MCP Server in VS Code
## ✓ MCP Server Status
The MCP server has been verified and is working correctly:
- **Server Name**: weather
- **Version**: 1.22.0
- **Available Tools**: 2 (get_alerts, get_forecast)
## Configuration
The server is configured in `~/.continue/config.yaml`:
```yaml
mcpServers:
- name: Weather MCP
command: uv
args:
- --directory
- /Users/bryan/Projects/weather_mcp
- run
- weather.py
```
## Testing Steps in VS Code
### 1. Open VS Code
```bash
code /Users/bryan/Projects/weather_mcp
```
### 2. Verify Continue Extension
- Open the Continue sidebar (usually on the left panel)
- Look for the Continue icon or press the Continue shortcut
### 3. Test the MCP Server
#### Test 1: Get Weather Alerts
In the Continue chat, try:
```
Use the Weather MCP server to get weather alerts for California (CA)
```
Expected: The server should return current weather alerts for California, or indicate there are no active alerts.
#### Test 2: Get Weather Forecast
In the Continue chat, try:
```
Use the Weather MCP server to get the forecast for San Francisco (latitude 37.7749, longitude -122.4194)
```
Expected: The server should return a 5-period weather forecast with temperature, wind, and detailed forecast information.
### 4. Check MCP Server Status in Continue
The Continue extension should show:
- MCP server connection status
- Available tools from the Weather MCP server
- Any error messages if the connection fails
### 5. Troubleshooting
If the MCP server doesn't appear or work:
1. **Restart VS Code** to reload the Continue configuration
2. **Check Continue Developer Console**:
- Open Command Palette (Cmd+Shift+P)
- Search for "Developer: Toggle Developer Tools"
- Check the Console tab for MCP-related errors
3. **Verify the configuration**:
```bash
cat ~/.continue/config.yaml
```
4. **Test the server manually** (outside VS Code):
```bash
python3 /Users/bryan/Projects/weather_mcp/test_mcp.py
```
5. **Check Continue logs**:
- Look in `~/.continue/dev_data/` for log files
- Check for MCP server connection errors
## Example Queries
### Weather Alerts
- "Get weather alerts for Texas"
- "Are there any weather alerts in Florida?"
- "Check weather alerts for NY"
### Weather Forecasts
- "What's the weather forecast for New York City? (40.7128, -74.0060)"
- "Get the forecast for Los Angeles (34.0522, -118.2437)"
- "Weather forecast for Seattle (47.6062, -122.3321)"
## Notes
- The NWS API only works for US locations
- State codes must be 2-letter uppercase (e.g., CA, NY, TX)
- Forecasts are limited to the next 5 periods
- Coordinates should be in decimal degrees (latitude, longitude)