Prototipo · Versión preliminar: todos los servidores del registro oficial, sincronizados cada 30 minutos. Inicia sesión con Google para escribir reseñas.Prototipo · se actualiza cada 30 min
PopNx MCPServidores MCP para quienes usan IA · en palabras sencillas Iniciar sesión

China Workday Calendar

de walkleyversión 1.0.0i★ 0iSe ejecuta en la nubeSitio oficial ↗

Cómo instalar

Qué hace

China workdays with official holidays and makeup days, plus package CVE checks. Free daily quota.

Texto original del autor

  • Conexión Se ejecuta en la nube
  • Cuenta o clave No necesita clave
  • Categoría Documentos, hojas de cálculo y oficina

Úsalo junto con

Skills que enseñan a la IA este tipo de trabajo; funcionan junto a este

MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

de opendatalab★ 84.3341 skills

Skill · Guía de trabajoSin licencia indicada

watermarks-remover

A privacy-first app that strips AI watermarks from content you own.

de guillaumemeyer★ 28.6871 skills

Skill · Guía de trabajo

obsidian-skills

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

de kepano★ 53.756 (todo el repo)5 skills

Skill · Guía de trabajo

Por qué está en este puesto

Las listas se ordenan por una puntuación de uso (sobre 100) con estas partes

Popularidad0/80Estrellas de GitHub o descargas semanales: la mayor cuenta 60, la menor 20
Actualidad12/12Puntuación completa con una versión o cambio de código en 30 días
Sigue respondiendo8/8El endpoint en la nube respondió en la última revisión
Puntuación de uso20/100

Calidad: Pasó 4/5 revisiones básicas (se muestra, no ordena) · Impulso: Sin datos aún (Solo se usa en la pestaña En auge)

Instalación

Elige la app de IA que usas y copia la configuración.

Que tu IA lo instale con una frase

Instala China Workday Calendar. Sigue https://mcp.popnx.com/i/walkley-cn-calendar.md, enséñame los comandos y espera mi OK antes de ejecutarlos.

Pégala en una IA que trabaje en tu equipo (como Claude Code o Cursor). Lee nuestros pasos, te muestra los comandos y espera tu OK. Sin clave ni registro. · Ver el texto completo que lee tu IA

Pasó 4/5 revisiones · Lo que preguntas pasa por el servidor del autor (mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com) · ✓ Comandos revisados el 24 nov 2026

Primero: ¿qué IA usas?

Elige tu app y los pasos aparecen abajo.

Funciona con Claude · unos 2 min

Sin clave y sin instalar nada · Configúralo una vez en claude.ai o en la app de escritorio y úsalo en el chat · las cuentas gratis pueden añadir 1 · en Team/Enterprise lo añade un Owner

  1. Pulsa este botón: Claude abre la ventana para añadir el conector ya rellenada

    Añadir China Workday Calendar a Claude ↗

    El nombre y la URL ya están puestos. Revísalos y pulsa Add · si no has iniciado sesión, Claude te lo pedirá primero

    Pulsa Continue en la pantalla de inicio de sesión que detectó Claude · en Authentication elige lo que indique el autor (Sign in now, Sign in when needed o No sign in) y pulsa Add

    ¿El botón no funciona? Rellénalo tú

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4

    Pulsa “Add” → “Custom” → “Web” y completa estos 2 campos

    Copia cada valor al campo con el mismo nombre en Claude y pulsa Continue

    Name · NombreChina Workday Calendar
    Remote MCP server URL · Direcciónhttps://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp
  2. Actívalo en un chat

    +ConnectorsChina Workday Calendar

  3. Pruébalo

    Usa China Workday Calendar y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si Claude dice que está usando China Workday Calendar o muestra una herramienta de China Workday Calendar en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de Anthropic el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Funciona con ChatGPT según tu plan

