Skip to content

fix: handle MCP payment result metadata#580

Draft
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/mcp-result-payment-metadata
Draft

fix: handle MCP payment result metadata#580
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/mcp-result-payment-metadata

Conversation

@parvahuja

Copy link
Copy Markdown
Contributor

Summary

  • Parse MCP payment-required metadata from JSON-RPC tool results in the payment-aware fetch.
  • Return MCP SDK payment challenges as tool results with payment metadata so SDK clients can retry through the same fetch boundary.
  • Update MCP client/server tests to use returned challenge results.

Validation

  • pnpm check
  • VITE_TEMPO_NETWORK=none pnpm check:types
  • VITE_TEMPO_NETWORK=none pnpm exec vp test --run src/client/Transport.test.ts src/mcp/server/Transport.test.ts
  • pnpm build
  • PATH=./node_modules/.bin:$PATH pnpm smoke

@pkg-pr-new

pkg-pr-new Bot commented Jun 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@580

commit: e536526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant