hkopenai.hk-climate-mcp-server 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hkopenai/hk_climate_mcp_server/__init__.py +3 -40
- hkopenai/hk_climate_mcp_server/__main__.py +1 -1
- hkopenai/hk_climate_mcp_server/{app.py → server.py} +61 -59
- hkopenai/hk_climate_mcp_server/tools/astronomical.py +109 -0
- hkopenai/hk_climate_mcp_server/tools/current_weather.py +106 -0
- hkopenai/hk_climate_mcp_server/tools/forecast.py +82 -0
- hkopenai/hk_climate_mcp_server/tools/lightning.py +20 -0
- hkopenai/hk_climate_mcp_server/tools/radiation.py +206 -0
- hkopenai/hk_climate_mcp_server/tools/temperature.py +119 -0
- hkopenai/hk_climate_mcp_server/tools/tides.py +165 -0
- hkopenai/hk_climate_mcp_server/tools/visibility.py +20 -0
- hkopenai/hk_climate_mcp_server/tools/warnings.py +77 -0
- {hkopenai_hk_climate_mcp_server-0.3.0.dist-info → hkopenai_hk_climate_mcp_server-0.4.0.dist-info}/METADATA +27 -14
- hkopenai_hk_climate_mcp_server-0.4.0.dist-info/RECORD +18 -0
- hkopenai/hk_climate_mcp_server/tool_weather.py +0 -600
- hkopenai_hk_climate_mcp_server-0.3.0.dist-info/RECORD +0 -10
- {hkopenai_hk_climate_mcp_server-0.3.0.dist-info → hkopenai_hk_climate_mcp_server-0.4.0.dist-info}/WHEEL +0 -0
- {hkopenai_hk_climate_mcp_server-0.3.0.dist-info → hkopenai_hk_climate_mcp_server-0.4.0.dist-info}/entry_points.txt +0 -0
- {hkopenai_hk_climate_mcp_server-0.3.0.dist-info → hkopenai_hk_climate_mcp_server-0.4.0.dist-info}/licenses/LICENSE +0 -0
- {hkopenai_hk_climate_mcp_server-0.3.0.dist-info → hkopenai_hk_climate_mcp_server-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hkopenai.hk_climate_mcp_server
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.0
|
4
4
|
Summary: Hong Kong Weather MCP Server providing climate and weather data tools
|
5
5
|
Author-email: Neo Chow <neo@01man.com>
|
6
6
|
License-Expression: MIT
|
@@ -107,37 +107,34 @@ This is an MCP server that provides access to climate and weather data through a
|
|
107
107
|
- updateTime: Last update time
|
108
108
|
|
109
109
|
### Visibility Data
|
110
|
-
`get_visibility_data(lang: str = "en"
|
110
|
+
`get_visibility_data(lang: str = "en") -> Dict`
|
111
111
|
- Get latest 10-minute mean visibility data for Hong Kong
|
112
112
|
- Parameters:
|
113
113
|
- lang: Language code (en/tc/sc, default: en)
|
114
|
-
- rformat: Return format (json/csv, default: json)
|
115
114
|
- Returns:
|
116
115
|
- Dict containing visibility data with fields and data arrays
|
117
116
|
|
118
117
|
### Lightning Data
|
119
|
-
`get_lightning_data(lang: str = "en"
|
118
|
+
`get_lightning_data(lang: str = "en") -> Dict`
|
120
119
|
- Get cloud-to-ground and cloud-to-cloud lightning count data
|
121
120
|
- Parameters:
|
122
121
|
- lang: Language code (en/tc/sc, default: en)
|
123
|
-
- rformat: Return format (json/csv, default: json)
|
124
122
|
- Returns:
|
125
123
|
- Dict containing lightning data with fields and data arrays
|
126
124
|
|
127
125
|
### Moon Times
|
128
|
-
`get_moon_times(year: int, month: Optional[int] = None, day: Optional[int] = None, lang: str = "en"
|
126
|
+
`get_moon_times(year: int, month: Optional[int] = None, day: Optional[int] = None, lang: str = "en") -> Dict`
|
129
127
|
- Get times of moonrise, moon transit and moonset
|
130
128
|
- Parameters:
|
131
129
|
- year: Year (2018-2024)
|
132
130
|
- month: Optional month (1-12)
|
133
131
|
- day: Optional day (1-31)
|
134
132
|
- lang: Language code (en/tc/sc, default: en)
|
135
|
-
- rformat: Return format (json/csv, default: json)
|
136
133
|
- Returns:
|
137
134
|
- Dict containing moon times data with fields and data arrays
|
138
135
|
|
139
136
|
### Hourly Tides
|
140
|
-
`get_hourly_tides(station: str, year: int, month: Optional[int] = None, day: Optional[int] = None, hour: Optional[int] = None, lang: str = "en"
|
137
|
+
`get_hourly_tides(station: str, year: int, month: Optional[int] = None, day: Optional[int] = None, hour: Optional[int] = None, lang: str = "en") -> Dict`
|
141
138
|
- Get hourly heights of astronomical tides for a specific station
|
142
139
|
- Parameters:
|
143
140
|
- station: Station code (e.g. 'CCH' for Cheung Chau)
|
@@ -146,12 +143,11 @@ This is an MCP server that provides access to climate and weather data through a
|
|
146
143
|
- day: Optional day (1-31)
|
147
144
|
- hour: Optional hour (1-24)
|
148
145
|
- lang: Language code (en/tc/sc, default: en)
|
149
|
-
- rformat: Return format (json/csv, default: json)
|
150
146
|
- Returns:
|
151
147
|
- Dict containing tide data with fields and data arrays
|
152
148
|
|
153
149
|
### High/Low Tides
|
154
|
-
`get_high_low_tides(station: str, year: int, month: Optional[int] = None, day: Optional[int] = None, hour: Optional[int] = None, lang: str = "en"
|
150
|
+
`get_high_low_tides(station: str, year: int, month: Optional[int] = None, day: Optional[int] = None, hour: Optional[int] = None, lang: str = "en") -> Dict`
|
155
151
|
- Get times and heights of astronomical high and low tides
|
156
152
|
- Parameters:
|
157
153
|
- station: Station code (e.g. 'CCH' for Cheung Chau)
|
@@ -160,10 +156,27 @@ This is an MCP server that provides access to climate and weather data through a
|
|
160
156
|
- day: Optional day (1-31)
|
161
157
|
- hour: Optional hour (1-24)
|
162
158
|
- lang: Language code (en/tc/sc, default: en)
|
163
|
-
- rformat: Return format (json/csv, default: json)
|
164
159
|
- Returns:
|
165
160
|
- Dict containing tide data with fields and data arrays
|
166
161
|
|
162
|
+
### Weather and Radiation Report
|
163
|
+
`get_weather_radiation_report(date: str, station: str, lang: str = "en") -> Dict`
|
164
|
+
- Get weather and radiation level report for Hong Kong
|
165
|
+
- Parameters:
|
166
|
+
- date: Mandatory date in YYYYMMDD format (e.g., 20250618)
|
167
|
+
- station: Mandatory station code (e.g., 'HKO' for Hong Kong Observatory)
|
168
|
+
- lang: Language code (en/tc/sc, default: en)
|
169
|
+
- Returns:
|
170
|
+
- Dict containing weather and radiation data or error message if parameters are invalid
|
171
|
+
|
172
|
+
### Station Codes
|
173
|
+
`get_radiation_station_codes() -> Dict`
|
174
|
+
- Get a list of station codes and their corresponding names for weather and radiation reports in Hong Kong
|
175
|
+
- Parameters:
|
176
|
+
- None
|
177
|
+
- Returns:
|
178
|
+
- Dict mapping station codes to station names
|
179
|
+
|
167
180
|
## Setup
|
168
181
|
|
169
182
|
1. Clone this repository
|
@@ -173,13 +186,13 @@ This is an MCP server that provides access to climate and weather data through a
|
|
173
186
|
```
|
174
187
|
3. Run the server:
|
175
188
|
```bash
|
176
|
-
python
|
189
|
+
python server.py
|
177
190
|
```
|
178
191
|
|
179
192
|
### Running Options
|
180
193
|
|
181
|
-
- Default stdio mode: `python
|
182
|
-
- SSE mode (port 8000): `python
|
194
|
+
- Default stdio mode: `python server.py`
|
195
|
+
- SSE mode (port 8000): `python server.py --sse`
|
183
196
|
|
184
197
|
## Cline Integration
|
185
198
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
hkopenai/hk_climate_mcp_server/__init__.py,sha256=DDVTAriSgigX8xSy17OE0w3Wv05yuiD4EdJixt6eNLw,112
|
2
|
+
hkopenai/hk_climate_mcp_server/__main__.py,sha256=bIsnXlqwCtkerzB-j-IVGQR1zFNgZmeFxi3ww3AXe3Q,94
|
3
|
+
hkopenai/hk_climate_mcp_server/server.py,sha256=ftkqYWopE2EgKLEG4JjPyKl4Okhhy2hBauCu6hzJI3I,8307
|
4
|
+
hkopenai/hk_climate_mcp_server/tools/astronomical.py,sha256=hkrXihSdNfaY14kY9ePQsbiAfO8tQzONjkLfJUgk5CA,2990
|
5
|
+
hkopenai/hk_climate_mcp_server/tools/current_weather.py,sha256=iywirobmBHPAK2b3u9UChQSafuIcpoFPTUorRSbpAS4,3613
|
6
|
+
hkopenai/hk_climate_mcp_server/tools/forecast.py,sha256=wwxM5SSbZ_zFBkY2kbp2ehWd7c_hD6spAsz3aYHZmUw,3035
|
7
|
+
hkopenai/hk_climate_mcp_server/tools/lightning.py,sha256=eSiObmsMuKKakJT1fkg7e0B_Bwie0hSV_9ggegm497U,671
|
8
|
+
hkopenai/hk_climate_mcp_server/tools/radiation.py,sha256=EkCqKPpJVrOusm2BoQrfP1onq6Sl9XSSP0rnKcQRZjg,6529
|
9
|
+
hkopenai/hk_climate_mcp_server/tools/temperature.py,sha256=FiHCnq7OBsUNrpbDTKEfK3HyO6euKJ5Io9bciYhe2XM,3809
|
10
|
+
hkopenai/hk_climate_mcp_server/tools/tides.py,sha256=qpiYkulyEnnKzXZiZLIPtk2wDn3uKs_UpKyb8XXO23I,5089
|
11
|
+
hkopenai/hk_climate_mcp_server/tools/visibility.py,sha256=CHfLcuH6HKix6_7395ado-VppNFPlTYHABLtdXmIzV4,668
|
12
|
+
hkopenai/hk_climate_mcp_server/tools/warnings.py,sha256=XjJW25CjiAuJTmzssLDkp4oNcCIke4vbOYTaVH93EOc,2446
|
13
|
+
hkopenai_hk_climate_mcp_server-0.4.0.dist-info/licenses/LICENSE,sha256=RzryYGol65qd1yszjiy-hSUsX9EJJkpwEpNXnIs_Bv8,1070
|
14
|
+
hkopenai_hk_climate_mcp_server-0.4.0.dist-info/METADATA,sha256=pBkI1stOW_CC-YERrc8lFpsVvyWdqAw6jTUg35M0g4o,7173
|
15
|
+
hkopenai_hk_climate_mcp_server-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
+
hkopenai_hk_climate_mcp_server-0.4.0.dist-info/entry_points.txt,sha256=2pPEyDw5KdrNNZIGQsSrY-5IRMgWaWvEQT_BQJhKPMQ,82
|
17
|
+
hkopenai_hk_climate_mcp_server-0.4.0.dist-info/top_level.txt,sha256=6PRVKRM9BiU5vzKKGnsq2t0-Bi0TrJvSY35llo4nLFA,9
|
18
|
+
hkopenai_hk_climate_mcp_server-0.4.0.dist-info/RECORD,,
|