Back to Home
Cronos402 icon

examples

by Cronos402

Overview

Provides monetized AI tools and resources over the Model Context Protocol (MCP), supporting on-chain payments and integration with platforms like ChatGPT for interactive widgets.

Installation

Run Command
bun run index.ts

Environment Variables

  • EVM_PRIVATE_KEY
  • SOLANA_PRIVATE_KEY
  • CRONOS_PRIVATE_KEY
  • MCP_SERVER_URL
  • NEXT_PUBLIC_AUTH_URL
  • VERCEL_PROJECT_PRODUCTION_URL
  • VERCEL_BRANCH_URL
  • VERCEL_URL
  • PORT

Security Notes

Several security risks are present. The `chatgpt-apps-sdk-nextjs-starter/middleware.ts` sets `Access-Control-Allow-Origin: *`, which is a critical vulnerability allowing any domain to access resources, making it unsafe for production. Recipient wallet addresses in `x402-mcp/index.ts` and `cronos-weather-server/index.ts` are hardcoded placeholders, which require user modification for actual deployment. The `NextChatSDKBootstrap` in `chatgpt-apps-sdk-nextjs-starter/app/layout.tsx` patches core browser APIs (`history.pushState`, `window.fetch`) and observes HTML attributes via an inline script. While justified for ChatGPT iframe compatibility, such low-level global API manipulation is a dangerous pattern that can be fragile and a source of vulnerabilities if not meticulously managed, and its behavior could be exploited if the host environment or inputs are compromised.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2026-01-16

Tags

MCP ServerWeb3 PaymentsAI ToolsHonoNext.js