Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 12 Sep 20:55
· 34 commits to main since this release
e2dbcbb

Breaking Changes

  • x402 v2 challenges now carry the resource description under resource, the field name the v2 PaymentRequired schema defines. It was previously emitted as resourceInfo, which is not an x402 field, so v2 clients never found it. Anyone reading the old key must switch.

Fixed

  • resource is required by the v2 schema but was omitted unless resource_info was configured. Every v2 challenge PayMCP sends now carries it, defaulting to mcp://tool/<tool_name> — the form used by the x402 MCP transport spec. The name is the registered one, so @mcp.tool("other_name") advertises mcp://tool/other_name rather than the implementation function's name.
  • Note that a resource_info with a url still wins, and it is a single value shared by every tool: operators who configured it for v1 (where it fills the resource string inside accepts) will not see the per-tool default. Leave url unset to get it.

x402 v1 challenges are unchanged, including their non-standard top-level resourceInfo, which is left alone deliberately: in v1 the fields the facilitator verifies live inside accepts.