completed faucet mcp example #191
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
@0xlucasliao @robot-ux
This PR adds a new MCP (Model Context Protocol) server implementation for secure, rate-limited faucet token distribution on BSC testnet. This addresses the requirements outlined in Issue #156 for a modular, secure MCP with built-in identity and rate-limiting capabilities for faucet distribution.
Summary of Changes
mcp_server/) that implements JSON-RPC 2.0 over HTTP for MCP protocol compatibilityverification_service/) that performs GitHub-based identity verification with anti-abuse mechanismsdocker-compose.ymland individual Dockerfiles for both servicesKey Features Implemented
Identity & Anti-Abuse Layer
Rate Limiting & Enforcement
Faucet Transaction Layer
MCP Protocol Compliance
/mcp/v1/toolsand/mcp/v1/tools/callProduction-Ready Deployment
Motivation and Context
The goal is to provide a secure, fair, and scalable faucet solution that prevents automated drainers while allowing real developers to test on-chain. This implementation provides a reusable foundation for community tools (reward bots, quests, grant distributions, etc.) as requested in Issue #156.
Fixes #156
Type of change
How Has This Been Tested?
Local Testing
Docker Compose Deployment:
Health Check Endpoints:
MCP Protocol Testing:
List Tools:
Call Tool (with test GitHub username and wallet):
Verification Service Testing:
Test Scenarios Verified
Production Deployment
The implementation has been deployed to AWS EC2 for demonstration purposes and is ready for use. The deployment includes:
Checklist:
Additional Notes