Back to Home
payincom icon

402ok-mcp

Verified Safe

by payincom

Overview

Provides a Model Context Protocol (MCP) server middleware to integrate HTTP 402 Payment Required for AI tools, supporting multi-network blockchain payments with a focus on XLayer/OKX.

Installation

Run Command
No command provided

Environment Variables

  • OKX_API_KEY
  • OKX_SECRET_KEY
  • OKX_PASSPHRASE
  • URL

Security Notes

The project uses standard cryptographic practices (HMAC SHA256) for OKX API authentication and relies on environment variables for sensitive credentials (API keys, secret keys, passphrases). The design separates payment verification/settlement to external facilitators, reducing direct blockchain interaction risk for the server. However, `makeOKXRequest` logs full request headers (which may contain API keys) and body to console, which could pose an information leakage risk in a production environment if logs are not securely managed. The JSON parsing of base64-encoded payment metadata is a standard practice but should be handled robustly against malformed inputs.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Stars0
Forks0
Last Update2025-12-05

Tags

MCPHTTP 402PaymentBlockchainXLayer