---
name: cn-workday-package-advisories
description: "Pay-per-call x402 APIs (Base USDC). 1) China workday calendar: is a date a working day in mainland China, with official public holidays and weekend makeup workdays from State Council (国务院) notices, each answer linking the gov.cn source; count working days between two dates. 中国法定节假日、调休、补班、工作日判断、工作日天数计算，附国务院通知原文链接。 2) Package vulnerability advisories: is this npm, PyPI, Go, crates.io or Maven package version safe to install (CVE, GHSA, fixed versions, OSV.dev); npm/PyPI 等包安全公告、依赖漏洞检查。Use when a task needs China business days or holiday schedules, or before adding or upgrading a dependency."
---

# China Workday Calendar and Package Vulnerability Advisories

Base URL: https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com

## Setup

    npx agentcash add https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com
    npx agentcash try https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com
    npx agentcash onboard

`add` registers this origin with AgentCash and installs a small skill that runs `npx agentcash discover`; it needs no wallet. `try` and `onboard` create an AgentCash wallet on first run. You do not need AgentCash: any x402 v2 client works (see Payment).

## MCP server (free daily quota)

    claude mcp add --transport http cn-calendar https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp

Remote MCP server (Streamable HTTP) at https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp with tools cn_workday_check and package_advisories. 20 free calls per IP address per day, no sign-up. After that each tool call returns an error naming the x402 URL and price of the same lookup, with a payment link {url, status: 402, challenge} in structuredContent. https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/paid/mcp is the same server without the free calls, for x402 MCP clients and paid-MCP directories: every tool call returns that payment link; pay the URL over x402. Quota counters store no raw IP address, only a keyed hash (HMAC-SHA256 of the day and IP), deleted by TTL after 2 days; request logs keep only the same hash, which changes every UTC day; API Gateway access logs keep the source IP for 30 days.

## Endpoints

### GET /cn/workday?date=YYYY-MM-DD ($0.003)

Is a given date a working day in mainland China? Applies the State Council (国务院) holiday notice: public holiday periods, weekend makeup workdays (调休补班) and ordinary weekends. Returns holiday name and source link. Covers 2020-01-01 to 2027-12-31.

Example: `GET https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/cn/workday?date=2026-02-14` returns

    {"date":"2026-02-14","weekday":6,"is_workday":true,"is_public_holiday":false,"is_makeup_workday":true,"holiday_name":null,"kind":"makeup_workday","source_url":"https://www.gov.cn/zhengce/zhengceku/202511/content_7047091.htm","data_updated":"2026-11-05"}

### GET /cn/business-days?from=YYYY-MM-DD&to=YYYY-MM-DD ($0.005)

Count and list mainland China working days between two dates (inclusive, up to 366 days, may cross years), honouring official holidays and weekend makeup workdays (调休补班) from State Council notices.

Example: `GET https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/cn/business-days?from=2026-09-28&to=2026-10-11` returns `workday_count` and the list `workdays`.

### GET /deps/advisories?ecosystem=&name=&version= ($0.005)

Is this package version safe to install? Call before adding or upgrading an npm, PyPI, Go, crates.io or Maven dependency. Returns vulnerable true/false and the known advisories (CVE, GHSA, PYSEC, GO, RUSTSEC) for that exact version: CVSS, affected ranges, fixed versions and links. Package names are case-sensitive (npm: use the published lowercase name). Data from OSV.dev, fetched live (cached up to 1 hour). Ecosystems: npm, PyPI, Go, crates.io, Maven.

Example: `GET https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/deps/advisories?ecosystem=npm&name=lodash&version=4.17.20` returns `vulnerable` and `advisories`.

### POST /deps/advisories/batch ($0.02)

Are these package versions safe to install? Checks up to 50 npm, PyPI, Go, crates.io or Maven package versions in one call, e.g. a whole lockfile: $0.02 per call, $0.0004 per package. Same fields as GET /deps/advisories for each package, in request order.

Example: `POST https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/deps/advisories/batch` with JSON body `{"packages":[{"ecosystem":"npm","name":"lodash","version":"4.17.20"}]}` (up to 50 packages).

Full input and output schemas: https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/openapi.json

## Payment

Any x402 v2 client pays USDC on Base (network eip155:8453, scheme "exact"): agentcash, @x402/fetch (2.x), or Binance `baw x402-payment`.
Call the endpoint without payment to get a 402 with the price in the PAYMENT-REQUIRED header and the JSON body, sign one of its accepts, and retry with a PAYMENT-SIGNATURE header.
Invalid input gets a free 400/404 before any payment is asked for. A 502 (upstream or facilitator failure) is not charged.

## Sources

China calendar data follows the State Council General Office (国务院办公厅) holiday notices on gov.cn, data updated 2026-11-05:

- 2020: https://www.gov.cn/zhengce/content/2020-01/27/content_5472352.htm
- 2021: https://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm
- 2022: https://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm
- 2023: https://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm
- 2024: https://www.gov.cn/zhengce/content/202310/content_6911527.htm
- 2025: https://www.gov.cn/zhengce/content/202411/content_6986382.htm
- 2026: https://www.gov.cn/zhengce/zhengceku/202511/content_7047091.htm
- 2027: https://www.gov.cn/zhengce/zhengceku/202611/content_7085102.htm

Advisory data from OSV.dev (https://osv.dev, Apache-2.0), which aggregates source databases under their own licenses: GitHub Advisory Database, PyPI Advisory Database, Go Vulnerability Database (CC-BY 4.0), Rust Advisory Database (CC0 1.0), OpenSSF Malicious Packages (Apache-2.0). Records are excerpted and modified (details omitted, ranges restructured). Each advisory carries its source license; summaries of records from other sources are omitted.

Source code and data: https://github.com/walkley/x402-content-site
