{"at":"2026-11-23T04:30:12.886Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:30:13.323Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:30:13.424Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T04:30:13.840Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"instructions":"Date context for China and 11 other regions: lunar calendar, the 24 solar terms, holidays and workdays.\n\nEvery answer this server gives carries its provenance, and you must pass that on to the user — it is\nthe whole point of this server. Never present a `predicted` or `baseline` answer as if it were settled fact.\n\n  computed  — lunar dates, 干支, solar terms. Derived from a table verified day-by-day 1900–2100\n              against two independent reference implementations. Say it plainly; no hedging needed.\n  official  — from a government notice. Cite it as official.\n  baseline  — from a holiday library, NOT yet checked against the government gazette.\n              Say it is unverified.\n  predicted — no notice has been published for that year; these are the statutory days derived from\n              the current rules. Say so, and say that 调休 (the shifted work/rest days) is NOT known.\n\nRules of thumb:\n- Say the source in the answer itself, not only if asked. One clause is enough\n  (\"据国务院公告\", \"尚未公布，按法定假日推算\").\n- When a result names the document it came from (e.g. 国务院办公厅关于2026年部分节假日安排的通知),\n  cite that document, not just the word \"official\" — a tier is not something a user can go and check.\n- Never blend two tiers into one sentence. A future year's festival DATE is computed and certain,\n  while whether it is a day off that year is predicted and unknown. Say which is which, or say only\n  the part you have.\n- A year with no data comes back as available:false. Report that as \"no data\", never fill the gap\n  from your own memory — the user came here precisely because your memory is not citable.\n- 调休 (make-up workdays) only exists in official years. For a predicted year, do not guess it.\n- date_context is the richest single call; prefer it when the user asks \"what is this day\".","protocolVersion":"2025-11-25","serverInfo":{"name":"icyn-date","version":"0.1.0"}}}}
{"at":"2026-11-23T04:30:13.840Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:30:13.840Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:30:13.844Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Everything known about one date in one region: weekday/ISO week, workday status with source & confidence, holiday, lunar date & 干支, current/next solar term.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"date":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"lang":{"default":"zh","enum":["zh","en"],"type":"string"},"region":{"default":"CN","description":"Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT","type":"string"}},"required":["date"],"type":"object"},"name":"date_context"},{"description":"Is this date a working day in the region? Answers carry source (official/baseline/predicted) and confidence.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"date":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"region":{"default":"CN","description":"Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT","type":"string"}},"required":["date"],"type":"object"},"name":"is_workday"},{"description":"List public holidays of a region for a year, or within a date range.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"from":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"region":{"default":"CN","description":"Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT","type":"string"},"to":{"$ref":"#/properties/from","description":"ISO date YYYY-MM-DD"},"year":{"type":"integer"}},"type":"object"},"name":"holidays"},{"description":"Workday arithmetic: list or count workdays in a range, or move N workdays from a date (negative = backwards).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"add":{"description":"Move this many workdays from `from` instead of listing a range","type":"integer"},"from":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"region":{"default":"CN","description":"Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT","type":"string"},"to":{"$ref":"#/properties/from","description":"ISO date YYYY-MM-DD"}},"required":["from"],"type":"object"},"name":"workdays"},{"description":"Next stretch of at least N consecutive non-working days from a date (holiday + weekend runs).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"from":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"minDays":{"default":3,"minimum":2,"type":"integer"},"region":{"default":"CN","description":"Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT","type":"string"}},"required":["from"],"type":"object"},"name":"next_long_weekend"},{"description":"Is this date the last working day before a public holiday?","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"date":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"region":{"default":"CN","description":"Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT","type":"string"}},"required":["date"],"type":"object"},"name":"holiday_eve"},{"description":"Convert a solar date to the Chinese lunar calendar (year/month/day, leap month, 干支, zodiac), or a lunar date to solar.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"date":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"lunar":{"additionalProperties":false,"properties":{"day":{"maximum":30,"minimum":1,"type":"integer"},"leap":{"default":false,"type":"boolean"},"month":{"maximum":12,"minimum":1,"type":"integer"},"year":{"type":"integer"}},"required":["year","month","day"],"type":"object"}},"type":"object"},"name":"lunar"},{"description":"Next solar date on which a lunar month/day occurs (e.g. a lunar birthday or 中秋 8/15).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"day":{"maximum":30,"minimum":1,"type":"integer"},"from":{"description":"ISO date YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"month":{"maximum":12,"minimum":1,"type":"integer"}},"required":["month","day","from"],"type":"object"},"name":"next_lunar_date"},{"description":"The 24 solar terms (节气) of a year with exact instants (UTC).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"year":{"maximum":2100,"minimum":1900,"type":"integer"}},"required":["year"],"type":"object"},"name":"solar_terms"},{"description":"Which regions take a canonical festival off in a given year (e.g. lunar-new-year, mid-autumn, christmas), and on which dates.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"festival":{"description":"One of: all-saints, armed-forces-day, armistice, ascension, assumption, autumnal-equinox, bank-holiday, boxing-day, childrens-day, christmas, columbus-day, coming-of-age, constitution-day, culture-day, deepavali, double-ninth, dragon-boat, easter-monday, eid-al-adha, eid-al-fitr, election-day, emperors-birthday, good-friday, greenery-day, hangeul-day, hung-kings, independence-movement, labour-day, lunar-new-year, lunar-new-year-eve, marine-day, memorial-day, mid-autumn, mlk-day, mountain-day, national-day, national-holiday, new-year, presidents-day, qingming, respect-aged-day, showa-day, sports-day, substitute, temporary-holiday, thanksgiving, ve-day, vernal-equinox, vesak, whit-monday","type":"string"},"year":{"type":"integer"}},"required":["festival","year"],"type":"object"},"name":"regions_observing"},{"description":"Supported regions, subdivisions, data coverage and data version.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"regions"}]}}}
