Warpay402 Gateway
@warppay402/server ⚡
Model Context Protocol(MCP) AI 도구, Hono HTTP API, Cloudflare Monetization Gateway, Base 및 Solana를 위한 즉시 x402 V2 수익화 SDK 및 자체 호스팅 인프라입니다.
@warppay402/server는 개발자가 몇 줄의 코드만으로 모든 MCP 도구 또는 HTTP API 라우트를 수익화할 수 있게 해줍니다. 표준 x402 V2 HTTP 결제 챌린지를 자동으로 생성하고, 가스리스 EIP-712 / Solana L1 서명을 검증하며, 플랫폼 수수료 분배를 적용하고, 프롬프트 인젝션 위협으로부터 보호하며, 서명 리플레이 공격을 방지합니다.
공식 사이트: https://www.warppay402.com
기능
x402 V2 호환: 표준화된 결제 챌린지 헤더(
PAYMENT-REQUIRED,PAYMENT-SIGNATURE,PAYMENT-RESPONSE).멀티체인 네이티브: Base Mainnet(
eip155:8453) 및 Solana Mainnet-Beta(solana:5eykt...)를 별도 설정 없이 지원하는 멀티체인 챌린지 생성.가스리스 오프체인 서명: 클라이언트는 비수탁 방식 특유의 번거로움 없이
TransferWithAuthorization(Base) 또는 사전 서명된 SPL-USDC 트랜잭션(Solana)에 서명합니다.자동 플랫폼 수수료 분배: 베이시스 포인트 단위로 구성 가능한 수수료 분배(예: 50 BPS = 0.5%)가 파실리테이터 정산 과정에서 직접 라우팅됩니다.
x402-Guard 보안: 프롬프트 인젝션 공격, 페이로드 버퍼 오버런, 급격한 트래픽 급증으로부터 엔드포인트를 보호하는 프리플라이트(pre-flight) 미들웨어.
MCP 네이티브 데코레이터: Model Context Protocol용으로 작성된 도구를 매끄럽게 래핑합니다.
리플레이 방지: 이중 지출 또는 서명 재사용을 방지하는 내장
MemoryNonceStore및 분산RedisNonceStore드라이버를 포함합니다.엣지 호환: Node.js 전용 API 의존성이 전혀 없으며 Cloudflare Workers, Vercel Edge, Node.js(18+) 및 Deno에서 완벽하게 실행됩니다.
Related MCP server: obolpay-x402-mcp
설치
npm install @warppay402/server사용 사례 1: 멀티체인 Hono HTTP API 수익화
import { Hono } from "hono";
import { monetize } from "@warppay402/server";
const app = new Hono();
const monetizeConfig = {
payTo: "0xYourMerchantWalletAddress", // Default Base EVM Wallet
platformWallet: "0xYourPlatformTreasuryWallet",
platformFeeBps: 50, // 0.5% fee split
guard: true, // Enables x402-guard security scanning
facilitatorUrl: "http://localhost:3001",
// Multi-Chain 402 Challenge Configuration
accepts: [
{
scheme: "exact",
network: "eip155:8453", // Base Mainnet
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // Base USDC
payTo: "0xYourMerchantWalletAddress",
},
{
scheme: "exact",
network: "solana:5eykt4wA89m8E5b9B5658p445VTc28", // Solana Mainnet-Beta
asset: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // SPL-USDC
payTo: "YourSolanaPhantomPublicKey",
}
]
};
app.use(
"/api/data",
monetize({
...monetizeConfig,
price: "0.01", // $0.01 USDC
})
);
app.get("/api/data", (c) => c.json({ status: "success", content: "Monetized Payload" }));
export default app;사용 사례 2: MCP(Model Context Protocol) 도구 수익화
import { createMonetizedMCPTool } from "@warppay402/server";
const originalTool = {
name: "web_scraper",
description: "Extract clean Markdown content from URLs",
inputSchema: { type: "object", properties: { url: { type: "string" } } },
handler: async ({ url }: { url: string }) => {
return { markdown: "# Cleaned Markdown Content" };
}
};
export const monetizedTool = createMonetizedMCPTool(originalTool, {
price: "0.02", // $0.02 USDC
payTo: "0xYourMerchantWalletAddress",
platformWallet: "0xYourPlatformTreasuryWallet",
platformFeeBps: 50
});사용 사례 3: Redis / Upstash를 이용한 분산 논스 잠금
import { Redis } from "@upstash/redis";
import { monetize, RedisNonceStore } from "@warppay402/server";
const redis = new Redis({
url: process.env.UPSTASH_REDIS_REST_URL!,
token: process.env.UPSTASH_REDIS_REST_TOKEN!
});
app.use(
"/api/v1/compute",
monetize({
price: "0.10",
payTo: "0xYourMerchantWalletAddress",
platformWallet: "0xYourPlatformTreasuryWallet",
nonceStore: new RedisNonceStore(redis),
nonceTtlSeconds: 300
})
);라이선스: MIT © WarpPay402
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceDrop-in x402 payment middleware for MCP servers. Charge AI agents per tool call using USDC on Base chain — Python and JavaScript SDKs, no payment processor, no KYC.MIT
- FlicenseAqualityBmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7
- AlicenseNot gradedqualityBmaintenanceProduction-grade suite of monetized tools for autonomous AI agent-to-agent commerce, enabling payments and task execution via x402 protocol and MCP.223MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to discover, pay for, and sell HTTP APIs using the x402 micropayment protocol, with USDC settlement on Base mainnet. Includes tools for payment requirements, paying and fetching resources, building seller configurations, and monitoring revenue.2231MIT
Related MCP Connectors
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Pay for HTTP APIs and charge for your own: x402 micropayments in USDC on Base.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/golfgolfgolf200/warppay402-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server