MCP completo: ChatGPT Business, Enterprise o Edu en la web · Pro: conecta con permisos de lectura/obtención, así que las herramientas que cambian datos pueden no funcionar · Plus: no confirmado en la documentación; si ves una opción para añadir MCP propio en la página de plugins puedes probar · solo web

  1. Abre la página para añadir MCP en ChatGPT web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Escribe el nombre y la dirección

    Pon un nombre, pega la dirección en Connection, marca el aviso de riesgo y pulsa Create as a plugin

    Name · NombreChina Workday Calendar
    Connection · Direcciónhttps://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp
  3. Elige China Workday Calendar en un chat

    Abre un chat nuevo y elige China Workday Calendar en tus plugins antes de escribir

  4. Pruébalo

    Usa China Workday Calendar y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si ChatGPT dice que está usando China Workday Calendar o muestra una herramienta de China Workday Calendar en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de OpenAI el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Funciona con Claude Code · unos 2 min

Sin clave y sin instalar nada

  1. Abre la Terminal

    Mac: pulsa Command+Espacio y escribe Terminal · Windows: abre PowerShell

  2. Pega este comando y pulsa Enter

    claude mcp add --transport http --scope user cn-calendar https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp
  3. Escribe /mcp en Claude Code

    Deberías ver China Workday Calendar en la lista como conectado

  4. Pruébalo

    Usa China Workday Calendar y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si Claude Code dice que está usando China Workday Calendar o muestra una herramienta de China Workday Calendar en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de Anthropic el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Funciona con Cursor · unos 2 min

Sin clave y sin instalar nada

  1. Pulsa este botón para abrir Cursor

    Abrir en Cursor

    Cursor te pedirá confirmar; pulsa Install

  2. Abre el chat de IA de Cursor en modo Agent

  3. Pruébalo

    Usa China Workday Calendar y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si Cursor dice que está usando China Workday Calendar o muestra una herramienta de China Workday Calendar en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de Cursor el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Funciona con VS Code · unos 2 min

Sin clave y sin instalar nada

  1. Pulsa este botón para abrir VS Code

    Abrir en VS Code

    VS Code te pedirá confirmar; pulsa Install

  2. Abre el chat de IA de VS Code en modo Agent

  3. Pruébalo

    Usa China Workday Calendar y dime qué puedes hacer por mí; luego muéstrame una cosa

    ✓ Si VS Code dice que está usando China Workday Calendar o muestra una herramienta de China Workday Calendar en la respuesta, ya está conectado

Nombres de menú comprobados con la ayuda de VS Code el 11 nov 2026 · tu pantalla puede variar un poco según la versión

Otras apps que usan MCP, como Windsurf, Zed o Gemini CLI, añaden servidores de forma distinta. Míralo en la lista de apps

Ver todas las apps que usan MCP →

Dirección para apps que se conectan por la web

Direcciónhttps://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp

La configuración JSON está en “Para desarrolladores”, abajo

¿Te atascaste? Pregunta a quien usa China Workday Calendar💬 Conversación →
Para desarrolladores: comandos de Terminal y configuración JSON

Por la web

Claude Code

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

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "cn-calendar": {
      "url": "https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "cn-calendar": {
      "type": "http",
      "url": "https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp"
    }
  }
}

Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.

De un vistazo

Nombre en el registro
io.github.walkley/cn-calendar
Descargas por semanai
No está en npm/PyPI
Licenciai
Sin licencia indicada
Conexión
Se ejecuta en la nube
Número de herramientas
2 herramientas · ligero Al conectar este MCP, el nombre y la descripción de cada herramienta se envían a la IA (algunas apps cargan solo las que se usan). Más herramientas ocupan más de lo que la IA puede retener en cada chat y facilitan que elija la equivocada. Contado a partir de la lista de herramientas que el servidor devolvió a nuestro verificador el 24 nov 2026
Transporte
streamable-http
Última versióni
1.0.0
Publicado en el registroi
24 nov 2026
Último cambio de códigoi
25 nov 2026
Última revisión
24 nov 2026
Creador
walkley
Estado en el registro
Activo

Qué apps pueden usarlo

Según cómo se conecta este servidor y la documentación de cada app, comprobado el 10 nov 2026.

