mcp-solana-affiliate
1
The MCP Solana Affiliate Server is designed to manage the affiliate program for the `mcp_solana_ico` project. It functions independently to handle registration and commission tracking using unique affiliate IDs and Solana Blink URLs. This server enhances scalability and separation of concerns from the main ICO server.
MCP Solana Affiliate Server
This project provides an independent MCP server for managing the affiliate program linked to mcp_solana_ico
. It handles registration and commission tracking for affiliates.
Key Features
- Affiliate Registration: Unique affiliate IDs and Solana Blink URLs.
- Blink URL Handling: Proxy for purchase requests and commission recording.
- Persistent Storage: Affiliate data stored in a JSON file.
- Complete Separation: No dependencies on the main ICO server.
Requirements
- Python 3.11+
- Poetry
- Flask
Installation
- Clone the repository.
- Install dependencies with Poetry.
Configuration
Create a .env
with the MAIN_SERVER_URL
for the Action API.
Usage
- Start the server for
affiliate://register
and Blink requests. - Register affiliates with an MCP client.
- Process token purchases via Blink URLs, forwarding requests to the main ICO server.
Project Structure
Includes files like affiliates.py
and server.py
for affiliate logic and server code respectively.
Future Considerations
- Database Storage
- Error Handling
- Security
- Scalability
- Testing