├── README.md ├── openweather-server ├── build │ ├── index.d.ts │ ├── index.js.map │ └── index.js ├── tsconfig.json ├── package.json ├── README.md ├── src │ └── index.ts └── package-lock.json ├── LICENSE └── .gitignore /README.md: -------------------------------------------------------------------------------- 1 | # mcp-servers -------------------------------------------------------------------------------- /openweather-server/build/index.d.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | export {}; 3 | -------------------------------------------------------------------------------- /openweather-server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "module": "NodeNext", 5 | "moduleResolution": "NodeNext", 6 | "esModuleInterop": true, 7 | "strict": true, 8 | "outDir": "build", 9 | "declaration": true, 10 | "sourceMap": true, 11 | "skipLibCheck": true 12 | }, 13 | "include": ["src/**/*"], 14 | "exclude": ["node_modules", "build"] 15 | } 16 | -------------------------------------------------------------------------------- /openweather-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "openweather-server", 3 | "version": "1.0.0", 4 | "main": "build/index.js", 5 | "type": "module", 6 | "scripts": { 7 | "build": "tsc", 8 | "postbuild": "chmod +x build/index.js", 9 | "start": "node build/index.js", 10 | "dev": "tsc -w" 11 | }, 12 | "keywords": [], 13 | "author": "", 14 | "license": "ISC", 15 | "description": "", 16 | "dependencies": { 17 | "@modelcontextprotocol/sdk": "^1.6.1", 18 | "axios": "^1.8.2" 19 | }, 20 | "devDependencies": { 21 | "@types/node": "^22.13.10", 22 | "typescript": "^5.8.2" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 sugarforever 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | .pnpm-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # Snowpack dependency directory (https://snowpack.dev/) 46 | web_modules/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional stylelint cache 58 | .stylelintcache 59 | 60 | # Microbundle cache 61 | .rpt2_cache/ 62 | .rts2_cache_cjs/ 63 | .rts2_cache_es/ 64 | .rts2_cache_umd/ 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variable files 76 | .env 77 | .env.development.local 78 | .env.test.local 79 | .env.production.local 80 | .env.local 81 | 82 | # parcel-bundler cache (https://parceljs.org/) 83 | .cache 84 | .parcel-cache 85 | 86 | # Next.js build output 87 | .next 88 | out 89 | 90 | # Nuxt.js build / generate output 91 | .nuxt 92 | dist 93 | 94 | # Gatsby files 95 | .cache/ 96 | # Comment in the public line in if your project uses Gatsby and not Next.js 97 | # https://nextjs.org/blog/next-9-1#public-directory-support 98 | # public 99 | 100 | # vuepress build output 101 | .vuepress/dist 102 | 103 | # vuepress v2.x temp and cache directory 104 | .temp 105 | .cache 106 | 107 | # Docusaurus cache and generated files 108 | .docusaurus 109 | 110 | # Serverless directories 111 | .serverless/ 112 | 113 | # FuseBox cache 114 | .fusebox/ 115 | 116 | # DynamoDB Local files 117 | .dynamodb/ 118 | 119 | # TernJS port file 120 | .tern-port 121 | 122 | # Stores VSCode versions used for testing VSCode extensions 123 | .vscode-test 124 | 125 | # yarn v2 126 | .yarn/cache 127 | .yarn/unplugged 128 | .yarn/build-state.yml 129 | .yarn/install-state.gz 130 | .pnp.* 131 | -------------------------------------------------------------------------------- /openweather-server/README.md: -------------------------------------------------------------------------------- 1 | # OpenWeather MCP Server 2 | 3 | This is a Model Context Protocol (MCP) server that provides tools for accessing weather data from the OpenWeather API. 4 | 5 | ## Features 6 | 7 | - Get current weather for any city 8 | - Get weather forecast for any city (up to 5 days) 9 | - Support for different units of measurement (metric, imperial, standard) 10 | 11 | ## Installation 12 | 13 | 1. Clone the repository 14 | 2. Install dependencies: 15 | ``` 16 | npm install 17 | ``` 18 | 3. Build the project: 19 | ``` 20 | npm run build 21 | ``` 22 | 23 | ## Configuration 24 | 25 | The server requires an OpenWeather API key to function. You can get one by signing up at [OpenWeatherMap](https://openweathermap.org/). 26 | 27 | Add your API key to the MCP settings configuration file: 28 | 29 | ```json 30 | { 31 | "mcpServers": { 32 | "openweather-server": { 33 | "command": "node", 34 | "args": [ 35 | "/path/to/openweather-server/build/index.js" 36 | ], 37 | "env": { 38 | "OPENWEATHER_API_KEY": "your-api-key-here" 39 | }, 40 | "disabled": false, 41 | "autoApprove": [] 42 | } 43 | } 44 | } 45 | ``` 46 | 47 | ## Available Tools 48 | 49 | ### get_current_weather 50 | 51 | Get current weather for a city. 52 | 53 | **Input Schema:** 54 | ```json 55 | { 56 | "city": "London", 57 | "units": "metric" // optional, defaults to "metric", can be "metric", "imperial", or "standard" 58 | } 59 | ``` 60 | 61 | **Example Response:** 62 | ```json 63 | { 64 | "city": "London", 65 | "country": "GB", 66 | "temperature": { 67 | "current": "15.2°C", 68 | "feels_like": "14.8°C", 69 | "min": "13.9°C", 70 | "max": "16.7°C" 71 | }, 72 | "weather": { 73 | "main": "Clouds", 74 | "description": "scattered clouds", 75 | "icon": "https://openweathermap.org/img/wn/03d@2x.png" 76 | }, 77 | "details": { 78 | "humidity": "76%", 79 | "pressure": "1012 hPa", 80 | "wind_speed": "4.6 m/s", 81 | "wind_direction": "250°", 82 | "cloudiness": "40%" 83 | }, 84 | "sun": { 85 | "sunrise": "6:45:12 AM", 86 | "sunset": "7:30:57 PM" 87 | }, 88 | "timestamp": "2025-03-09T20:03:22.000Z" 89 | } 90 | ``` 91 | 92 | ### get_weather_forecast 93 | 94 | Get weather forecast for a city. 95 | 96 | **Input Schema:** 97 | ```json 98 | { 99 | "city": "London", 100 | "days": 3, // optional, defaults to 3, max 5 101 | "units": "metric" // optional, defaults to "metric", can be "metric", "imperial", or "standard" 102 | } 103 | ``` 104 | 105 | **Example Response:** 106 | ```json 107 | { 108 | "city": "London", 109 | "country": "GB", 110 | "forecast": [ 111 | { 112 | "date": "2025-03-09", 113 | "forecasts": [ 114 | { 115 | "time": "21:00:00", 116 | "temperature": "12.5°C", 117 | "feels_like": "11.8°C", 118 | "weather": { 119 | "main": "Clouds", 120 | "description": "scattered clouds", 121 | "icon": "https://openweathermap.org/img/wn/03n@2x.png" 122 | }, 123 | "details": { 124 | "humidity": "82%", 125 | "pressure": "1011 hPa", 126 | "wind_speed": "3.8 m/s", 127 | "wind_direction": "240°", 128 | "cloudiness": "45%" 129 | } 130 | }, 131 | // More forecasts for this day... 132 | ] 133 | }, 134 | // More days... 135 | ], 136 | "timestamp": "2025-03-09T20:03:22.000Z" 137 | } 138 | ``` 139 | 140 | ## Development 141 | 142 | - `npm run build` - Build the project 143 | - `npm run start` - Start the server 144 | - `npm run dev` - Start the server in development mode with watch 145 | 146 | ## License 147 | 148 | ISC 149 | -------------------------------------------------------------------------------- /openweather-server/build/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,sBAAsB,EACtB,QAAQ,GACT,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,yCAAyC;AACzC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;AAChD,IAAI,CAAC,OAAO,EAAE,CAAC;IACb,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;AAC1E,CAAC;AAiED,iCAAiC;AACjC,MAAM,yBAAyB,GAAG,CAChC,IAAS,EACiC,EAAE,CAC5C,OAAO,IAAI,KAAK,QAAQ;IACxB,IAAI,KAAK,IAAI;IACb,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;IAC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AAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACrC,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC3D,CAAC;CACF;AAED,MAAM,MAAM,GAAG,IAAI,iBAAiB,EAAE,CAAC;AACvC,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} -------------------------------------------------------------------------------- /openweather-server/build/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import { Server } from '@modelcontextprotocol/sdk/server/index.js'; 3 | import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; 4 | import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError, } from '@modelcontextprotocol/sdk/types.js'; 5 | import axios from 'axios'; 6 | // Get API key from environment variables 7 | const API_KEY = process.env.OPENWEATHER_API_KEY; 8 | if (!API_KEY) { 9 | throw new Error('OPENWEATHER_API_KEY environment variable is required'); 10 | } 11 | // Type guards for tool arguments 12 | const isValidCurrentWeatherArgs = (args) => typeof args === 'object' && 13 | args !== null && 14 | typeof args.city === 'string' && 15 | (args.units === undefined || 16 | ['standard', 'metric', 'imperial'].includes(args.units)); 17 | const isValidForecastArgs = (args) => typeof args === 'object' && 18 | args !== null && 19 | typeof args.city === 'string' && 20 | (args.days === undefined || typeof args.days === 'number') && 21 | (args.units === undefined || 22 | ['standard', 'metric', 'imperial'].includes(args.units)); 23 | class OpenWeatherServer { 24 | constructor() { 25 | this.server = new Server({ 26 | name: 'openweather-server', 27 | version: '1.0.0', 28 | }, { 29 | capabilities: { 30 | tools: {}, 31 | }, 32 | }); 33 | this.axiosInstance = axios.create({ 34 | baseURL: 'https://api.openweathermap.org/data/2.5', 35 | params: { 36 | appid: API_KEY, 37 | }, 38 | }); 39 | this.setupToolHandlers(); 40 | // Error handling 41 | this.server.onerror = (error) => console.error('[MCP Error]', error); 42 | process.on('SIGINT', async () => { 43 | await this.server.close(); 44 | process.exit(0); 45 | }); 46 | } 47 | setupToolHandlers() { 48 | this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ 49 | tools: [ 50 | { 51 | name: 'get_current_weather', 52 | description: 'Get current weather for a city', 53 | inputSchema: { 54 | type: 'object', 55 | properties: { 56 | city: { 57 | type: 'string', 58 | description: 'City name (e.g., "London", "New York", "Tokyo")', 59 | }, 60 | units: { 61 | type: 'string', 62 | enum: ['standard', 'metric', 'imperial'], 63 | description: 'Units of measurement (standard: Kelvin, metric: Celsius, imperial: Fahrenheit)', 64 | default: 'metric', 65 | }, 66 | }, 67 | required: ['city'], 68 | }, 69 | }, 70 | { 71 | name: 'get_weather_forecast', 72 | description: 'Get weather forecast for a city', 73 | inputSchema: { 74 | type: 'object', 75 | properties: { 76 | city: { 77 | type: 'string', 78 | description: 'City name (e.g., "London", "New York", "Tokyo")', 79 | }, 80 | days: { 81 | type: 'number', 82 | description: 'Number of days for forecast (1-5)', 83 | minimum: 1, 84 | maximum: 5, 85 | default: 3, 86 | }, 87 | units: { 88 | type: 'string', 89 | enum: ['standard', 'metric', 'imperial'], 90 | description: 'Units of measurement (standard: Kelvin, metric: Celsius, imperial: Fahrenheit)', 91 | default: 'metric', 92 | }, 93 | }, 94 | required: ['city'], 95 | }, 96 | }, 97 | ], 98 | })); 99 | this.server.setRequestHandler(CallToolRequestSchema, async (request) => { 100 | switch (request.params.name) { 101 | case 'get_current_weather': 102 | return this.handleGetCurrentWeather(request.params.arguments); 103 | case 'get_weather_forecast': 104 | return this.handleGetWeatherForecast(request.params.arguments); 105 | default: 106 | throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${request.params.name}`); 107 | } 108 | }); 109 | } 110 | async handleGetCurrentWeather(args) { 111 | if (!isValidCurrentWeatherArgs(args)) { 112 | throw new McpError(ErrorCode.InvalidParams, 'Invalid arguments for get_current_weather'); 113 | } 114 | const { city, units = 'metric' } = args; 115 | try { 116 | const response = await this.axiosInstance.get('weather', { 117 | params: { 118 | q: city, 119 | units, 120 | }, 121 | }); 122 | const data = response.data; 123 | const tempUnit = units === 'metric' ? '°C' : units === 'imperial' ? '°F' : 'K'; 124 | const windUnit = units === 'imperial' ? 'mph' : 'm/s'; 125 | const formattedResponse = { 126 | city: data.name, 127 | country: data.sys.country, 128 | temperature: { 129 | current: `${data.main.temp}${tempUnit}`, 130 | feels_like: `${data.main.feels_like}${tempUnit}`, 131 | min: `${data.main.temp_min}${tempUnit}`, 132 | max: `${data.main.temp_max}${tempUnit}`, 133 | }, 134 | weather: { 135 | main: data.weather[0].main, 136 | description: data.weather[0].description, 137 | icon: `https://openweathermap.org/img/wn/${data.weather[0].icon}@2x.png`, 138 | }, 139 | details: { 140 | humidity: `${data.main.humidity}%`, 141 | pressure: `${data.main.pressure} hPa`, 142 | wind_speed: `${data.wind.speed} ${windUnit}`, 143 | wind_direction: `${data.wind.deg}°`, 144 | cloudiness: `${data.clouds.all}%`, 145 | }, 146 | sun: { 147 | sunrise: new Date(data.sys.sunrise * 1000).toLocaleTimeString(), 148 | sunset: new Date(data.sys.sunset * 1000).toLocaleTimeString(), 149 | }, 150 | timestamp: new Date().toISOString(), 151 | }; 152 | return { 153 | content: [ 154 | { 155 | type: 'text', 156 | text: JSON.stringify(formattedResponse, null, 2), 157 | }, 158 | ], 159 | }; 160 | } 161 | catch (error) { 162 | if (axios.isAxiosError(error)) { 163 | return { 164 | content: [ 165 | { 166 | type: 'text', 167 | text: `Weather API error: ${error.response?.data.message ?? error.message}`, 168 | }, 169 | ], 170 | isError: true, 171 | }; 172 | } 173 | throw error; 174 | } 175 | } 176 | async handleGetWeatherForecast(args) { 177 | if (!isValidForecastArgs(args)) { 178 | throw new McpError(ErrorCode.InvalidParams, 'Invalid arguments for get_weather_forecast'); 179 | } 180 | const { city, days = 3, units = 'metric' } = args; 181 | try { 182 | const response = await this.axiosInstance.get('forecast', { 183 | params: { 184 | q: city, 185 | units, 186 | cnt: days * 8, // OpenWeather provides forecast in 3-hour steps, so 8 per day 187 | }, 188 | }); 189 | const data = response.data; 190 | const tempUnit = units === 'metric' ? '°C' : units === 'imperial' ? '°F' : 'K'; 191 | const windUnit = units === 'imperial' ? 'mph' : 'm/s'; 192 | // Group forecast by day 193 | const forecastByDay = {}; 194 | data.list.forEach((item) => { 195 | const date = item.dt_txt.split(' ')[0]; 196 | if (!forecastByDay[date]) { 197 | forecastByDay[date] = []; 198 | } 199 | forecastByDay[date].push({ 200 | time: item.dt_txt.split(' ')[1], 201 | temperature: `${item.main.temp}${tempUnit}`, 202 | feels_like: `${item.main.feels_like}${tempUnit}`, 203 | weather: { 204 | main: item.weather[0].main, 205 | description: item.weather[0].description, 206 | icon: `https://openweathermap.org/img/wn/${item.weather[0].icon}@2x.png`, 207 | }, 208 | details: { 209 | humidity: `${item.main.humidity}%`, 210 | pressure: `${item.main.pressure} hPa`, 211 | wind_speed: `${item.wind.speed} ${windUnit}`, 212 | wind_direction: `${item.wind.deg}°`, 213 | cloudiness: `${item.clouds.all}%`, 214 | }, 215 | }); 216 | }); 217 | const formattedResponse = { 218 | city: data.city.name, 219 | country: data.city.country, 220 | forecast: Object.entries(forecastByDay).map(([date, forecasts]) => ({ 221 | date, 222 | forecasts, 223 | })), 224 | timestamp: new Date().toISOString(), 225 | }; 226 | return { 227 | content: [ 228 | { 229 | type: 'text', 230 | text: JSON.stringify(formattedResponse, null, 2), 231 | }, 232 | ], 233 | }; 234 | } 235 | catch (error) { 236 | if (axios.isAxiosError(error)) { 237 | return { 238 | content: [ 239 | { 240 | type: 'text', 241 | text: `Weather API error: ${error.response?.data.message ?? error.message}`, 242 | }, 243 | ], 244 | isError: true, 245 | }; 246 | } 247 | throw error; 248 | } 249 | } 250 | async run() { 251 | const transport = new StdioServerTransport(); 252 | await this.server.connect(transport); 253 | console.error('OpenWeather MCP server running on stdio'); 254 | } 255 | } 256 | const server = new OpenWeatherServer(); 257 | server.run().catch(console.error); 258 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /openweather-server/src/index.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import { Server } from '@modelcontextprotocol/sdk/server/index.js'; 3 | import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; 4 | import { 5 | CallToolRequestSchema, 6 | ErrorCode, 7 | ListToolsRequestSchema, 8 | McpError, 9 | } from '@modelcontextprotocol/sdk/types.js'; 10 | import axios from 'axios'; 11 | 12 | // Get API key from environment variables 13 | const API_KEY = process.env.OPENWEATHER_API_KEY; 14 | if (!API_KEY) { 15 | throw new Error('OPENWEATHER_API_KEY environment variable is required'); 16 | } 17 | 18 | // Define interfaces for OpenWeather API responses 19 | interface WeatherResponse { 20 | main: { 21 | temp: number; 22 | feels_like: number; 23 | temp_min: number; 24 | temp_max: number; 25 | pressure: number; 26 | humidity: number; 27 | }; 28 | weather: Array<{ 29 | id: number; 30 | main: string; 31 | description: string; 32 | icon: string; 33 | }>; 34 | wind: { 35 | speed: number; 36 | deg: number; 37 | }; 38 | clouds: { 39 | all: number; 40 | }; 41 | sys: { 42 | country: string; 43 | sunrise: number; 44 | sunset: number; 45 | }; 46 | name: string; 47 | } 48 | 49 | interface ForecastResponse { 50 | list: Array<{ 51 | dt: number; 52 | main: { 53 | temp: number; 54 | feels_like: number; 55 | temp_min: number; 56 | temp_max: number; 57 | pressure: number; 58 | humidity: number; 59 | }; 60 | weather: Array<{ 61 | id: number; 62 | main: string; 63 | description: string; 64 | icon: string; 65 | }>; 66 | clouds: { 67 | all: number; 68 | }; 69 | wind: { 70 | speed: number; 71 | deg: number; 72 | }; 73 | dt_txt: string; 74 | }>; 75 | city: { 76 | name: string; 77 | country: string; 78 | }; 79 | } 80 | 81 | // Type guards for tool arguments 82 | const isValidCurrentWeatherArgs = ( 83 | args: any 84 | ): args is { city: string; units?: string } => 85 | typeof args === 'object' && 86 | args !== null && 87 | typeof args.city === 'string' && 88 | (args.units === undefined || 89 | ['standard', 'metric', 'imperial'].includes(args.units)); 90 | 91 | const isValidForecastArgs = ( 92 | args: any 93 | ): args is { city: string; days?: number; units?: string } => 94 | typeof args === 'object' && 95 | args !== null && 96 | typeof args.city === 'string' && 97 | (args.days === undefined || typeof args.days === 'number') && 98 | (args.units === undefined || 99 | ['standard', 'metric', 'imperial'].includes(args.units)); 100 | 101 | class OpenWeatherServer { 102 | private server: Server; 103 | private axiosInstance; 104 | 105 | constructor() { 106 | this.server = new Server( 107 | { 108 | name: 'openweather-server', 109 | version: '1.0.0', 110 | }, 111 | { 112 | capabilities: { 113 | tools: {}, 114 | }, 115 | } 116 | ); 117 | 118 | this.axiosInstance = axios.create({ 119 | baseURL: 'https://api.openweathermap.org/data/2.5', 120 | params: { 121 | appid: API_KEY, 122 | }, 123 | }); 124 | 125 | this.setupToolHandlers(); 126 | 127 | // Error handling 128 | this.server.onerror = (error) => console.error('[MCP Error]', error); 129 | process.on('SIGINT', async () => { 130 | await this.server.close(); 131 | process.exit(0); 132 | }); 133 | } 134 | 135 | private setupToolHandlers() { 136 | this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ 137 | tools: [ 138 | { 139 | name: 'get_current_weather', 140 | description: 'Get current weather for a city', 141 | inputSchema: { 142 | type: 'object', 143 | properties: { 144 | city: { 145 | type: 'string', 146 | description: 'City name (e.g., "London", "New York", "Tokyo")', 147 | }, 148 | units: { 149 | type: 'string', 150 | enum: ['standard', 'metric', 'imperial'], 151 | description: 'Units of measurement (standard: Kelvin, metric: Celsius, imperial: Fahrenheit)', 152 | default: 'metric', 153 | }, 154 | }, 155 | required: ['city'], 156 | }, 157 | }, 158 | { 159 | name: 'get_weather_forecast', 160 | description: 'Get weather forecast for a city', 161 | inputSchema: { 162 | type: 'object', 163 | properties: { 164 | city: { 165 | type: 'string', 166 | description: 'City name (e.g., "London", "New York", "Tokyo")', 167 | }, 168 | days: { 169 | type: 'number', 170 | description: 'Number of days for forecast (1-5)', 171 | minimum: 1, 172 | maximum: 5, 173 | default: 3, 174 | }, 175 | units: { 176 | type: 'string', 177 | enum: ['standard', 'metric', 'imperial'], 178 | description: 'Units of measurement (standard: Kelvin, metric: Celsius, imperial: Fahrenheit)', 179 | default: 'metric', 180 | }, 181 | }, 182 | required: ['city'], 183 | }, 184 | }, 185 | ], 186 | })); 187 | 188 | this.server.setRequestHandler(CallToolRequestSchema, async (request) => { 189 | switch (request.params.name) { 190 | case 'get_current_weather': 191 | return this.handleGetCurrentWeather(request.params.arguments); 192 | case 'get_weather_forecast': 193 | return this.handleGetWeatherForecast(request.params.arguments); 194 | default: 195 | throw new McpError( 196 | ErrorCode.MethodNotFound, 197 | `Unknown tool: ${request.params.name}` 198 | ); 199 | } 200 | }); 201 | } 202 | 203 | private async handleGetCurrentWeather(args: unknown) { 204 | if (!isValidCurrentWeatherArgs(args)) { 205 | throw new McpError( 206 | ErrorCode.InvalidParams, 207 | 'Invalid arguments for get_current_weather' 208 | ); 209 | } 210 | 211 | const { city, units = 'metric' } = args; 212 | 213 | try { 214 | const response = await this.axiosInstance.get('weather', { 215 | params: { 216 | q: city, 217 | units, 218 | }, 219 | }); 220 | 221 | const data = response.data; 222 | const tempUnit = units === 'metric' ? '°C' : units === 'imperial' ? '°F' : 'K'; 223 | const windUnit = units === 'imperial' ? 'mph' : 'm/s'; 224 | 225 | const formattedResponse = { 226 | city: data.name, 227 | country: data.sys.country, 228 | temperature: { 229 | current: `${data.main.temp}${tempUnit}`, 230 | feels_like: `${data.main.feels_like}${tempUnit}`, 231 | min: `${data.main.temp_min}${tempUnit}`, 232 | max: `${data.main.temp_max}${tempUnit}`, 233 | }, 234 | weather: { 235 | main: data.weather[0].main, 236 | description: data.weather[0].description, 237 | icon: `https://openweathermap.org/img/wn/${data.weather[0].icon}@2x.png`, 238 | }, 239 | details: { 240 | humidity: `${data.main.humidity}%`, 241 | pressure: `${data.main.pressure} hPa`, 242 | wind_speed: `${data.wind.speed} ${windUnit}`, 243 | wind_direction: `${data.wind.deg}°`, 244 | cloudiness: `${data.clouds.all}%`, 245 | }, 246 | sun: { 247 | sunrise: new Date(data.sys.sunrise * 1000).toLocaleTimeString(), 248 | sunset: new Date(data.sys.sunset * 1000).toLocaleTimeString(), 249 | }, 250 | timestamp: new Date().toISOString(), 251 | }; 252 | 253 | return { 254 | content: [ 255 | { 256 | type: 'text', 257 | text: JSON.stringify(formattedResponse, null, 2), 258 | }, 259 | ], 260 | }; 261 | } catch (error) { 262 | if (axios.isAxiosError(error)) { 263 | return { 264 | content: [ 265 | { 266 | type: 'text', 267 | text: `Weather API error: ${ 268 | error.response?.data.message ?? error.message 269 | }`, 270 | }, 271 | ], 272 | isError: true, 273 | }; 274 | } 275 | throw error; 276 | } 277 | } 278 | 279 | private async handleGetWeatherForecast(args: unknown) { 280 | if (!isValidForecastArgs(args)) { 281 | throw new McpError( 282 | ErrorCode.InvalidParams, 283 | 'Invalid arguments for get_weather_forecast' 284 | ); 285 | } 286 | 287 | const { city, days = 3, units = 'metric' } = args; 288 | 289 | try { 290 | const response = await this.axiosInstance.get('forecast', { 291 | params: { 292 | q: city, 293 | units, 294 | cnt: days * 8, // OpenWeather provides forecast in 3-hour steps, so 8 per day 295 | }, 296 | }); 297 | 298 | const data = response.data; 299 | const tempUnit = units === 'metric' ? '°C' : units === 'imperial' ? '°F' : 'K'; 300 | const windUnit = units === 'imperial' ? 'mph' : 'm/s'; 301 | 302 | // Group forecast by day 303 | const forecastByDay: Record = {}; 304 | data.list.forEach((item) => { 305 | const date = item.dt_txt.split(' ')[0]; 306 | if (!forecastByDay[date]) { 307 | forecastByDay[date] = []; 308 | } 309 | forecastByDay[date].push({ 310 | time: item.dt_txt.split(' ')[1], 311 | temperature: `${item.main.temp}${tempUnit}`, 312 | feels_like: `${item.main.feels_like}${tempUnit}`, 313 | weather: { 314 | main: item.weather[0].main, 315 | description: item.weather[0].description, 316 | icon: `https://openweathermap.org/img/wn/${item.weather[0].icon}@2x.png`, 317 | }, 318 | details: { 319 | humidity: `${item.main.humidity}%`, 320 | pressure: `${item.main.pressure} hPa`, 321 | wind_speed: `${item.wind.speed} ${windUnit}`, 322 | wind_direction: `${item.wind.deg}°`, 323 | cloudiness: `${item.clouds.all}%`, 324 | }, 325 | }); 326 | }); 327 | 328 | const formattedResponse = { 329 | city: data.city.name, 330 | country: data.city.country, 331 | forecast: Object.entries(forecastByDay).map(([date, forecasts]) => ({ 332 | date, 333 | forecasts, 334 | })), 335 | timestamp: new Date().toISOString(), 336 | }; 337 | 338 | return { 339 | content: [ 340 | { 341 | type: 'text', 342 | text: JSON.stringify(formattedResponse, null, 2), 343 | }, 344 | ], 345 | }; 346 | } catch (error) { 347 | if (axios.isAxiosError(error)) { 348 | return { 349 | content: [ 350 | { 351 | type: 'text', 352 | text: `Weather API error: ${ 353 | error.response?.data.message ?? error.message 354 | }`, 355 | }, 356 | ], 357 | isError: true, 358 | }; 359 | } 360 | throw error; 361 | } 362 | } 363 | 364 | async run() { 365 | const transport = new StdioServerTransport(); 366 | await this.server.connect(transport); 367 | console.error('OpenWeather MCP server running on stdio'); 368 | } 369 | } 370 | 371 | const server = new OpenWeatherServer(); 372 | server.run().catch(console.error); 373 | -------------------------------------------------------------------------------- /openweather-server/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "openweather-server", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "openweather-server", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "@modelcontextprotocol/sdk": "^1.6.1", 13 | "axios": "^1.8.2" 14 | }, 15 | "devDependencies": { 16 | "@types/node": "^22.13.10", 17 | "typescript": "^5.8.2" 18 | } 19 | }, 20 | "node_modules/@modelcontextprotocol/sdk": { 21 | "version": "1.6.1", 22 | "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.6.1.tgz", 23 | "integrity": "sha512-oxzMzYCkZHMntzuyerehK3fV6A2Kwh5BD6CGEJSVDU2QNEhfLOptf2X7esQgaHZXHZY0oHmMsOtIDLP71UJXgA==", 24 | "dependencies": { 25 | "content-type": "^1.0.5", 26 | "cors": "^2.8.5", 27 | "eventsource": "^3.0.2", 28 | "express": "^5.0.1", 29 | "express-rate-limit": "^7.5.0", 30 | "pkce-challenge": "^4.1.0", 31 | "raw-body": "^3.0.0", 32 | "zod": "^3.23.8", 33 | "zod-to-json-schema": "^3.24.1" 34 | }, 35 | "engines": { 36 | "node": ">=18" 37 | } 38 | }, 39 | "node_modules/@types/node": { 40 | "version": "22.13.10", 41 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", 42 | "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", 43 | "dev": true, 44 | "dependencies": { 45 | "undici-types": "~6.20.0" 46 | } 47 | }, 48 | "node_modules/accepts": { 49 | "version": "2.0.0", 50 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", 51 | "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", 52 | "dependencies": { 53 | "mime-types": "^3.0.0", 54 | "negotiator": "^1.0.0" 55 | }, 56 | "engines": { 57 | "node": ">= 0.6" 58 | } 59 | }, 60 | "node_modules/asynckit": { 61 | "version": "0.4.0", 62 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 63 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 64 | }, 65 | "node_modules/axios": { 66 | "version": "1.8.2", 67 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz", 68 | "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==", 69 | "dependencies": { 70 | "follow-redirects": "^1.15.6", 71 | "form-data": "^4.0.0", 72 | "proxy-from-env": "^1.1.0" 73 | } 74 | }, 75 | "node_modules/body-parser": { 76 | "version": "2.1.0", 77 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", 78 | "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", 79 | "dependencies": { 80 | "bytes": "^3.1.2", 81 | "content-type": "^1.0.5", 82 | "debug": "^4.4.0", 83 | "http-errors": "^2.0.0", 84 | "iconv-lite": "^0.5.2", 85 | "on-finished": "^2.4.1", 86 | "qs": "^6.14.0", 87 | "raw-body": "^3.0.0", 88 | "type-is": "^2.0.0" 89 | }, 90 | "engines": { 91 | "node": ">=18" 92 | } 93 | }, 94 | "node_modules/body-parser/node_modules/debug": { 95 | "version": "4.4.0", 96 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 97 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 98 | "dependencies": { 99 | "ms": "^2.1.3" 100 | }, 101 | "engines": { 102 | "node": ">=6.0" 103 | }, 104 | "peerDependenciesMeta": { 105 | "supports-color": { 106 | "optional": true 107 | } 108 | } 109 | }, 110 | "node_modules/body-parser/node_modules/ms": { 111 | "version": "2.1.3", 112 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 113 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 114 | }, 115 | "node_modules/body-parser/node_modules/qs": { 116 | "version": "6.14.0", 117 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", 118 | "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", 119 | "dependencies": { 120 | "side-channel": "^1.1.0" 121 | }, 122 | "engines": { 123 | "node": ">=0.6" 124 | }, 125 | "funding": { 126 | "url": "https://github.com/sponsors/ljharb" 127 | } 128 | }, 129 | "node_modules/bytes": { 130 | "version": "3.1.2", 131 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 132 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 133 | "engines": { 134 | "node": ">= 0.8" 135 | } 136 | }, 137 | "node_modules/call-bind-apply-helpers": { 138 | "version": "1.0.2", 139 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", 140 | "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", 141 | "dependencies": { 142 | "es-errors": "^1.3.0", 143 | "function-bind": "^1.1.2" 144 | }, 145 | "engines": { 146 | "node": ">= 0.4" 147 | } 148 | }, 149 | "node_modules/call-bound": { 150 | "version": "1.0.4", 151 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", 152 | "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", 153 | "dependencies": { 154 | "call-bind-apply-helpers": "^1.0.2", 155 | "get-intrinsic": "^1.3.0" 156 | }, 157 | "engines": { 158 | "node": ">= 0.4" 159 | }, 160 | "funding": { 161 | "url": "https://github.com/sponsors/ljharb" 162 | } 163 | }, 164 | "node_modules/combined-stream": { 165 | "version": "1.0.8", 166 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 167 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 168 | "dependencies": { 169 | "delayed-stream": "~1.0.0" 170 | }, 171 | "engines": { 172 | "node": ">= 0.8" 173 | } 174 | }, 175 | "node_modules/content-disposition": { 176 | "version": "1.0.0", 177 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", 178 | "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", 179 | "dependencies": { 180 | "safe-buffer": "5.2.1" 181 | }, 182 | "engines": { 183 | "node": ">= 0.6" 184 | } 185 | }, 186 | "node_modules/content-type": { 187 | "version": "1.0.5", 188 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 189 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 190 | "engines": { 191 | "node": ">= 0.6" 192 | } 193 | }, 194 | "node_modules/cookie": { 195 | "version": "0.7.1", 196 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", 197 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", 198 | "engines": { 199 | "node": ">= 0.6" 200 | } 201 | }, 202 | "node_modules/cookie-signature": { 203 | "version": "1.2.2", 204 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", 205 | "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", 206 | "engines": { 207 | "node": ">=6.6.0" 208 | } 209 | }, 210 | "node_modules/cors": { 211 | "version": "2.8.5", 212 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 213 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 214 | "dependencies": { 215 | "object-assign": "^4", 216 | "vary": "^1" 217 | }, 218 | "engines": { 219 | "node": ">= 0.10" 220 | } 221 | }, 222 | "node_modules/debug": { 223 | "version": "4.3.6", 224 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", 225 | "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", 226 | "dependencies": { 227 | "ms": "2.1.2" 228 | }, 229 | "engines": { 230 | "node": ">=6.0" 231 | }, 232 | "peerDependenciesMeta": { 233 | "supports-color": { 234 | "optional": true 235 | } 236 | } 237 | }, 238 | "node_modules/delayed-stream": { 239 | "version": "1.0.0", 240 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 241 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 242 | "engines": { 243 | "node": ">=0.4.0" 244 | } 245 | }, 246 | "node_modules/depd": { 247 | "version": "2.0.0", 248 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 249 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 250 | "engines": { 251 | "node": ">= 0.8" 252 | } 253 | }, 254 | "node_modules/destroy": { 255 | "version": "1.2.0", 256 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 257 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 258 | "engines": { 259 | "node": ">= 0.8", 260 | "npm": "1.2.8000 || >= 1.4.16" 261 | } 262 | }, 263 | "node_modules/dunder-proto": { 264 | "version": "1.0.1", 265 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 266 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 267 | "dependencies": { 268 | "call-bind-apply-helpers": "^1.0.1", 269 | "es-errors": "^1.3.0", 270 | "gopd": "^1.2.0" 271 | }, 272 | "engines": { 273 | "node": ">= 0.4" 274 | } 275 | }, 276 | "node_modules/ee-first": { 277 | "version": "1.1.1", 278 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 279 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 280 | }, 281 | "node_modules/encodeurl": { 282 | "version": "2.0.0", 283 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", 284 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", 285 | "engines": { 286 | "node": ">= 0.8" 287 | } 288 | }, 289 | "node_modules/es-define-property": { 290 | "version": "1.0.1", 291 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 292 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 293 | "engines": { 294 | "node": ">= 0.4" 295 | } 296 | }, 297 | "node_modules/es-errors": { 298 | "version": "1.3.0", 299 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 300 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 301 | "engines": { 302 | "node": ">= 0.4" 303 | } 304 | }, 305 | "node_modules/es-object-atoms": { 306 | "version": "1.1.1", 307 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 308 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 309 | "dependencies": { 310 | "es-errors": "^1.3.0" 311 | }, 312 | "engines": { 313 | "node": ">= 0.4" 314 | } 315 | }, 316 | "node_modules/es-set-tostringtag": { 317 | "version": "2.1.0", 318 | "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", 319 | "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", 320 | "dependencies": { 321 | "es-errors": "^1.3.0", 322 | "get-intrinsic": "^1.2.6", 323 | "has-tostringtag": "^1.0.2", 324 | "hasown": "^2.0.2" 325 | }, 326 | "engines": { 327 | "node": ">= 0.4" 328 | } 329 | }, 330 | "node_modules/escape-html": { 331 | "version": "1.0.3", 332 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 333 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 334 | }, 335 | "node_modules/etag": { 336 | "version": "1.8.1", 337 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 338 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 339 | "engines": { 340 | "node": ">= 0.6" 341 | } 342 | }, 343 | "node_modules/eventsource": { 344 | "version": "3.0.5", 345 | "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", 346 | "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", 347 | "dependencies": { 348 | "eventsource-parser": "^3.0.0" 349 | }, 350 | "engines": { 351 | "node": ">=18.0.0" 352 | } 353 | }, 354 | "node_modules/eventsource-parser": { 355 | "version": "3.0.0", 356 | "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", 357 | "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", 358 | "engines": { 359 | "node": ">=18.0.0" 360 | } 361 | }, 362 | "node_modules/express": { 363 | "version": "5.0.1", 364 | "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", 365 | "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", 366 | "dependencies": { 367 | "accepts": "^2.0.0", 368 | "body-parser": "^2.0.1", 369 | "content-disposition": "^1.0.0", 370 | "content-type": "~1.0.4", 371 | "cookie": "0.7.1", 372 | "cookie-signature": "^1.2.1", 373 | "debug": "4.3.6", 374 | "depd": "2.0.0", 375 | "encodeurl": "~2.0.0", 376 | "escape-html": "~1.0.3", 377 | "etag": "~1.8.1", 378 | "finalhandler": "^2.0.0", 379 | "fresh": "2.0.0", 380 | "http-errors": "2.0.0", 381 | "merge-descriptors": "^2.0.0", 382 | "methods": "~1.1.2", 383 | "mime-types": "^3.0.0", 384 | "on-finished": "2.4.1", 385 | "once": "1.4.0", 386 | "parseurl": "~1.3.3", 387 | "proxy-addr": "~2.0.7", 388 | "qs": "6.13.0", 389 | "range-parser": "~1.2.1", 390 | "router": "^2.0.0", 391 | "safe-buffer": "5.2.1", 392 | "send": "^1.1.0", 393 | "serve-static": "^2.1.0", 394 | "setprototypeof": "1.2.0", 395 | "statuses": "2.0.1", 396 | "type-is": "^2.0.0", 397 | "utils-merge": "1.0.1", 398 | "vary": "~1.1.2" 399 | }, 400 | "engines": { 401 | "node": ">= 18" 402 | } 403 | }, 404 | "node_modules/express-rate-limit": { 405 | "version": "7.5.0", 406 | "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", 407 | "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", 408 | "engines": { 409 | "node": ">= 16" 410 | }, 411 | "funding": { 412 | "url": "https://github.com/sponsors/express-rate-limit" 413 | }, 414 | "peerDependencies": { 415 | "express": "^4.11 || 5 || ^5.0.0-beta.1" 416 | } 417 | }, 418 | "node_modules/finalhandler": { 419 | "version": "2.1.0", 420 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", 421 | "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", 422 | "dependencies": { 423 | "debug": "^4.4.0", 424 | "encodeurl": "^2.0.0", 425 | "escape-html": "^1.0.3", 426 | "on-finished": "^2.4.1", 427 | "parseurl": "^1.3.3", 428 | "statuses": "^2.0.1" 429 | }, 430 | "engines": { 431 | "node": ">= 0.8" 432 | } 433 | }, 434 | "node_modules/finalhandler/node_modules/debug": { 435 | "version": "4.4.0", 436 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 437 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 438 | "dependencies": { 439 | "ms": "^2.1.3" 440 | }, 441 | "engines": { 442 | "node": ">=6.0" 443 | }, 444 | "peerDependenciesMeta": { 445 | "supports-color": { 446 | "optional": true 447 | } 448 | } 449 | }, 450 | "node_modules/finalhandler/node_modules/ms": { 451 | "version": "2.1.3", 452 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 453 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 454 | }, 455 | "node_modules/follow-redirects": { 456 | "version": "1.15.9", 457 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", 458 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", 459 | "funding": [ 460 | { 461 | "type": "individual", 462 | "url": "https://github.com/sponsors/RubenVerborgh" 463 | } 464 | ], 465 | "engines": { 466 | "node": ">=4.0" 467 | }, 468 | "peerDependenciesMeta": { 469 | "debug": { 470 | "optional": true 471 | } 472 | } 473 | }, 474 | "node_modules/form-data": { 475 | "version": "4.0.2", 476 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", 477 | "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", 478 | "dependencies": { 479 | "asynckit": "^0.4.0", 480 | "combined-stream": "^1.0.8", 481 | "es-set-tostringtag": "^2.1.0", 482 | "mime-types": "^2.1.12" 483 | }, 484 | "engines": { 485 | "node": ">= 6" 486 | } 487 | }, 488 | "node_modules/form-data/node_modules/mime-db": { 489 | "version": "1.52.0", 490 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 491 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 492 | "engines": { 493 | "node": ">= 0.6" 494 | } 495 | }, 496 | "node_modules/form-data/node_modules/mime-types": { 497 | "version": "2.1.35", 498 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 499 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 500 | "dependencies": { 501 | "mime-db": "1.52.0" 502 | }, 503 | "engines": { 504 | "node": ">= 0.6" 505 | } 506 | }, 507 | "node_modules/forwarded": { 508 | "version": "0.2.0", 509 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 510 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 511 | "engines": { 512 | "node": ">= 0.6" 513 | } 514 | }, 515 | "node_modules/fresh": { 516 | "version": "2.0.0", 517 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", 518 | "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", 519 | "engines": { 520 | "node": ">= 0.8" 521 | } 522 | }, 523 | "node_modules/function-bind": { 524 | "version": "1.1.2", 525 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 526 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 527 | "funding": { 528 | "url": "https://github.com/sponsors/ljharb" 529 | } 530 | }, 531 | "node_modules/get-intrinsic": { 532 | "version": "1.3.0", 533 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", 534 | "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", 535 | "dependencies": { 536 | "call-bind-apply-helpers": "^1.0.2", 537 | "es-define-property": "^1.0.1", 538 | "es-errors": "^1.3.0", 539 | "es-object-atoms": "^1.1.1", 540 | "function-bind": "^1.1.2", 541 | "get-proto": "^1.0.1", 542 | "gopd": "^1.2.0", 543 | "has-symbols": "^1.1.0", 544 | "hasown": "^2.0.2", 545 | "math-intrinsics": "^1.1.0" 546 | }, 547 | "engines": { 548 | "node": ">= 0.4" 549 | }, 550 | "funding": { 551 | "url": "https://github.com/sponsors/ljharb" 552 | } 553 | }, 554 | "node_modules/get-proto": { 555 | "version": "1.0.1", 556 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 557 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 558 | "dependencies": { 559 | "dunder-proto": "^1.0.1", 560 | "es-object-atoms": "^1.0.0" 561 | }, 562 | "engines": { 563 | "node": ">= 0.4" 564 | } 565 | }, 566 | "node_modules/gopd": { 567 | "version": "1.2.0", 568 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 569 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 570 | "engines": { 571 | "node": ">= 0.4" 572 | }, 573 | "funding": { 574 | "url": "https://github.com/sponsors/ljharb" 575 | } 576 | }, 577 | "node_modules/has-symbols": { 578 | "version": "1.1.0", 579 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 580 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 581 | "engines": { 582 | "node": ">= 0.4" 583 | }, 584 | "funding": { 585 | "url": "https://github.com/sponsors/ljharb" 586 | } 587 | }, 588 | "node_modules/has-tostringtag": { 589 | "version": "1.0.2", 590 | "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", 591 | "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", 592 | "dependencies": { 593 | "has-symbols": "^1.0.3" 594 | }, 595 | "engines": { 596 | "node": ">= 0.4" 597 | }, 598 | "funding": { 599 | "url": "https://github.com/sponsors/ljharb" 600 | } 601 | }, 602 | "node_modules/hasown": { 603 | "version": "2.0.2", 604 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 605 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 606 | "dependencies": { 607 | "function-bind": "^1.1.2" 608 | }, 609 | "engines": { 610 | "node": ">= 0.4" 611 | } 612 | }, 613 | "node_modules/http-errors": { 614 | "version": "2.0.0", 615 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 616 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 617 | "dependencies": { 618 | "depd": "2.0.0", 619 | "inherits": "2.0.4", 620 | "setprototypeof": "1.2.0", 621 | "statuses": "2.0.1", 622 | "toidentifier": "1.0.1" 623 | }, 624 | "engines": { 625 | "node": ">= 0.8" 626 | } 627 | }, 628 | "node_modules/iconv-lite": { 629 | "version": "0.5.2", 630 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", 631 | "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", 632 | "dependencies": { 633 | "safer-buffer": ">= 2.1.2 < 3" 634 | }, 635 | "engines": { 636 | "node": ">=0.10.0" 637 | } 638 | }, 639 | "node_modules/inherits": { 640 | "version": "2.0.4", 641 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 642 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 643 | }, 644 | "node_modules/ipaddr.js": { 645 | "version": "1.9.1", 646 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 647 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 648 | "engines": { 649 | "node": ">= 0.10" 650 | } 651 | }, 652 | "node_modules/is-promise": { 653 | "version": "4.0.0", 654 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", 655 | "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==" 656 | }, 657 | "node_modules/math-intrinsics": { 658 | "version": "1.1.0", 659 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 660 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 661 | "engines": { 662 | "node": ">= 0.4" 663 | } 664 | }, 665 | "node_modules/media-typer": { 666 | "version": "1.1.0", 667 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", 668 | "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", 669 | "engines": { 670 | "node": ">= 0.8" 671 | } 672 | }, 673 | "node_modules/merge-descriptors": { 674 | "version": "2.0.0", 675 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", 676 | "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", 677 | "engines": { 678 | "node": ">=18" 679 | }, 680 | "funding": { 681 | "url": "https://github.com/sponsors/sindresorhus" 682 | } 683 | }, 684 | "node_modules/methods": { 685 | "version": "1.1.2", 686 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 687 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 688 | "engines": { 689 | "node": ">= 0.6" 690 | } 691 | }, 692 | "node_modules/mime-db": { 693 | "version": "1.53.0", 694 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", 695 | "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", 696 | "engines": { 697 | "node": ">= 0.6" 698 | } 699 | }, 700 | "node_modules/mime-types": { 701 | "version": "3.0.0", 702 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", 703 | "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", 704 | "dependencies": { 705 | "mime-db": "^1.53.0" 706 | }, 707 | "engines": { 708 | "node": ">= 0.6" 709 | } 710 | }, 711 | "node_modules/ms": { 712 | "version": "2.1.2", 713 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 714 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 715 | }, 716 | "node_modules/negotiator": { 717 | "version": "1.0.0", 718 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", 719 | "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", 720 | "engines": { 721 | "node": ">= 0.6" 722 | } 723 | }, 724 | "node_modules/object-assign": { 725 | "version": "4.1.1", 726 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 727 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 728 | "engines": { 729 | "node": ">=0.10.0" 730 | } 731 | }, 732 | "node_modules/object-inspect": { 733 | "version": "1.13.4", 734 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", 735 | "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", 736 | "engines": { 737 | "node": ">= 0.4" 738 | }, 739 | "funding": { 740 | "url": "https://github.com/sponsors/ljharb" 741 | } 742 | }, 743 | "node_modules/on-finished": { 744 | "version": "2.4.1", 745 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 746 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 747 | "dependencies": { 748 | "ee-first": "1.1.1" 749 | }, 750 | "engines": { 751 | "node": ">= 0.8" 752 | } 753 | }, 754 | "node_modules/once": { 755 | "version": "1.4.0", 756 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 757 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 758 | "dependencies": { 759 | "wrappy": "1" 760 | } 761 | }, 762 | "node_modules/parseurl": { 763 | "version": "1.3.3", 764 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 765 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 766 | "engines": { 767 | "node": ">= 0.8" 768 | } 769 | }, 770 | "node_modules/path-to-regexp": { 771 | "version": "8.2.0", 772 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", 773 | "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", 774 | "engines": { 775 | "node": ">=16" 776 | } 777 | }, 778 | "node_modules/pkce-challenge": { 779 | "version": "4.1.0", 780 | "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", 781 | "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", 782 | "engines": { 783 | "node": ">=16.20.0" 784 | } 785 | }, 786 | "node_modules/proxy-addr": { 787 | "version": "2.0.7", 788 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 789 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 790 | "dependencies": { 791 | "forwarded": "0.2.0", 792 | "ipaddr.js": "1.9.1" 793 | }, 794 | "engines": { 795 | "node": ">= 0.10" 796 | } 797 | }, 798 | "node_modules/proxy-from-env": { 799 | "version": "1.1.0", 800 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 801 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" 802 | }, 803 | "node_modules/qs": { 804 | "version": "6.13.0", 805 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", 806 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", 807 | "dependencies": { 808 | "side-channel": "^1.0.6" 809 | }, 810 | "engines": { 811 | "node": ">=0.6" 812 | }, 813 | "funding": { 814 | "url": "https://github.com/sponsors/ljharb" 815 | } 816 | }, 817 | "node_modules/range-parser": { 818 | "version": "1.2.1", 819 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 820 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 821 | "engines": { 822 | "node": ">= 0.6" 823 | } 824 | }, 825 | "node_modules/raw-body": { 826 | "version": "3.0.0", 827 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", 828 | "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", 829 | "dependencies": { 830 | "bytes": "3.1.2", 831 | "http-errors": "2.0.0", 832 | "iconv-lite": "0.6.3", 833 | "unpipe": "1.0.0" 834 | }, 835 | "engines": { 836 | "node": ">= 0.8" 837 | } 838 | }, 839 | "node_modules/raw-body/node_modules/iconv-lite": { 840 | "version": "0.6.3", 841 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 842 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 843 | "dependencies": { 844 | "safer-buffer": ">= 2.1.2 < 3.0.0" 845 | }, 846 | "engines": { 847 | "node": ">=0.10.0" 848 | } 849 | }, 850 | "node_modules/router": { 851 | "version": "2.1.0", 852 | "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", 853 | "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", 854 | "dependencies": { 855 | "is-promise": "^4.0.0", 856 | "parseurl": "^1.3.3", 857 | "path-to-regexp": "^8.0.0" 858 | }, 859 | "engines": { 860 | "node": ">= 18" 861 | } 862 | }, 863 | "node_modules/safe-buffer": { 864 | "version": "5.2.1", 865 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 866 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 867 | "funding": [ 868 | { 869 | "type": "github", 870 | "url": "https://github.com/sponsors/feross" 871 | }, 872 | { 873 | "type": "patreon", 874 | "url": "https://www.patreon.com/feross" 875 | }, 876 | { 877 | "type": "consulting", 878 | "url": "https://feross.org/support" 879 | } 880 | ] 881 | }, 882 | "node_modules/safer-buffer": { 883 | "version": "2.1.2", 884 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 885 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 886 | }, 887 | "node_modules/send": { 888 | "version": "1.1.0", 889 | "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", 890 | "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", 891 | "dependencies": { 892 | "debug": "^4.3.5", 893 | "destroy": "^1.2.0", 894 | "encodeurl": "^2.0.0", 895 | "escape-html": "^1.0.3", 896 | "etag": "^1.8.1", 897 | "fresh": "^0.5.2", 898 | "http-errors": "^2.0.0", 899 | "mime-types": "^2.1.35", 900 | "ms": "^2.1.3", 901 | "on-finished": "^2.4.1", 902 | "range-parser": "^1.2.1", 903 | "statuses": "^2.0.1" 904 | }, 905 | "engines": { 906 | "node": ">= 18" 907 | } 908 | }, 909 | "node_modules/send/node_modules/fresh": { 910 | "version": "0.5.2", 911 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 912 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 913 | "engines": { 914 | "node": ">= 0.6" 915 | } 916 | }, 917 | "node_modules/send/node_modules/mime-db": { 918 | "version": "1.52.0", 919 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 920 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 921 | "engines": { 922 | "node": ">= 0.6" 923 | } 924 | }, 925 | "node_modules/send/node_modules/mime-types": { 926 | "version": "2.1.35", 927 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 928 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 929 | "dependencies": { 930 | "mime-db": "1.52.0" 931 | }, 932 | "engines": { 933 | "node": ">= 0.6" 934 | } 935 | }, 936 | "node_modules/send/node_modules/ms": { 937 | "version": "2.1.3", 938 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 939 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 940 | }, 941 | "node_modules/serve-static": { 942 | "version": "2.1.0", 943 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", 944 | "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", 945 | "dependencies": { 946 | "encodeurl": "^2.0.0", 947 | "escape-html": "^1.0.3", 948 | "parseurl": "^1.3.3", 949 | "send": "^1.0.0" 950 | }, 951 | "engines": { 952 | "node": ">= 18" 953 | } 954 | }, 955 | "node_modules/setprototypeof": { 956 | "version": "1.2.0", 957 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 958 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 959 | }, 960 | "node_modules/side-channel": { 961 | "version": "1.1.0", 962 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 963 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 964 | "dependencies": { 965 | "es-errors": "^1.3.0", 966 | "object-inspect": "^1.13.3", 967 | "side-channel-list": "^1.0.0", 968 | "side-channel-map": "^1.0.1", 969 | "side-channel-weakmap": "^1.0.2" 970 | }, 971 | "engines": { 972 | "node": ">= 0.4" 973 | }, 974 | "funding": { 975 | "url": "https://github.com/sponsors/ljharb" 976 | } 977 | }, 978 | "node_modules/side-channel-list": { 979 | "version": "1.0.0", 980 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 981 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 982 | "dependencies": { 983 | "es-errors": "^1.3.0", 984 | "object-inspect": "^1.13.3" 985 | }, 986 | "engines": { 987 | "node": ">= 0.4" 988 | }, 989 | "funding": { 990 | "url": "https://github.com/sponsors/ljharb" 991 | } 992 | }, 993 | "node_modules/side-channel-map": { 994 | "version": "1.0.1", 995 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 996 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 997 | "dependencies": { 998 | "call-bound": "^1.0.2", 999 | "es-errors": "^1.3.0", 1000 | "get-intrinsic": "^1.2.5", 1001 | "object-inspect": "^1.13.3" 1002 | }, 1003 | "engines": { 1004 | "node": ">= 0.4" 1005 | }, 1006 | "funding": { 1007 | "url": "https://github.com/sponsors/ljharb" 1008 | } 1009 | }, 1010 | "node_modules/side-channel-weakmap": { 1011 | "version": "1.0.2", 1012 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 1013 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 1014 | "dependencies": { 1015 | "call-bound": "^1.0.2", 1016 | "es-errors": "^1.3.0", 1017 | "get-intrinsic": "^1.2.5", 1018 | "object-inspect": "^1.13.3", 1019 | "side-channel-map": "^1.0.1" 1020 | }, 1021 | "engines": { 1022 | "node": ">= 0.4" 1023 | }, 1024 | "funding": { 1025 | "url": "https://github.com/sponsors/ljharb" 1026 | } 1027 | }, 1028 | "node_modules/statuses": { 1029 | "version": "2.0.1", 1030 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1031 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1032 | "engines": { 1033 | "node": ">= 0.8" 1034 | } 1035 | }, 1036 | "node_modules/toidentifier": { 1037 | "version": "1.0.1", 1038 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1039 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1040 | "engines": { 1041 | "node": ">=0.6" 1042 | } 1043 | }, 1044 | "node_modules/type-is": { 1045 | "version": "2.0.0", 1046 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", 1047 | "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", 1048 | "dependencies": { 1049 | "content-type": "^1.0.5", 1050 | "media-typer": "^1.1.0", 1051 | "mime-types": "^3.0.0" 1052 | }, 1053 | "engines": { 1054 | "node": ">= 0.6" 1055 | } 1056 | }, 1057 | "node_modules/typescript": { 1058 | "version": "5.8.2", 1059 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", 1060 | "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", 1061 | "dev": true, 1062 | "bin": { 1063 | "tsc": "bin/tsc", 1064 | "tsserver": "bin/tsserver" 1065 | }, 1066 | "engines": { 1067 | "node": ">=14.17" 1068 | } 1069 | }, 1070 | "node_modules/undici-types": { 1071 | "version": "6.20.0", 1072 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 1073 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 1074 | "dev": true 1075 | }, 1076 | "node_modules/unpipe": { 1077 | "version": "1.0.0", 1078 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1079 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1080 | "engines": { 1081 | "node": ">= 0.8" 1082 | } 1083 | }, 1084 | "node_modules/utils-merge": { 1085 | "version": "1.0.1", 1086 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1087 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1088 | "engines": { 1089 | "node": ">= 0.4.0" 1090 | } 1091 | }, 1092 | "node_modules/vary": { 1093 | "version": "1.1.2", 1094 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1095 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1096 | "engines": { 1097 | "node": ">= 0.8" 1098 | } 1099 | }, 1100 | "node_modules/wrappy": { 1101 | "version": "1.0.2", 1102 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1103 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 1104 | }, 1105 | "node_modules/zod": { 1106 | "version": "3.24.2", 1107 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", 1108 | "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", 1109 | "funding": { 1110 | "url": "https://github.com/sponsors/colinhacks" 1111 | } 1112 | }, 1113 | "node_modules/zod-to-json-schema": { 1114 | "version": "3.24.3", 1115 | "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz", 1116 | "integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==", 1117 | "peerDependencies": { 1118 | "zod": "^3.24.1" 1119 | } 1120 | } 1121 | } 1122 | } 1123 | --------------------------------------------------------------------------------