프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

PayStage x402 Guard — payment safety before the wallet signs

제작자: base-buzz버전 0.4.9i★ 5 (저장소 전체의 별)i내 컴퓨터에서 실행공식 사이트 ↗
레지스트리 이름io.github.base-buzz/x402-guard

설치 방법

What it does

x402 payment safety: judge a payment against your policy before signing. Read-only, never signs.

  • Connects 내 컴퓨터에서 실행
  • Account or key No key needed
  • Category 온라인 쇼핑몰 및 결제

이 순위인 이유

목록은 사용 점수(100점 만점)로 정렬되며 구성은 다음과 같습니다

인기28/80GitHub 별 또는 주간 다운로드: 큰 쪽 60, 작은 쪽 20
최신성12/1230일 안에 릴리스나 코드 변경이 있으면 만점
응답 중0/8마지막 점검 때 클라우드 엔드포인트가 응답
사용 점수40/100

품질: 기본 점검 3/3개 통과(표시만, 정렬에는 안 씀) · 상승세: 207 (급상승 탭에서만 사용)

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

한 문장으로 AI에게 설치 맡기기

PayStage x402 Guard — payment safety before the wallet signs 설치해 줘. https://mcp.popnx.com/i/base-buzz-x402-guard.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.

내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기

검사 3/3 통과 · 내 컴퓨터에서 실행돼요 · ✓ 명령 확인 2026년 11월 18일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요

AI에게 설치 맡기기

이 메시지를 Claude 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.

이 컴퓨터의 Claude에 MCP server PayStage x402 Guard — payment safety before the wallet signs을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "x402-guard": { "command": "npx", "args": [ "-y", "@paystage/x402-guard" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 PayStage x402 Guard — payment safety before the wallet signs의 도구가 실제로 보이는지 확인하세요.

이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.

  1. Node.js 설치 (아직 없다면)

    이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter

    node -v
    • 버전 번호(예: v26.13.1)가 나오면 설치된 것입니다. 이 단계는 건너뛰세요
    • "command not found"(Windows는 "is not recognized")가 나오면 아직 설치하지 않았거나, 방금 설치해서 터미널을 닫았다가 다시 열어야 합니다
    터미널 여는 법

    Mac: ⌘ + Space를 누르고 Terminal 입력 후 Enter

    Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"

    아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다

    Node.js 다운로드 페이지 열기 ↗

    설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v

    한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다

  2. 컴퓨터용 Claude 앱 설정 파일 열기

    SettingsDeveloperEdit Config

  3. 이 설정을 붙여 넣고 저장

    {
      "mcpServers": {
        "x402-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@paystage/x402-guard"
          ]
        }
      }
    }
  4. Claude를 끄고 다시 열기

  5. 해 보기

    PayStage x402 Guard — payment safety before the wallet signs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 PayStage x402 Guard — payment safety before the wallet signs을 쓰고 있다고 하거나 답에 PayStage x402 Guard — payment safety before the wallet signs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT는 아직 PayStage x402 Guard — payment safety before the wallet signs에 연결할 수 없어요

PayStage x402 Guard — payment safety before the wallet signs는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요

대신 이렇게 할 수 있어요

A · PayStage x402 Guard — payment safety before the wallet signs에 연결되는 앱 쓰기

  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

B · 온라인 쇼핑몰 및 결제에서 ChatGPT에 연결되는 다른 서버

같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요

Claude Code에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

AI에게 설치 맡기기

이 메시지를 Claude Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.

이 컴퓨터의 Claude Code에 MCP server PayStage x402 Guard — payment safety before the wallet signs을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): claude mcp add --scope user x402-guard -- npx -y @paystage/x402-guard 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 PayStage x402 Guard — payment safety before the wallet signs의 도구가 실제로 보이는지 확인하세요.