Se conectan por internet en

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

Todas las apps, con ventajas y desventajas →

Qué puede hacer

Nombres y descripciones de las herramientas tal como los informó el servidor el 24 nov 2026. Los escribió el creador, no nosotros; los mostramos como texto sin formato.

  • cn_workday_check

    Is a date a working day in mainland China? Applies State Council (国务院) holiday notices: public holidays, weekend makeup workdays (调休补班) and ordinary weekends; returns the holiday name and the gov.cn source link. Pass date for one day, or from and to (inclusive, up to 366 days) to

  • package_advisories

    Is this package version safe to install? Known advisories (CVE, GHSA, PYSEC, GO, RUSTSEC) for one exact npm, PyPI, Go, crates.io, Maven package version from OSV.dev: CVSS, affected ranges, fixed versions and links. Free for 20 calls per day (shared with cn_workday_check), then pa

Revisiones básicasi

Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 26 nov 2026

  • ✓ Superada

    El creador coincide con el repo

    El nombre en el registro se verificó con la cuenta de GitHub walkley, dueña del repo

  • ✓ Superada

    Sigue en mantenimiento

    Último cambio de código: ayer

  • ✕ No superada

    Tiene licencia

    No se encontró ningún archivo de licencia en el repo

  • ✓ Superada

    El endpoint responde

    Respondió en 391 ms (HTTP 200)

  • – No aplica

    Inicio de sesión con OAuth

    No hace falta iniciar sesión

  • ✓ Superada

    Sin instrucciones ocultas en las descripciones de herramientas

    Leímos 2 descripciones de herramientas y no encontramos instrucciones ocultas para la IA

Qué revisamos → · JSON

Creadores: pedir otra revisión o avisar de un dato erróneo
Para autores: añade una insignia a tu README

