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
bun run index.tsEnvironment 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
ncp
NCP acts as a universal adapter and orchestrator for Model Context Protocol (MCP) servers and tools. It provides a unified interface for discovery, execution, and management of diverse tools (local CLI, HTTP APIs, internal plugins/Photons, AI skills) through natural language and structured code interaction, enabling AI agents to interact with the broader digital ecosystem.
hono-oauth-mcp
A Hono-based MCP (Model Context Protocol) server for AI models that integrates with any MCP-compliant OAuth2 server for authentication.
ping-mcp
A Model Context Protocol (MCP) server for Solana blockchain interactions, enhancing DApp development with agentic capabilities.
mcp_server
This server implements the Model Context Protocol (MCP) to expose developer-defined tools as a HTTP API, specifically demonstrating a task creation tool.