mclocks-datetime-util 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mclocks-datetime-util",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "MCP server for datetime and timezone conversion, powered by mclocks config",
5
5
  "type": "module",
6
6
  "bin": {
package/server.js CHANGED
@@ -150,10 +150,10 @@ server.tool(
150
150
  "The source value to convert. Can be a datetime string (e.g. '2024-01-15T10:30:00Z', '2024-01-15 10:30:00 UTC') or an epoch number (e.g. '1705312200')."
151
151
  ),
152
152
  timezones: z.array(z.string()).optional().describe(
153
- "Target timezones to convert to (e.g. ['Asia/Tokyo', 'America/New_York']). If omitted, uses timezones from mclocks config or built-in defaults."
153
+ "Target timezones in IANA tz database format. If omitted, uses timezones from mclocks config or built-in defaults. You should usually omit this parameter to use the user's mclocks configured timezones."
154
154
  ),
155
155
  source_timezone: z.string().optional().describe(
156
- "Timezone of the source datetime for interpretation (e.g. 'Asia/Tokyo'). Only used when source is a datetime string without timezone info. If omitted, uses convtz from mclocks config if available."
156
+ "Timezone of the source datetime in IANA tz database format for interpretation. Only used when source is a datetime string without timezone info. If omitted, uses convtz from mclocks config if available."
157
157
  ),
158
158
  epoch_unit: z.enum(["seconds", "milliseconds", "microseconds", "nanoseconds"]).optional().describe(
159
159
  "Unit of the epoch timestamp. Defaults to 'seconds'. Only used when source is a numeric value."
@@ -235,7 +235,7 @@ server.tool(
235
235
  "Get the current time in specified timezones.",
236
236
  {
237
237
  timezones: z.array(z.string()).optional().describe(
238
- "Timezones to show current time in (e.g. ['Asia/Tokyo', 'UTC']). If omitted, uses timezones from mclocks config or built-in defaults."
238
+ "Timezones in IANA tz database format. If omitted, uses timezones from mclocks config or built-in defaults. You should usually omit this parameter to use the user's mclocks configured timezones."
239
239
  ),
240
240
  },
241
241
  async ({ timezones }) => {
@@ -273,7 +273,7 @@ server.tool(
273
273
  "Day of the week (e.g. 'Monday', 'friday', 'mon', 'thu'). Case-insensitive. English only."
274
274
  ),
275
275
  timezone: z.string().optional().describe(
276
- "Timezone to determine 'today' (e.g. 'Asia/Tokyo'). If omitted, uses convtz from mclocks config if available, otherwise UTC."
276
+ "Timezone in IANA tz database format to determine 'today'. If omitted, uses convtz from mclocks config if available, otherwise UTC."
277
277
  ),
278
278
  },
279
279
  async ({ weekday, timezone }) => {
@@ -366,7 +366,7 @@ server.tool(
366
366
  "Target day of month (1-31). Defaults to 1 if omitted."
367
367
  ),
368
368
  timezone: z.string().optional().describe(
369
- "Timezone to determine 'today' (e.g. 'Asia/Tokyo'). If omitted, uses convtz from mclocks config if available, otherwise UTC."
369
+ "Timezone in IANA tz database format to determine 'today'. If omitted, uses convtz from mclocks config if available, otherwise UTC."
370
370
  ),
371
371
  },
372
372
  async ({ year, month, day, timezone }) => {