Si lo creaste tú, pega este código en tu README. La insignia enlaza a esta página.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/walkley-cn-calendar.svg)](https://mcp.popnx.com/en/servers/walkley-cn-calendar)

Conversación

Pregunta, comparte un consejo o avisa de que no funciona. Ordenado por lo que la gente marcó como útil.

Aún no hay publicaciones. Sé la primera persona en preguntar o compartir.

Lo publicado aquí lo escriben usuarios, no el equipo de PopNx.

Inicia sesión para publicar

Reseñas de usuarios

Aún no hay reseñas

Inicia sesión para escribir una reseña

Comparado con otros en Documentos, hojas de cálculo y oficinai

  • Más estrellas que el 0% de los otros 4502 servidores de esta categoría
  • Publicado en el registro más recientemente que el 94% de los otros 4502 servidores de esta categoría
  • Revisiones básicas iguales o mejores que el 54% de los otros 4502 servidores de esta categoría

Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.

Preguntas frecuentes

¿Es seguro China Workday Calendar?

Superó 4 de 5 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.

¿Qué claves o códigos necesita?

El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.

¿Se ejecuta en mi computadora o en la nube?

Se ejecuta en la nube del creador. Te conectas por internet sin instalar nada, pero lo que envías pasa por los servidores del creador.

¿Sigue en mantenimiento?

El repo de GitHub cambió por última vez ayer, y la última versión (1.0.0) llegó al registro anteayer.

¿Qué apps pueden usarlo?

Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. Se conecta por URL, así que también sirve en apps que aceptan MCP remoto, como ChatGPT en la web (MCP completo en Business y superiores; Pro solo lectura).

¿Qué puedo usar en su lugar?

En la misma categoría: Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, MR Office

Alternativas parecidas

Misma categoría, otros creadores, comandos ya revisados. Primero los oficiales, luego por estrellas.

Cómo leer una tarjeta:↓ Descargas por semanai★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

de HeyPuterMuy usado★ 44,3 milActualizado hace 6 meses

Conéctalo ya (tiene URL) · con inicio de sesión✓ del servicio · puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

de getsentryMuy usado↓ 130,5 mil/sem paquete compartido★ 6,6 milActualizado hace 4 meses

Se ejecuta en tu computadora✓ del servicio · xcodebuildmcp.com

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

de Vexa-aiMuy usado★ 3 milActualizado hace 3 meses

Conéctalo ya (tiene URL) · con clave✓ del servicio · vexa.ai

Atlassian Rovo MCP Server

Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.

de atlassianEn crecimiento★ 1,2 milActualizado hace 3 meses

Conéctalo ya (tiene URL) · con inicio de sesión✓ del servicio · atlassian.com

MR Office

Create, open and edit documents, spreadsheets and PDFs in MR Office's editor, inline in chat.

de XinaTianEn crecimiento★ 4,5 mil Estrellas de todo el repositorioActualizado hace 6 días

Conéctalo ya (tiene URL) · con inicio de sesión✓ del servicio · mroffice.ai
Comparado con otros parecidos
Este
China Workday Calendar
Puter MCPXcodeBuildMCPVexaAtlassian Rovo MCP ServerMR Office
Dónde se ejecutaFunciona en la nube, sin instalar nadaFunciona en la nube, sin instalar nadaSe instala en tu equipoFunciona en la nube, sin instalar nadaFunciona en la nube, sin instalar nadaEn la nube o instalado en tu equipo
Necesita claveNoNoNoSíNoNo
Se añade con + en ClaudeNoNoNoNoSíNo
Revisiones básicas4/54/43/32/44/45/5
Licencia–AGPL-3.0MITApache-2.0Apache-2.0AGPL-3.0
PrecioSin coste en el registroSin coste en el registroSin coste en el registroSin coste en el registroSin coste en el registroSin coste en el registro

README del creador

Abrir el README

Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.

x402-content-site

Pay-per-call data APIs for AI agents, paid in USDC over x402. Three products:

  • China workday calendar: is this date a working day in mainland China? It applies the State Council's holiday notices, including weekend makeup workdays (调休补班), which generic holiday APIs get wrong.
  • Package vulnerability advisories: is this package version safe to install? Which known advisories (CVE/GHSA/PYSEC/GO/RUSTSEC) affect one exact version of an npm, PyPI, Go, crates.io or Maven package, with CVSS, affected ranges and fixed versions. Data from OSV.dev.
  • SEC EDGAR insider trades and filings: recent insider trading (Form 4: insider, role, date, code, shares, price, holdings after) and the latest SEC filings (8-K with item titles, 10-K, 10-Q...) of a US public company by ticker or CIK. Data from SEC EDGAR; not affiliated with or endorsed by the SEC.

The service is a Hono app with @x402/hono 2.32.0. It runs on AWS Lambda (Node 22) behind an Amazon API Gateway HTTP API, defined with AWS CDK in infra/. Locally it runs as a plain Node server.

Endpoints

RoutePriceReturns
GET /cn/workday?date=YYYY-MM-DD$0.003is_workday, is_public_holiday, is_makeup_workday, holiday_name, kind, weekday, source_url, data_updated; date is optional (default: today in Asia/Shanghai)
GET /cn/business-days?from=YYYY-MM-DD&to=YYYY-MM-DD$0.005calendar_days, workday_count, workdays[] (inclusive range, at most 366 days, may cross years); from/to are optional together (default: the current month in Asia/Shanghai)
`GET /deps/advisories?ecosystem=npm\PyPI\Go\crates.io\Maven&name=…&version=…`$0.005vulnerable, advisory_count, advisories[] (id, aliases, summary, severity.level, severity.cvss[], affected[].ranges, fixed_versions, published, modified, references, url, license), data_fetched_at, queried_at
POST /deps/advisories/batch with {"packages":[{ecosystem,name,version}, …]} (1–50)$0.02count, vulnerable_count, results[] in request order, each shaped like the single query
GET /sec/insider-trades?ticker=AAPL (or cik=320193)$0.003issuer, filings_checked, transactions[] from the 4 most recent Form 4 / 4/A filings (reporting_owners[] with role and officer title, transaction_date, code, code_description, acquired_disposed, shares, price_per_share, shares_owned_after, ownership, rule_10b5_1, filing_url), data_fetched_at, source
GET /sec/latest-filings?ticker=AAPL&form=8-K&limit=20$0.003issuer, count, filings[] newest first (form, filing_date, report_date, accepted_at, 8-K items[] with titles, document_url, index_url); form and limit (1–50, default 20) are optional
GET /freeHuman preview page: description, schema, examples, data update date, source links
GET /llms.txtfreeAgent-oriented summary
GET /openapi.json, GET /.well-known/openapi.jsonfreeOpenAPI 3.1 with full input/output schemas and examples, x-payment-info on each paid operation, x-discovery.llmsTxtUrl
GET /favicon.ico, GET /icon.pngfreeService icon; the PNG (the same image) is sent as the x402 iconUrl, because CDP's listed icon formats do not include ICO
GET /healthfreeLiveness
POST /mcpfree quota, then x402MCP server (Streamable HTTP, stateless), tools cn_workday_check, package_advisories and sec_insider_trades (paid only), see "Free MCP endpoint"
POST /paid/mcpx402 (pay the linked URL)The same MCP server without the free quota: every tool call returns a payment link to the paid route, see "Paid MCP endpoint"
GET /.well-known/mcp.jsonfreeMCP manifest: endpoint, tools, free quota, prices

Calendar coverage is 2020-01-01 to 2027-12-31. Every paid route validates its input before asking for payment: a missing or malformed date, a reversed or too-long range, a year without data, an unknown ecosystem, a missing name or version (Maven names must be groupId:artifactId), or a bad batch body gets a free 400/404 and never a 402. Batch bodies over 64 KB get 413. The one exception is a request with no input at all (no query string on a GET, an empty body on the batch POST) and no payment header: it gets the 402 quote, because discovery tools such as x402scan probe paid routes that way. If such a bare request does carry a payment, it is validated as usual and rejected with a free 400, so it is never charged.

Without a payment header a paid route returns 402 with a PAYMENT-REQUIRED header (x402 v2, scheme exact). All paid routes declare the Bazaar discovery extension (declareDiscoveryExtension) with input/output JSON schema, an example, serviceName, tags and iconUrl. The 402 JSON body starts with x402Version, accepts and resource, copied from the decoded PAYMENT-REQUIRED header so the two cannot differ, for clients and directories that only read the body (market402). It also explains what a plain fetch client needs without decoding the header: price, currency, network, how_to_pay, links to docs (/openapi.json) and llms_txt, and an example request with its response. Payment is settled only after the handler succeeds. If settlement fails the client gets the settlement error and none of the paid content.

Free MCP endpoint
claude mcp add --transport http cn-calendar https://<origin>/mcp

POST /mcp speaks MCP over Streamable HTTP without sessions: every request is one JSON-RPC message answered with one JSON response (initialize, ping, tools/list, tools/call; notifications get 202). GET/DELETE /mcp answer 405 because there is no SSE stream or session. Two tools run the same code and data as the paid routes; the third, sec_insider_trades, only returns a payment link:

ToolArgumentsSame data asPaid route named after the quota
cn_workday_checkdate, or from and to/cn/workday, /cn/business-daysGET /cn/workday?date=… ($0.003) or GET /cn/business-days?from=…&to=… ($0.005)
package_advisoriesecosystem, name, version/deps/advisoriesGET /deps/advisories?… ($0.005)
sec_insider_tradesticker or cik (none: ticker=AAPL)/sec/insider-tradesGET /sec/insider-trades?… ($0.003), on every call
  • `sec_insider_trades` has no free calls, on /mcp as on /paid/mcp. It validates the arguments (an invalid ticker or CIK gets the input error) and answers every valid call with the payment link to GET /sec/insider-trades; it never calls SEC and never reads or counts the free quota. This keeps the SEC budget in "How the SEC endpoints use SEC EDGAR" (at most 8 SEC requests per second for the whole API) on the two throttled paid routes alone: /mcp's own 2 rps throttle is not part of that sum. Its log outcome is paid_tool.
  • Free quota: 20 tool calls per source IP per UTC day and 2,000 per UTC day for everyone together (-c freePerIpDaily, -c freeGlobalDaily). Invalid arguments are a tool error and are not counted.
  • After the quota the tool returns an MCP tool error (isError: true). Its text starts with creating a wallet, npx agentcash onboard (without a wallet nothing can pay), then npx agentcash add , then the paid x402 URL for the same lookup with its price and network. Its structuredContent is a payment link in the format paidmcp-client and the paidmcp directory read, {"url": , "status": 402, "challenge": } (see "Paid MCP endpoint"). That URL ends in src=mcp: the paid routes only log it (src in the funnel request event); input validation reads its own parameters by name and the price does not depend on the query, so the 402 and the price are the same as without it.
  • Fail closed: if the counter cannot be read or written (DynamoDB error or timeout, no table configured, no source IP), the call gets the same paid hint and payment link. It is never a free call and never a 500.
  • No payment on this path: /mcp is outside the payment middleware; it never asks the facilitator to verify or settle.
  • Privacy: 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. The IP is taken from the HTTP API's requestContext.http.sourceIp (not X-Forwarded-For) and only used to build the key ip# # . Items hold a counter and an expires_at TTL. The HMAC key is generated by Secrets Manager when the stack is created (QuotaHmacKey); without it the hashes cannot be checked against the 2^32 IPv4 addresses. The Lambda log lines (mcp and the paid routes' x402_funnel request) carry the same hash as ip_hash, the 32 hex characters of the counter key. Because the day is part of the HMAC input, one caller's ip_hash is the same all UTC day and different the next day, so ip_hash alone links an MCP caller to its paid requests on the same day only. The mcp lines also carry apigw_request_id, which matches the requestId of the API Gateway access log, and that log keeps the raw source IP for 30 days. So for 30 days an mcp line can be traced back to its IP, and a caller can be linked across days. No Lambda log line contains the raw IP. While the key is not loaded, ip_hash is left out.
  • Storage: an on-demand DynamoDB table with TTL. The API function's role may only dynamodb:UpdateItem on that table, and nothing else can access it. Each counted tool call is at most two conditional UpdateItems (per IP, then global). The function reads the HMAC key once at cold start (GetSecretValue on that one secret, which only it may read); if the read fails, MCP calls get the paid hint and the next call retries it. Counting a call has a 3 s budget in total; past it the call gets the paid hint.
  • Origin: a request to /mcp with an Origin header that is not in MCP_ALLOWED_ORIGINS (default: empty) gets 403, as Streamable HTTP requires. /mcp never sends Access-Control-Allow-Origin: *; a listed origin gets CORS for itself only. Claude Code, Cursor and other non-browser clients send no Origin.
  • Protocol versions: 2025-11-25 and 2025-06-18. Anything that is not a JSON-RPC 2.0 request, notification or response gets 400.
  • Request log: every /mcp request writes one {"type":"mcp"} line, including initialize, tools/list, notifications, and answers from outside the handler (Origin 403, 405, 413). Fields: method (the JSON-RPC method; response, invalid, parse_error, or - when no message was read), http_method, status, user_agent (first 200 characters), ip_hash (see Privacy), apigw_request_id (the access log's requestId). initialize adds client_name and client_version from clientInfo (64 characters each). tools/call adds tool, outcome (ok, invalid_input, invalid_request, ip_limit, global_limit, unavailable, upstream_error, paid_only on /paid/mcp, and paid_tool for sec_insider_trades on /mcp), reason where there is one (the input error code; no_quota_store, no_source_ip, quota_error, quota_timeout for unavailable), free_call_n, this IP's count of free calls today including this one (absent on ip_limit, which counts nothing), and payment_link (true when the answer carries the payment link, false when the paid route's 402 could not be read and only the text hint was sent). Every line has path (/mcp or /paid/mcp). Lines before this change used "type":"mcp_call" and covered tool calls only.
Paid MCP endpoint

POST /paid/mcp is the same

Solo se muestra el principio; lee el resto en el repo