Skip to content

fix(wallet): Nuri logo/icons, MCP CORS & version negotiation, JSON-string POST fix, dual-rail balance prompt, 1-click install UX - #19

Merged
eminogrande merged 1 commit into
mainfrom
fix/wallet-solid-ux-and-protocol
Nov 19, 2026
Merged

eminogrande merged 1 commit into
mainfrom
fix/wallet-solid-ux-and-protocol

Conversation

@eminogrande

Copy link
Copy Markdown
Contributor

Summary

Fixes every real-world UX & protocol issue found on wallet.nuri.com (including from live Goose session debugging):

  1. Official Nuri logo & icons
    • Serves /favicon.svg, /favicon.ico, and /apple-touch-icon.png (official Nuri brand SVG + rendered ICO/PNG) instead of data:, / 404.
    • Adds MCP serverInfo.icons in initialize so Claude / MCP clients render the real Nuri icon.
  2. MCP CORS, protocol negotiation & stateless DELETE
    • Adds open CORS (Access-Control-Allow-Origin: *, mcp-session-id, last-event-id) on stateless /mcp and /v1/* so claude.ai, ChatGPT, and MCP Inspector connect cleanly.
    • Negotiates protocolVersion against client request (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05).
    • Returns 204 on DELETE /mcp.
  3. Fix JSON-string POST bug in wallet pay
    • requestShape() in src/agent-kernel-runtime.mjs now auto-detects JSON object/array strings and sends Content-Type: application/json instead of text/plain; charset=utf-8 (fixing POST https://router.paymentrequired.com/v1/chat/completions returning HTTP 400 JSON object required when LLMs serialize body as a string).
    • Non-2xx unpaid merchant responses now surface http_status and ok: false / status: "failed" instead of silently returning ok: true.
  4. Always surface BOTH Bitcoin (Lightning/Arkade) + Base USDC
    • balance / onboarding responses and MCP instructions now explicitly instruct agents to display BOTH Bitcoin (sats, arkade_address, Lightning receive) AND Base USDC (available/usdc, 0x... address), fixing Goose showing only USDC.
  5. 1-click install UX on homepage
    • Adds 1-click Cursor & VS Code MCP deeplinks, Claude Code & Codex 1-liners, and a 1-line wallet.nuri.com prompt.

Tests

  • npm run check (precheck + import closure)
  • npm run check:prf (including new tests for favicons, serverInfo.icons, MCP version negotiation, Origin: https://claude.ai CORS, DELETE /mcp, and requestShape JSON-string detection)
  • npm run check:ask & npm run check:ask:regression

@eminogrande
eminogrande merged commit f437418 into main Nov 19, 2026
1 check passed
@eminogrande
eminogrande deleted the fix/wallet-solid-ux-and-protocol branch November 19, 2026 10:26
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