이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.

  1. Node.js 설치 (아직 없다면)

    이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter

    node -v
    • 버전 번호(예: v26.13.1)가 나오면 설치된 것입니다. 이 단계는 건너뛰세요
    • "command not found"(Windows는 "is not recognized")가 나오면 아직 설치하지 않았거나, 방금 설치해서 터미널을 닫았다가 다시 열어야 합니다
    터미널 여는 법

    Mac: ⌘ + Space를 누르고 Terminal 입력 후 Enter

    Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"

    아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다

    Node.js 다운로드 페이지 열기 ↗

    설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v

    한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다

  2. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  3. 이 명령을 붙여 넣고 Enter

    claude mcp add --scope user x402-guard -- npx -y @paystage/x402-guard
  4. Claude Code에서 /mcp 입력

    PayStage x402 Guard — payment safety before the wallet signs이 목록에 있고 연결됨으로 보이면 돼요

  5. 해 보기

    PayStage x402 Guard — payment safety before the wallet signs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 PayStage x402 Guard — payment safety before the wallet signs을 쓰고 있다고 하거나 답에 PayStage x402 Guard — payment safety before the wallet signs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

AI에게 설치 맡기기

이 메시지를 Cursor 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.

이 컴퓨터의 Cursor에 MCP server PayStage x402 Guard — payment safety before the wallet signs을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "x402-guard": { "command": "npx", "args": [ "-y", "@paystage/x402-guard" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 PayStage x402 Guard — payment safety before the wallet signs의 도구가 실제로 보이는지 확인하세요.

이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.

  1. Node.js 설치 (아직 없다면)

    이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter

    node -v
    • 버전 번호(예: v26.13.1)가 나오면 설치된 것입니다. 이 단계는 건너뛰세요
    • "command not found"(Windows는 "is not recognized")가 나오면 아직 설치하지 않았거나, 방금 설치해서 터미널을 닫았다가 다시 열어야 합니다
    터미널 여는 법

    Mac: ⌘ + Space를 누르고 Terminal 입력 후 Enter

    Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"

    아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다

    Node.js 다운로드 페이지 열기 ↗

    설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v

    한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다

  2. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  3. Cursor에서 AI 채팅을 Agent 모드로 열기

  4. 해 보기

    PayStage x402 Guard — payment safety before the wallet signs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 PayStage x402 Guard — payment safety before the wallet signs을 쓰고 있다고 하거나 답에 PayStage x402 Guard — payment safety before the wallet signs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

AI에게 설치 맡기기

이 메시지를 VS Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.

이 컴퓨터의 VS Code에 MCP server PayStage x402 Guard — payment safety before the wallet signs을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "servers": { "x402-guard": { "type": "stdio", "command": "npx", "args": [ "-y", "@paystage/x402-guard" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 PayStage x402 Guard — payment safety before the wallet signs의 도구가 실제로 보이는지 확인하세요.

이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.

  1. Node.js 설치 (아직 없다면)

    이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter

    node -v
    • 버전 번호(예: v26.13.1)가 나오면 설치된 것입니다. 이 단계는 건너뛰세요
    • "command not found"(Windows는 "is not recognized")가 나오면 아직 설치하지 않았거나, 방금 설치해서 터미널을 닫았다가 다시 열어야 합니다
    터미널 여는 법

    Mac: ⌘ + Space를 누르고 Terminal 입력 후 Enter

    Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"

    아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다

    Node.js 다운로드 페이지 열기 ↗

    설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v

    한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다

  2. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  3. VS Code에서 AI 채팅을 Agent 모드로 열기

  4. 해 보기

    PayStage x402 Guard — payment safety before the wallet signs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 PayStage x402 Guard — payment safety before the wallet signs을 쓰고 있다고 하거나 답에 PayStage x402 Guard — payment safety before the wallet signs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? PayStage x402 Guard — payment safety before the wallet signs을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

컴퓨터에 설치

Claude Code

claude mcp add --scope user x402-guard -- npx -y @paystage/x402-guard

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "x402-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/x402-guard"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "x402-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/x402-guard"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "x402-guard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@paystage/x402-guard"
      ]
    }
  }
}

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

GitHub 스타i
5 (저장소 전체의 별)
이 저장소에는 MCP 항목이 여러 개 있어 별은 순위에서 한 번만 세요
주간 다운로드i
2,371/주
연결 방식
내 컴퓨터에서 실행
최신 버전i
0.4.9
레지스트리 공개i
2026년 11월 18일
코드 마지막 변경i
2026년 11월 18일
제작자
base-buzz
패키지
npm: @paystage/x402-guard
웹사이트
paystage.xyz
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

내 컴퓨터에서 실행하는 앱

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

모든 앱과 장단점 →

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 18일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 base-buzz 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 오늘

  • ✓ 통과

    라이선스 있음

    MIT 사용

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

공개된 취약점 (OSV.dev)

OSV.dev에 @paystage/x402-guard@0.4.9 항목이 없습니다

이 버전의 패키지 자체만 확인하며 모든 의존성은 아닙니다 · 확인 2026년 11월 18일

우리가 확인하는 것 → · JSON

제작자: 재확인 요청 또는 잘못된 정보 신고
제작자용: README에 배지 달기

제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/base-buzz-x402-guard.svg)](https://mcp.popnx.com/en/servers/base-buzz-x402-guard)

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

로그인하고 리뷰 쓰기

온라인 쇼핑몰 및 결제 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 2903개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 2903개 중 99%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 2903개 중 99%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

PayStage x402 Guard — payment safety before the wallet signs, 안전한가요?

해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 오늘 변경됐고, 최신 버전(0.4.9)은 오늘 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Stripe MCP, flightclaw, Trade It, Marketplace Ad Pros: Amazon Ads & Seller Central, idealo MCP Server

비슷하게 동작하는 다른 것

같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Stripe MCP

MCP server integrating with Stripe - tools for customers, products, payments, and more.

제작자: stripe널리 사용됨★ 2.1천13개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · stripe.com

flightclaw

Search ~300 airlines and book flights with a checkout link. OAuth sign-in by email code.

제작자: flightclaw성장 중★ 862개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · flightclaw.com

Trade It

Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.

제작자: trade-it-inc초기★ 6233일 전 업데이트

클라우드에서 실행✓ 서비스 회사 · tradeit.app

idealo MCP Server

Search products, compare prices and discover deals across 6 European markets with your AI assistant.

제작자: idealo초기★ 286개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · mcp.idealo.com
비슷한 항목과 비교
이 항목
PayStage x402 Guard — payment safety before the wallet signs
Stripe MCPflightclawTrade ItMarketplace Ad Pros: Amazon Ads & Seller Centralidealo MCP Server
실행 위치컴퓨터에 설치 필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요
키 필요아니요아니요아니요아니요아니요아니요
Claude에서 +로 추가아니요예아니요아니요아니요아니요
기본 점검3/34/44/44/44/44/4
라이선스MITMITMITCC0-1.0MITMIT
가격등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

@paystage/x402-guard

The ten lines between *"the agent decided to pay"* and *"the money moved."*

x402-fetch runs the payment loop well: request, read the 402, sign, retry. What it does not do is ask whether that payment should happen. This wraps it, evaluates your policy against the actual challenge, and refuses before the wallet signs.

The whole change

-const res = await fetch("https://api.example.com/paid");

+const res = await guarded("https://api.example.com/paid");

Two lines, one call site. The policy below is configuration you write once; the guard only changes how the request is made.

npm install @paystage/x402-guard x402-fetch   # v1, unscoped: takes a signer (see "two packages" below)

Published with provenance. Every version from 0.1.1 onward is built and signed by this

repository's CI (npm view @paystage/x402-guard dist.attestations shows it). The one exception is

0.1.0, which was published by hand on 2026-11-12 before the Trusted Publisher existed and carries

no attestation — pin >=0.1.1 if that matters to your policy.

import { guardFetch } from "@paystage/x402-guard";

import { privateKeyToAccount } from "viem/accounts";

const guarded = guardFetch(fetch, { walletClient: account, policy: { version: 1, max_amount: { value: "0.05", asset: "USDC", decimals: 6 }, allowed_pay_to: ["0x…"], allowed_assets: [{ symbol: "USDC", decimals: 6, address: "0x…", network: "eip155:8453" }], allowed_networks: ["eip155:8453"], max_timeout_seconds: 300, unknown_payee: "deny", }, });

const res = await guarded("https://api.example.com/paid"); res.headers.get("x-paystage-verdict"); // "pay" | "review" | "do_not_pay"

What it decides

SituationResult
Not a 402respond normally, verdict pay, reason no_payment_required
Policy allowsdelegate to x402-fetch, sign and pay, verdict pay
Policy deniesreturn the original 402 with verdict do_not_pay — nothing is signed
Challenge unreadableverdict review — refuse rather than guess
Policy itself invalidthrows at construction, not at payment time

A refusal returns the server's real challenge, not a manufactured error, so the caller can log what was actually asked for.

Why not just maxValue

maxValue in x402-fetch is one number. A spend policy is not one number: it is who may be paid, in which asset, on which network, for how long, and what to do when the payee is unknown. The interesting failures are the ones a single ceiling cannot express — the right amount sent to the wrong address is still a drained wallet.

Honest limits

  • It evaluates before signing, using the 402 challenge. It cannot see what the server does after settlement.
  • The receipt is a verdict header (x-paystage-verdict, x-paystage-reason-codes). It is not yet a signed, independently verifiable receipt — that is what @paystage/mcp paystage-verify and the hosted API produce.
  • No evaluation has been run against a live adversary. See docs/why-preflight.md in the repository.

Related

The seller's side: refuse before verification

guardFetch protects an agent that pays. paystageVerifierHook protects a seller that is about to be paid — it plugs into the hooks @x402/core runs before verification, so a payment that violates your policy is aborted before the facilitator is asked to verify or settle it.

import { x402ResourceServer } from "@x402/core/server";

import { paystageVerifierHook } from "@paystage/x402-guard";

const server = new x402ResourceServer(facilitator) .registerExtension(paystageVerifierHook({ policy }));

It cannot be bypassed by a caller who forgot to use our client, which is the failure mode a client-side guard always has.

It fails closed. If policy evaluation throws, the payment is aborted with paystage_evaluation_failed. A hook that failed open would look like protection and behave like consent — there is a test for exactly that.

On the SDK directly: one hook

Two packages, similar names

x402-fetch (unscoped, 1.x) takes a signer and is what guardFetch wraps. @x402/fetch (scoped, 2.x) takes an `x402Client` and is the line this project itself uses elsewhere. They are not interchangeable: passing a v2 client to walletClient raises a named error rather than failing inside the peer with createPaymentPayload is not a function. On v2, register the hook below instead — the policy, verdicts and reason codes are identical.

guardFetch covers anyone paying through x402-fetch. If you drive @x402/core yourself, core exposes onBeforePaymentCreation — which runs before a payment payload exists and can abort with a reason:

import { x402Client } from "@x402/core/client";

import { paystageClientHook } from "@paystage/x402-guard";

const client = x402Client.fromConfig({ schemes: [/* … */] }); client.onBeforePaymentCreation(paystageClientHook({ policy }));

Same policy, same verdicts, same reason codes as every other surface. A refusal aborts payload creation, so nothing is signed and the reason travels with it.

Any facilitator, unchanged

The verifier hook attaches to the resource server, not to the facilitator — so it composes with whatever facilitator you already run: CDP, PayAI (@payai/facilitator), a self-hosted one, or none. Those packages are configuration (a URL and auth headers); there is nothing in them to wrap, which is why this is a hook rather than a per-facilitator package.

const server = new x402ResourceServer(createFacilitatorConfig(PAYAI_URL))

.registerExtension(paystageVerifierHook({ policy }));

A refused payment aborts in beforeVerify, so the facilitator is never asked to verify or settle it. That ordering is the point, and there is a test asserting the facilitator's methods are never called.

Keep the verdict

A refusal that leaves no trace is a refusal nobody can debug. Two opt-in seams:

guardFetch(fetch, {

policy, onVerdict: (v) => log.info(v), // your logger telemetryUrl: "https://api.paystage.xyz/v1/guard-verdict", // or the hosted collector })

The record is { verdict, reasonCodes, payTo, at } — no wallet address, no signature, no request body. Telemetry is fire-and-forget and never on the payment path: a failed POST cannot fail the call, and a throwing logger cannot change whether a payment is allowed.

Circle's batched client

@circle-fin/x402-batching exposes the same onBeforePaymentCreation hook @x402/core does, so this is a registration and not an adapter — its context ({ paymentRequired, selectedRequirements } with { scheme, network, asset, amount, payTo, maxTimeoutSeconds }) is the shape this package already reads:

import { GatewayClient } from "@circle-fin/x402-batching/client";

import { paystageClientHook } from "@paystage/x402-guard";

const client = new GatewayClient({ /* … */ }); client.onBeforePaymentCreation(paystageClientHook({ policy }));

The hook runs before the payment payload exists, so a refusal aborts the batch before anything is signed. Verified against @circle-fin/x402-batching@4.0.0 type definitions in tests/circle-batching.test.ts — if their context shape changes, that test fails here instead of in someone's signing loop.